function submitIt(theform) 
  {	
    if (AllTrim(document.getElementById('txtUserName').value) == "") {       
      	alert("Il campo Id Utente non puņ essere vuoto!...");            
      	document.getElementById('txtUserName').value= "";
		document.getElementById('txtUserName').focus();
		return false;	
	    }  
	if (AllTrim(document.getElementById('txtPassword').value) == "") {       
      	alert("Il campo password non puņ essere vuoto...");           
      	document.getElementById('txtPassword').value= "";
		document.getElementById('txtPassword').focus();
		return false;	
	    } 
  }
  	function LeftTrim(String,TrimChar)
{
 
 String += "";         
 TrimChar += "";       
 if((TrimChar == "") || (!(TrimChar.length == 1)))
  TrimChar = " ";
 if(String.length == 0)
  return(String);
 var Count = 0;
 for(Count = 0;Count < String.length;Count++)
 {
  if(!(String.charAt(Count) == TrimChar))
   return(String.substring(Count,String.length));
 }
 return("");
}

function RightTrim(String,TrimChar)
{

 String += "";        // Force argument to string.
 TrimChar += "";      // Force argument to string.
 if((TrimChar == "") || (!(TrimChar.length == 1)))
  TrimChar = " ";
 if(String.length == 0)
  return(String);
 var Count = 0;
 for(Count = String.length -1;Count >= 0;Count--)
 {
  if(!(String.charAt(Count) == TrimChar))
   return(String.substring(0,Count + 1));
 }
 return("");
}

function AllTrim(String,TrimChar)
{
 String += "";        // Force argument to string.
 TrimChar += "";      // Force argument to string.
 if((TrimChar == "") || (!(TrimChar.length == 1)))
  TrimChar = " ";
 return(RightTrim(LeftTrim(String,TrimChar),TrimChar));
}
// fine del testo nascosto -->	   