<!--

// __________________________
// POP UP
// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


// __________________________
// POP UP DA FORM
// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
function popupform(myform, windowname) {
	if (! window.focus)return true;
	window.open('', windowname, 'resizable=no,height=490,width=520,scrollbars=auto');
	myform.target=windowname;
	return true;
}


// __________________________
// VALIDA L'EMAIL INSERITA
// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
function isEmail(TheField)
{
   var theEmail = new String(TheField.value)
   var theChar

   PosET     = theEmail.indexOf("@")
   PosPnt    = theEmail.lastIndexOf(".")
   BeforeET  = theEmail.charAt(PosET-1)
   BeforePnt = theEmail.charAt(PosPnt-1)

   var cont = 0
   for (j = theEmail.length; j >=0 ; j--){
      if (theEmail.charAt(j)!=".") 
         cont+=1
      else 
         break
 }

  if ( (PosET==-1)||(PosPnt==-1)||(BeforeET=="")||(BeforePnt=="@")||(PosET>PosPnt)||(cont-1<2) ) return false

   return true
}



// __________________________
// CONTROLLA LA LUNGHEZZA MINIMA DEL CAMPO 
// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
function isMinLength(TheField, minLength) {
	if (TheField.value.length >= minLength)
		return true
	else {
		return false
	     }
}



// __________________________
// CONTROLLA SE IL CAMPO E' VUOTO 
// ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
function Hilite(TheField, msg) {
	TheField.focus()
	alert(msg)
	return false
}



// -->