<!-- Begin Register Info Fields

function field_validation(thisform) {

   	if (thisform.user_name.value == "") {
		alert ("A valid email address is Required.");
		thisform.user_name.focus();
		return false;
	}
	
	
	var str=document.form1.user_name.value
		var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
		if (filter.test(str))
		testresults=true
		else{
		alert("A valid email address is Required.")
		thisform.user_name.focus();
		return false;
	}
	

	if (thisform.password.value == "" || thisform.password.value.length < 6) {
		alert ("Password is Required with minimum 6 characters.");
		thisform.password.focus();
		return false;
	}
		
	if (thisform.password_cfm.value == "") {
		alert ("Confirm password can not be left blank.");
		thisform.password_cfm.focus();
		return false;
	}
		
	pass1 = thisform.password.value;	
	pass2 = thisform.password_cfm.value;
			
	if (pass1 != pass2) {
		alert ("Confirm password MUST match the actual password.");
		thisform.password_cfm.focus();
		return false;
	}
		
	if (thisform.first_name.value == "") {
		alert ("A valid First Name is Required.");
		thisform.first_name.focus();
		return false;
	}
	
	if (thisform.last_name.value == "") {
		alert ("A valid Last Name is Required.");
		thisform.last_name.focus();
		return false;
	}
	
/*	if (thisform.address.value == "") {
		alert ("A valid Street Address is Required.");
		thisform.address.focus();
		return false;
	}
		
		
	if (thisform.city.value == "") {
		alert ("A valid City name is Required.");
		thisform.city.focus();
		return false;
	}

	
	if (thisform.state.value == "") {
		alert ("A valid State name is Required.");
		thisform.state.focus();
		return false;
	}
	
	if (thisform.zip.value == "") {
		alert ("A valid Zip Code is Required.");
		thisform.zip.focus();
		return false;
	}

	
	if (thisform.country.value == "") {
		alert ("A valid Country name is Required.");
		thisform.country.focus();
		return false;
	}
*/	

/*	if (thisform.area_code.value == "") {
		alert ("Area code must be filled and can not be left blank ...");
		thisform.area_code.focus();
		return false;
	}

	if (thisform.home_telephone.value == "") {
		alert ("Home telephone must be filled and can not be left blank ...");
		thisform.home_telephone.focus();
		return false;
	}
		
	if (thisform.office_telephone.value == "") {
		alert ("A valid Contact telephone is Required.");
		thisform.office_telephone.focus();
		return false;
	}
*/

/*	
	if (thisform.fax_number.value == "") {
		alert ("Fax number must be filled and can not be left blank ...");
		thisform.fax_number.focus();
		return false;
	}
	
	
	if (thisform.url.value == "") {
		alert ("Url must be filled and can not be left blank ...");
		thisform.url.focus();
		return false;
	}		
		
	if (thisform.email.value == "") {
		alert ("Email must be filled and can not be left blank ...");
		thisform.email.focus();
		return false;
	}
	
	var str=document.form1.email.value
		var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
		if (filter.test(str))
		testresults=true
		else{
		alert("Please input a valid email address!")
		thisform.email.focus();
		return false;
	}	
*/	
	
	if (thisform.secrete_question_answer.value == "") {
		alert ("A valid response is required for the secret answer.");
		thisform.secrete_question_answer.focus();
		return false;
	}
	
	
	
	if (!thisform.C1.checked) {
		alert ("To complete your registration with www.ApnaBusiness.com, you must indicate by clicking the check box, that you agree with our Terms of Service and Privacy policy.");
		thisform.C1.focus();
		return false;
	}
	 
		
return true;

}





<!-- Begin Update Register Info Fields

function field_validation2(thisform) {

   	if (thisform.user_name.value == "") {
		alert ("A valid email address is Required.");
		thisform.user_name.focus();
		return false;
	}
	
	
	var str=document.form1.user_name.value
		var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
		if (filter.test(str))
		testresults=true
		else{
		alert("A valid email address is Required.")
		thisform.user_name.focus();
		return false;
	}
	

	if (thisform.password.value == "" || thisform.password.value.length < 6) {
		alert ("Password is Required with minimum 6 characters.");
		thisform.password.focus();
		return false;
	}
		
			
	if (thisform.first_name.value == "") {
		alert ("A valid First Name is Required.");
		thisform.first_name.focus();
		return false;
	}
	
	if (thisform.last_name.value == "") {
		alert ("A valid Last Name is Required.");
		thisform.last_name.focus();
		return false;
	}
	
/*	if (thisform.address.value == "") {
		alert ("A valid Street Address is Required.");
		thisform.address.focus();
		return false;
	}
		
		
	if (thisform.city.value == "") {
		alert ("A valid City name is Required.");
		thisform.city.focus();
		return false;
	}

	
	if (thisform.state.value == "") {
		alert ("A valid State name is Required.");
		thisform.state.focus();
		return false;
	}
	
	if (thisform.zip.value == "") {
		alert ("A valid Zip Code is Required.");
		thisform.zip.focus();
		return false;
	}
*/	
	if (thisform.country.value == "") {
		alert ("A valid Country name is Required.");
		thisform.country.focus();
		return false;
	}
	
/*	if (thisform.area_code.value == "") {
		alert ("Area code must be filled and can not be left blank ...");
		thisform.area_code.focus();
		return false;
	}

	if (thisform.home_telephone.value == "") {
		alert ("Home telephone must be filled and can not be left blank ...");
		thisform.home_telephone.focus();
		return false;
	}
*/		
	if (thisform.office_telephone.value == "") {
		alert ("A valid Contact telephone is Required.");
		thisform.office_telephone.focus();
		return false;
	}

/*	
	if (thisform.fax_number.value == "") {
		alert ("Fax number must be filled and can not be left blank ...");
		thisform.fax_number.focus();
		return false;
	}
	
	
	if (thisform.url.value == "") {
		alert ("Url must be filled and can not be left blank ...");
		thisform.url.focus();
		return false;
	}		
		
	if (thisform.email.value == "") {
		alert ("Email must be filled and can not be left blank ...");
		thisform.email.focus();
		return false;
	}
	
	var str=document.form1.email.value
		var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
		if (filter.test(str))
		testresults=true
		else{
		alert("Please input a valid email address!")
		thisform.email.focus();
		return false;
	}	
*/	
	
	if (thisform.secrete_question_answer.value == "") {
		alert ("A valid response is required for the secret answer.");
		thisform.secrete_question_answer.focus();
		return false;
	}
	 
		
return true;

}



