function getobj(sId){
	return document.getElementById(sId);
}
function tooltip(sText){
	Tip(sText,WIDTH,0);
}
function hide(sId){
	getobj(sId).style.display="none";
}
function show(sId){
	getobj(sId).style.display="inline";
}
function nhide(gObj){
	if (typeof(gObj) == "object"){
		gObj.style.visibility = "hidden";
	}else{
		//se non oggetto è stringa
		getobj(gObj).style.visibility = "hidden";
	}
}
function nshow(gObj){
	if (typeof(gObj) == "object"){
		gObj.style.visibility = "visible";
	}else{
		//se non oggetto è stringa
		getobj(gObj).style.visibility = "visible";
	}
}
function arraysearch(aArray,gValore){
	var i;
	for ( i=0 ; i<aArray.length ; i++ )
		if (aArray[i] == gValore)
			return i;
	return -1;
}