// JavaScript Document
function getposOffset(overlay, offsettype){
var totaloffset=(offsettype=="left")? overlay.offsetLeft : overlay.offsetTop;
var parentEl=overlay.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function overlay(curobj, subobj)
{	
	
	if (document.getElementById)
	{
		var subobj=document.getElementById(subobj)
		subobj.style.left=getposOffset(curobj, "left")+"px"
		subobj.style.top=getposOffset(curobj, "top")+"px"
		subobj.style.display="block"
		return false
	}
	else
	return true
}

function overlayclose(subobj){
document.getElementById(subobj).style.display="none"
}

	function toggle2(oggetto)
	{		//alert("")
		if (oggetto.checked)
		{document.getElementById("sped").style.display="block"
			//alert("")
			}
		else
		{document.getElementById("sped").style.display="none"
			//alert("")
			}
		
		//alert("")	
	}
	function aEtoggle(oggetto)
	{		//alert("")
		if (document.getElementById(oggetto).style.display=="block")
			{document.getElementById(oggetto).style.display="none"
			//alert("")
			}
			else
		{document.getElementById(oggetto).style.display="block"
			//alert("")
			}
		
		//alert("")	
	}
	 function PopupX(what) {
window.open (what,'newWin', 'scrollbars=no,status=no,resizable=no,top=100,left=150,width=629,height=629');
 }	
 function confirmCommand(msg,commandLink)

{

answer = confirm(msg)

if (answer !=0)

{

location = commandLink

}

}