function NewWindow(mypage, myname, w, h, scroll) { 
var winl = (screen.width - w) / 2; 
var wint = (screen.height - h) / 2; 
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable' 
win = window.open(mypage, myname, winprops) 
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } 
} 

function MM_openBrWindow(theURL,winName,features) { //v2.0
  neo=window.open(theURL,winName,features);
  //--- Forza il focus
  if(neo.window.focus){neo.window.focus();}
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  //alert(selObj.options[selObj.selectedIndex].value)
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


 
//------mod contatti------//
function submit_form()
{
 document.forms["form_contatti"].submit();
}
function check_form(theform)
{
 rtn=Validatore_Form(theform);
 if (rtn==false){
    return (rtn);
 }else{
      showWaitMessage();    
      disable_it(); 
      }
}
function preload_i(image)
{
 image1 = new Image();
 image1.src = "js/ajaxtabs/"+image;
}
function disable_it()
{
 document.getElementById("p_send").disabled=true;
}
function showWaitMessage()
{
 document.getElementById('waitMessage').style.display='inline';
}
//------/contatti------//  

