function conferma_delete(){
		conferma = window.confirm ("ATTENZIONE: Il record selezionato verrā ELIMINATO. Continuare?");
	return conferma;
} 

function conferma_update(){
		conferma = window.confirm ("ATTENZIONE: Il record selezionato verrā MODIFICATO. Continuare?");
	return conferma;
} 

function POPUP() { 
	var w = 700; 
	var h = 535; 
	var l = Math.floor((screen.width-w)/2); 
	var t = Math.floor((screen.height-h)/2); 
	window.open("vetrina_form_prenotazioni.asp","","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l); 
} 


function checkEmail() {
	mail = document.form.TxtNEmail.value;
	Filtro = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;

	if (Filtro.test(mail)==false){
		alert("L'indirizzo e-mail inserito non č valido!");
		document.form.TxtNEmail.focus();
		document.form.TxtNEmail.style.background='#E4E4E4';
		return false;
	}
}

function onlynum(e)
   {
   if (e.which)
      {
      if(e.which!=46 && e.which!=8 && (e.which<48 || e.which>57))
      return false;
      }
   else if(e.keyCode)
      {
      if(e.keyCode!=46 && e.keyCode!=8 && (e.keyCode<48 || e.keyCode>57))
      return false;
      }
   return true;
 }