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();
			return;
			}
			submit();
		}
	}
}