function submitonce(theform) {
 if (document.all || document.getElementById) {
  // hunt down "submit" and "reset"
  for (i=0;i<theform.length;i++) {
   var tempobj=theform.elements[i];
   if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset") {
    tempobj.disabled=true;
   }
  }
 }
}

//************//
var prec=""
giu="0"
function expandDiv(tahw) {
  what  = tahw + "_menu"

  //*****IF CHE GESTISCE LA CHIUSURA DEL PRECEDENTE MENU ESPLOSO
  if ((prec!=tahw)&&(giu=="1")){
	what  = prec + "_menu"
    document.getElementById(what).style.display = "none";
    what  = tahw + "_menu"
    document.getElementById(what).style.display = "inline";
	prec=tahw
  }else{
    
	  if (document.getElementById(what).style.display != "inline") {
		document.getElementById(what).style.display = "inline";
		giu="1"
	  
		if (giu=="1"){
		prec=tahw
		}
	  } else {
		document.getElementById(what).style.display = "none";
	  }
	  
  }
	

}
function popUp(URL) {
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=700,height=490');");
}

function swooshinstall(URL) {
  day = new Date();
  id = day.getTime();
  eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=400,height=150');");
}


