function checkForm()
{
		with (window.document.frmRegister) {
		if (isEmpty(txtName, 'Enter User Name')) {
			return;	
		} else if (isEmpty(txtEmail, 'Enter email address')) {
			return;		
		} else if (isEmpty(txtPassword, 'Enter Password')) {
			return;
		} else if (txtPassword.value.length<6) {
		  alert('Password field must have 6 characters');
		   txtPassword.focus();
			return;		
		} else if(az_09(txtPassword.value)==false) {
			txtPassword.value="";
			txtPassword.focus();
			return;	
	    } else if (isEmpty(txtPasswordC, 'Enter confirm password')) {
		return;	
		} else if (txtPassword.value != txtPasswordC.value) {
	  alert('Password and confirm password must be same');
	   txtPasswordC.focus();
			return;		
		} else if (isEmpty(email_availability, 'Email address already exists')) {
			return;  	
		}else {
			var emailID=txtEmail;
			if (echeck(emailID.value)==false){
			emailID.value="";
			emailID.focus();
			var you = selYouR;
			alert(you.value);
				if(you.value == "") {
				alert("who are you");	
				}
			return;
			}
			submit();
			
		}
	}
}
function checkFormTwo()
{
		with (window.document.frmRegister2) {
			if (isEmpty(bdate, 'Enter Birth Date')) {
				return false ;	
			}
	   //alert(Sex.value);
	}
	
	if(document.getElementById("selState").value == "") {
	alert("Please select State");
	document.getElementById("selState").focus();
	return;
	}	
	if(document.getElementById("txtMobile").value == "") {
	alert("Enter Mobile Number");
	document.getElementById("txtMobile").focus();
	return false;
	}
	//submit();
}
