function checkForm(thisform)
 {
   if (thisform.username)
      {
	    // var exprText=/^[a-zA-Z.]+$/;
	if(thisform.username.value==null || thisform.username.value=="")
	  { 
		alert("Username is required!");
		thisform.username.focus();
		return false;
	  }
	   /* else if(exprText.test(thisform.username.value)==false)
		  {
		alert("Invalid Login Name!");
		thisform.username.focus();
		thisform.username.value="";
		return false;
		 }*/
	   }
	if (thisform.password)
    {
	     var exprText=/^[a-zA-Z0-9]+$/;
	    if(thisform.password.value==null || thisform.password.value=="")
	    { 
		   alert("Password is required!!");
		   thisform.password.focus();
		   return false;
	    }
	    /*else if(exprText.test(thisform.password.value)==false)
		  {
		alert("Invalid Password !");
		thisform.password.focus();
		thisform.password.value="";
		return false;
		 }*/
	 }
	 if (thisform.acceptterms)
	 { 
		if(thisform.acceptterms.checked==false)
		{
			alert("Please read and accept the Terms and Conditions.");
			thisform.acceptterms.focus();
			return false;
		}  
	}
	 return true;
   }
