

	function LoginChecking() 
	{
		if (document.TheForm.email.value=="")
    {
      	alert("Sorry, you have to fill User ID");	
      	document.TheForm.email.focus();return false
    }
		if(document.TheForm.email.value.length <"3")
    {
     	alert("User name Must contains more that 3 characters");
     	document.TheForm.email.focus();
     	return  false;
    }
    
    if (document.TheForm.email.value!="") 
    {
      if (document.TheForm.email.value.indexOf("@")==-1 || document.TheForm.email.value.indexOf(".")==-1 ||
      		 document.TheForm.email.value.indexOf(" ")!=-1 || document.TheForm.email.value.length<6)
      {		  
      	alert("Sorry, your email address is not valid.");
      	document.TheForm.email.focus();
      	return false
      }
    }
    
		if (document.TheForm.pword.value=="")
    {
      	alert("Sorry, you have to fill Password");	
      	document.TheForm.pword.focus();return false
    }
		if(document.TheForm.pword.value.length <"6")
    {
     	alert("Your password must be atleast 6 characters");
     	document.TheForm.pword.focus();
     	return  false;
    }  
	}
	function ForgotLoginCheck()
	{
		if (document.TheForm2.femail.value=="")
        {
      	alert("Sorry, you have to fill User Id ");	
      	document.TheForm2.femail.focus();return false
       }
       
       if(document.TheForm2.email.value.length <"3")
    {
     	alert("User ID Must contains more that 3 characters");
     	document.TheForm2.femail.focus();
     	return  false;
    }
    
    if (document.TheForm2.email.value!="") 
    {
      if (document.TheForm2.femail.value.indexOf("@")==-1 || document.TheForm2.femail.value.indexOf(".")==-1 ||
      		 document.TheForm2.femail.value.indexOf(" ")!=-1 || document.TheForm2.femail.value.length<6)
      {		  
      	alert("Sorry, your email address is not valid.");
      	document.TheForm2.femail.focus();
      	return false
      }
    }
	}
	
