function ValidateFormData(RegisForm, url)
{ 
	
	var strRetVal;
	//Validation for Loginame
	strRetVal=CheckLoginName(RegisForm.txtLogiName,"Login Name")	
		if (strRetVal !="")
			{
				alert(strRetVal);
				SetFocus(RegisForm.txtLogiName);
				return false;
			}
		
	//Validation for Password 
		strRetVal=CheckPassWord(RegisForm.txtPassword,"Password")
		if (strRetVal !="")
			{
				alert(strRetVal);
				SetFocus(RegisForm.txtPassword);
				return false;
			}

	//If everything is fine then...
	
/*THIS CODE COMMENTED BY SHEKHAR ON 30/01/2004

	var strSQL = "SELECT Count(LogiName) As LogiName FROM " + gstrUserDBConst  + "UCUserMast WHERE LogiName='" + RegisForm.txtLogiName.value.toLowerCase() + "' AND binary_checksum(LogiPass)=binary_checksum('" + RegisForm.txtPassword.value + "')";
	//alert(strsql)
	var rstTemp = GetRecordset(strSQL);
	
	if (rstTemp.fields("LogiName")== 0)
	{
		alert("Sorry, Invalid Login Name or Password entered!")
		RegisForm.txtLogiName.select();
		RegisForm.txtPassword.value="";
		SetFocus(RegisForm.txtLogiName);
		return false;
	}  
************UPTO HERE */
	RegisForm.Method="post";
	RegisForm.action=url ;
	RegisForm.submit() ; 
	return true;

}//function
