function MyValidator(theForm)
{
var bRet=true;

  if (theForm.name.value=="")
  { 
		if (bRet==true)
		{
  		alert("Insert your name");
  		theForm.name.focus();
  		bRet= false;
		} 		
	}
  if (theForm.email.value=="")
  { 
		if (bRet==true)
		{
  		alert("Insert your email");
  		theForm.email.focus();
  		bRet= false;
		} 		
	}
  if ((theForm.check_in_gg.value=="") || (theForm.check_in_mm.value=="") || (theForm.check_in_aaaa.value==""))
  { 
		if (bRet==true)
		{
  		alert("Date incomplete");
  		theForm.check_in_gg.focus();
  		bRet= false;
		} 		
	}
  if ((theForm.check_out_gg.value=="") || (theForm.check_out_mm.value=="") || (theForm.check_out_aaaa.value==""))
  { 
		if (bRet==true)
		{
  		alert("Date incomplete");
  		theForm.check_out_gg.focus();
  		bRet= false;
		} 		
	}
  if (theForm.person.value=="")
  { 
		if (bRet==true)
		{
  		alert("Insert n. person");
  		theForm.person.focus();
  		bRet= false;
		} 		
	}
	
	return (bRet);		
}

function intercetta() { 
    for (var i=0; i<document.links.length; i++)
        if (document.links[i].className=="blank") {
            document.links[i].target="_blank";
        } 
}
window.onload = intercetta;

