<!--
function form_check(f){
	var first_nameID=f.first_name;
	var last_nameID=f.last_name;
	var phone1_p1ID=f.phone1_p1.value;
	var phone1_p2ID=f.phone1_p2.value;
	var phone1_p3ID=f.phone1_p3.value;
	var emailID=f.email;
	var streetID=f.street;
	var zipID=f.zip;

	if (empty(first_nameID,2))
	{
		alert("Please provide your first name.");
		first_nameID.focus();
		return false;
	}

	if (empty(last_nameID,2))
	{
		alert("Please provide your last name.");
		last_nameID.focus();
		return false;
	}

	if(validate_email_address(emailID.value) == false)
	{
		alert("Please provide a valid email address.");
		emailID.focus();
		return false;
	}
	
	if (empty(streetID,2))
	{
		alert("Please provide your address.");
		streetID.focus();
		return false;
	}

	if(empty(zipID,5))
	{
		alert("Please provide your zip code.");
		zipID.focus();
		return false;
	}

	var filter2=/[2-9]{1}[0-8]{1}[0-9]{1}/g;
	var res=filter2.test(phone1_p1ID).toString();
	void(filter2.test(phone1_p1ID)+'_'+res);
	if (res==='false')
	{
		alert("Sorry, your phone's area code appears to be invalid. Please check the number and try again.");
		f.phone1_p1.focus();
		return false;
	}
	var filter3=/[2-9]{1}[0-9]{2}/g;
	res=filter3.test(phone1_p2ID).toString();
	void(filter3.test(phone1_p2ID)+'_'+res);
	if (res==='false')
	{
		alert("Sorry, your phone's prefix appears to be invalid. Please check the number and try again.");
		f.phone1_p2.focus();
		return false;
	}
	var filter4=/[0-9]{4}/g;
	res=filter4.test(phone1_p3ID).toString();
	void(filter4.test(phone1_p3ID)+'_'+res);
	if (res==='false')
	{
		alert("Sorry, your phone's suffix appears to be invalid. Please check the number and try again.");
		f.phone1_p3.focus();
		return false;
	}
	var filter5=/^01[0-9]{2}/g;
	res=filter5.test(phone1_p3ID).toString();
	void(filter5.test(phone1_p3ID)+'_'+res);
	if (phone1_p2ID=='555' && res==='true'){
		alert("Sorry, that is an invalid 555 phone number. Please check the number and try again.");
		f.phone1_p3.focus();
		return false;
	}
	
	return true;
}
//-->