/* CREATED BY :Hims Mistry
 * DATE: 15 TH MAY 2006
 * 
 */

function checkValid(frm)
{

	with (frm)
	{
		if(!checkValidNull(vFirstName,"Please Enter First Name"))
			return false;
		
		if(!checkValidNull(vLastName,"Please Enter Last Name"))
			return false;
		
		if(!checkValidNull(vAddress1,"Please Enter Address1"))
			return false;
		
		if(!checkValidNull(vCity,"Please Enter City"))
			return false;
		
		if(!checkValidNull(vCountry,"Please Enter Country"))
			return false;
		
		if(!checkValidNull(vState,"Please Enter State"))
			return false;
		
		if(!checkValidNull(iZip,"Please Enter Zip Code"))
			return false;
	
		if(!checkValidNumber(iZip,"Enter Proper Zip Code"))		
			return false;					
		
		if(!checkValidPhoneFormate(vWorkPhone,"Please Enter Valid Work Phone."))
			return false;
				
		if(!checkValidNull(iQuestionId,"Please Enter Question"))
			return false;
		
		if(!checkValidNull(vAnswerValue,"Please Enter Answer"))
			return false;
		
		if(!checkValidNull(vEmail,"Please Enter Email"))
			return false;
		
		if(!isValidEmail(vEmail.value))
			return false;
	
		if(!checkValidNull(vPassword,"Please Enter Password"))
			return false;
		
		if(vPassword.value.length < 5){
			alert("Password has minimum Five charactesrs");
			vPassword.focus();
			return false;
		}
		if(!checkValidNull(cLegalAccept,"Please Enter Legal Accept"))
			return false;
		
		checkDuplicate(frm,'user_info','vEmail',"iUserId",'Add');
		return false;

	}
	return true;	
}
