function zoom(nomeImg){
		//alert(nomeImg)
		var finZoom = window.open('zoom.asp?nomeImg='+nomeImg,'sss','scrollbars=yes,resizable=yes,width=500,height=500');
  		finZoom.focus();
	}
function zoomMappa(){
		//alert(nomeImg)
		var finM = window.open('mappa.html','MM','scrollbars=yes,resizable=yes,width=500,height=500');
  		finM.focus();
	}
	
function check(){
// impostazioni variabili per il controllo
var checkOK = "0123456789-/";
var checkStr = document.modulo.telefono.value;
var allValid = true;


//controllo nome e cognome
if(document.modulo.nome.value=="")
{
alert("Inserire il nome e il cognome!")
document.modulo.nome.focus();
return false}



//controllo indirizzo
if(document.modulo.indirizzo.value=="")
{
alert("Inserire l'indirizzo!")
document.modulo.indirizzo.focus();
return false}

//controllo cittą
if(document.modulo.citta.value=="")
{
alert("Inserire la cittą!")
document.modulo.citta.focus();
return false}

//controllo provincia
if(document.modulo.provincia.value=="")
{
alert("Inserire la provincia!")
document.modulo.provincia.focus();
return false}


// controllo numerico telefono
for (i = 0;  i < checkStr.length;  i++)
	 {
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkOK.length;  j++)
		if (ch == checkOK.charAt(j))
			 break;
			 	if (j == checkOK.length)
				  {
				    allValid = false;
				    break;
				   }
				  
				}
				if (!allValid)
				{
				  alert ("E' necessario inserire solo valori numerici nel campo Telefono!");
				  document.modulo.telefono.value = "";
				  document.modulo.telefono.focus();
				  return (false);
				}	

//controllo telefono
if(document.modulo.telefono.value=="")
{
alert("Inserire il numero di Telefono!")
document.modulo.telefono.focus();
return false}

//controllo email
if(document.modulo.email.value=="")
{
alert("Inserire un indirizzo E-mail!")
document.modulo.email.focus();
return false}

//controllo @ email
if(document.modulo.email.value !=""){
        
		var string = document.modulo.email.value;
             if(string.indexOf('@')==-1)
                {
                     alert("Inserire un indirizzo E-mail Valido!")
                      document.modulo.email.select();
					  return false
        		}
				if(string.indexOf('.')==-1)
                {
                     alert("Inserire un indirizzo E-mail Valido!")
                      document.modulo.email.select();
					  return false
        		}
									}

return true

}