<!------------------------------------------------------------>
<!--  				VALIDATION SECTION BEGIN 				-->

function initForm()
{
if(document.emailForm==null)
{
	return;
}
	FormChecker.identifyField(document.emailForm.firstName, "text", true, "First Name");
	FormChecker.identifyField( document.emailForm.phone, "phone", true, "Phone");
	FormChecker.identifyField( document.emailForm.email, "email", true, "Email");
	FormChecker.identifyField(document.emailForm.firstName, "text", true, "First Name");
	FormChecker.identifyField(document.emailForm.lastName, "text", true, "Last Name");

	FormChecker.identifyField( document.emailForm.address1, "text", true, "Address");	
	FormChecker.identifyField( document.emailForm.address2, "text", false, "Address(cont)");
	FormChecker.identifyField( document.emailForm.city, "text", true, "City");
	FormChecker.identifyField( document.emailForm.state, "text", true, "State");
	FormChecker.identifyField( document.emailForm.zip, "zipcode", true, "Zip");
	FormChecker.identifyField( document.emailForm.country, "text", false, "Country");
	FormChecker.identifyField( document.emailForm.description, "text", false, "Message");
		
	
	// 3) ADD YOUR OWN VERIFICATION FUNCTIONS AND PROCESSING FUNCTIONs
	
	
	// 4) INITIALIZE FORM CHECKING.
	
	FormChecker.initializeForm(document.emailForm);
	
	// 5) SET THE INITIAL KEYBOARD FOCUS FIELD
	
	document.emailForm.firstName.focus();
	
}
	
<!--  				VALIDATION SECTION END	 				-->
<!------------------------------------------------------------>


<!------------------------------------------------------------>
<!--  				EVENTS SECTION BEGIN	 				-->

	function doSubmit()
	{
		
		if ( FormChecker.checkForm(document.emailForm) )
		{
			document.emailForm.submit();
		}
		else
		{
			return false;
		}
	}
	SafeAddOnload(initForm);	
<!--  					EVENTS SECTION END	 				-->
<!------------------------------------------------------------>
