<!--
var oprForm
function impDel() {
	oprForm="del";
}
function impUpd() {
	oprForm="upd";
}
function impAdd() {
	oprForm="add";
}
function isName(campoForm,campoNome,req) {
   var str = campoForm.value;
   if (str == ""){
	  if (req == 0)
		if (confirm("\nIl campo "+campoNome+" non è compilato.\n\nClicca su ANNULLA per compilarlo.\n\nClicca su OK se vuoi lasciarlo in bianco.")) 
          return true;
	    else
          {
          campoForm.focus();
          return false;      
          }	
      alert("\nCompilare il campo "+campoNome);
      campoForm.focus();
      return false;
      }
   for (var i = 0; i < str.length; i++) 
      {
      var ch = str.substring(i, i + 1);
      if (((ch < "a" || "z" < ch) && (ch < "A" || "Z" < ch) && (ch < "0" || "9" < ch)) && ch != ' ' && ch != '-') 
         {
         alert("\nIl campo "+campoNome+" non può contenere che lettere, numeri e spazi.");
	     campoForm.select();
    	 campoForm.focus();
         return false;
         }
      }
   return true;
   }

function isPassword(campoForm,campoNome,req) {
   var str = campoForm.value;
   if (str == ""){
	  if (req == 0)
		if (confirm("\nIl campo "+campoNome+" non è compilato.\n\nClicca su ANNULLA per compilarlo.\n\nClicca su OK se vuoi lasciarlo in bianco.")) 
          return true;
	    else
          {
          campoForm.focus();
          return false;      
          }	
      alert("\nCompilare il campo "+campoNome);
      campoForm.focus();
      return false;
      }
   for (var i = 0; i < str.length; i++) 
      {
      var ch = str.substring(i, i + 1);
      if ((ch < "a" || "z" < ch) && (ch < "A" || "Z" < ch) && (ch < "0" || "9" < ch) && ch != '-' && ch != '_' && ch != '!' && ch != '£' && ch != '$' && ch != '(' && ch != ')' && ch != '=' && ch != '?') 
         {
         alert("\nIl campo "+campoNome+" non può contenere che lettere, numeri e i seguenti simboli: [-] [_] [!] [£] [$] [(] [)] [=] [?]");
	     campoForm.select();
    	 campoForm.focus();
         return false;
         }
      }
   return true;
   }

function isNickname(campoForm,campoNome,req) {
   var str = campoForm.value;
   if (str == ""){
	  if (req == 0)
		if (confirm("\nIl campo "+campoNome+" non è compilato.\n\nClicca su ANNULLA per compilarlo.\n\nClicca su OK se vuoi lasciarlo in bianco.")) 
          return true;
	    else
          {
          campoForm.focus();
          return false;      
          }	
      alert("\nCompilare il campo "+campoNome);
      campoForm.focus();
      return false;
      }
   for (var i = 0; i < str.length; i++) 
      {
      var ch = str.substring(i, i + 1);
      if ( (ch < "a" || "z" < ch) && (ch < "A" || "Z" < ch) && (ch < "0" || "9" < ch) && ch != "-" && ch != "_" ) 
         {
         alert("\nIl campo "+campoNome+" non può contenere che lettere, numeri e i seguenti simboli: [-] [_]");
	     campoForm.select();
    	 campoForm.focus();
         return false;
         }
      }
   return true;
   }



function isNumeric(campoForm,campoNome,req) {
   var str = campoForm.value;
   if (str == "")
	  {
	  if (req == 0)
		if (confirm("\nIl campo "+campoNome+" non è compilato.\n\nClicca su ANNULLA per compilarlo.\n\nClicca su OK se vuoi lasciarlo in bianco.")) 
          return true;
	    else
          {
          campoForm.focus();
          return false;      
          }	
       alert("\nCompilare il campo "+campoNome);
       campoForm.focus();
       return false;
       }
   for (var i = 0; i < str.length; i++) 
      {
      var ch = str.substring(i, i + 1);
      if ((ch < "0" || "9" < ch) && ch != "-") 
         {
         alert("\nIl campo "+campoNome+" non può contenere che numeri.");
	     campoForm.select();
    	 campoForm.focus();
         return false;
         }
      }
   return true;
   }

function isFloat(campoForm,campoNome,req) {
   var str = campoForm.value;
   if (str == "")
	  {
	  if (req == 0)
		if (confirm("\nIl campo "+campoNome+" non è compilato.\n\nClicca su ANNULLA per compilarlo.\n\nClicca su OK se vuoi lasciarlo in bianco.")) 
          return true;
	    else
          {
          campoForm.focus();
          return false;      
          }	
       alert("\nCompilare il campo "+campoNome);
       campoForm.focus();
       return false;
       }
   for (var i = 0; i < str.length; i++) 
      {
      var ch = str.substring(i, i + 1);
      if ((ch < "0" || "9" < ch) && ch != "," && ch != "-") 
         {
         alert("\nIl campo "+campoNome+" non può contenere che numeri interi o con la virgola.");
	     campoForm.select();
    	 campoForm.focus();
         return false;
         }
      }
   return true;
   }

function isText(campoForm,campoNome,req) {
   var str = campoForm.value;
   if (str == "")
	  {
	  if (req == 0)
		if (confirm("\nIl campo "+campoNome+" non è compilato.\n\nClicca su ANNULLA per compilarlo.\n\nClicca su OK se vuoi lasciarlo in bianco.")) 
          return true;
	    else
          {
          campoForm.focus();
          return false;      
          }	
      alert("\nCompilare il campo "+campoNome);
      campoForm.focus();
      return false;
      }
   return true;
   }

function isEmail(campoForm,campoNome,req) {
   var str = campoForm.value;
   if (str == "")
	  {
	  if (req == 0)
		if (confirm("\nIl campo "+campoNome+" non è compilato.\n\nClicca su ANNULLA per compilarlo.\n\nClicca su OK se vuoi lasciarlo in bianco.")) 
          return true;
	    else
          {
          campoForm.focus();
          return false;      
          }	
      alert("\nCompilare il campo "+campoNome);
      campoForm.focus();
      return false;
      }
   var okkey = 0;
   for (var i = 0; i < str.length; i++) 
      {
      var ch = str.substring(i, i + 1);
      if (((ch < "a" || "z" < ch) && (ch < "A" || "Z" < ch) && (ch < "0" || "9" < ch)) && ch != "@" && ch != "." && ch != "_" && ch != "-" && ch != "/")
         {
         alert("\nIl campo "+campoNome+" può contenere solo lettere, spazi, punti, trattini (- e _), slash e chiocciole (@).");
	     campoForm.select();
    	 campoForm.focus();
         return false;
         }

      if (ch == "@")
        okkey = okkey + 10;
      if (ch == ".")
        okkey = okkey + 1;        
      }
   if (okkey < 11) 
    {
	alert("\nIl campo "+campoNome+" è un indirizzo e-mail e deve contenere una @ e uno o più punti.\n\nverificarne il contenuto.");
    campoForm.select();
    campoForm.focus();
	return false;
    }
   else
    return true;
   }

function isComment(campoForm,campoNome,req){
   var str = campoForm.value;
   if (str == "")
      {
	  if (req == 0)
		if (confirm("\nIl campo "+campoNome+" non è compilato.\n\nClicca su ANNULLA per compilarlo.\n\nClicca su OK se vuoi lasciarlo in bianco.")) 
          return true;
	    else
          {
          campoForm.focus();
          return false;      
          }	
      alert("\nCompilare il campo "+campoNome);
      campoForm.focus();
      return false;
      }
      return true;
   }
   
   
function isDate(campoForm,campoNome,req) {
	var str = campoForm.value;
	if (str == ""){
		if (req == 0)
		if (confirm("\nIl campo "+campoNome+" non è compilato.\n\nClicca su ANNULLA per compilarlo.\n\nClicca su OK se vuoi lasciarlo in bianco.\nI campi DATA vanno compilati in questo modo: [gg//mm//aa]")) 
			return true;
		else
		{
			campoForm.focus();
			return false;      
		}	
		alert("\nCompilare il campo "+campoNome+"\nI campi DATA vanno compilati in questo modo: [gg//mm//aa]");
		campoForm.focus();
		return false;
	}
	var ok = true;
	if (str.length > 10 || str.length < 10)
		ok = false;
	for (var i = 0; i < str.length; i++) 
	{
		var ch = str.substring(i, i + 1);
		if ((ch < "0" || "9" < ch) && ch != "/" && ch != '-') {
			ok = false;
			i = str.length;
		}
	}
	if (!ok)
	 {
		 alert("\nIl campo "+campoNome+" non può contenere che numeri, slash ( // ) o trattini ( - ).\nI campi DATA vanno compilati in questo modo: [gg//mm//aa]");
		 campoForm.select();
		 campoForm.focus();
		 return false;
	 }
	return true;
}

// --End Hiding Here -->

