//////////////////////////////////////////////////function isEmpty(s){   return ((s == null) || (s.length == 0))}function isDigit (c){      return ((c >= "0") && (c <= "9"))}//////////////////////////////////////////////////function isInteger (s){   	var i;    if (isEmpty(s))        return true;      for (i = 0; i < s.length; i++)    {           var c = s.charAt(i);        if (!isDigit(c)) return false;    }    return true;}//////////////////////////////////////////////////function noemptyvalidation(entered, alertbox){  with (entered)  {    if (isEmpty(value))    {      if (alertbox!="")      {        alert(alertbox);      }      return false;    }    else    {      return true;    }  }}//////////////////////////////////////////////////function integervalidation(entered, alertbox){    with (entered)    {      if (isInteger(value))      {         return true;      }      else      {         if (alertbox!="")          {            alert(alertbox);         }         return false;      }    }}         //////////////////////////////////////////////////function emailvalidation(entered){	with(entered)	{				var reg1 = /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/; // not valid		var reg2 = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/; // valid		if (!reg1.test(value) && reg2.test(value))		{ 				// if syntax is valid			return true;		}		alert("\"" + value + "\" non e' un indirizzo e-mail valido!"); 		return false;	}}//////////////////////////////////////////////////function convCC(thisform){   with (thisform)   {   if (noemptyvalidation(email,"Inserire l'indirizzo e-mail!")==false) {email.focus(); return false;};   if (emailvalidation(email)==false) {email.focus(); return false;};	  submit();   }}//////////////////////////////////////////////////
