/*
'==========================================================================================
'	Validation Functions - Order Title Online Form
'==========================================================================================
'	(c) Copyright 2003-2004 Ocktober Design Inc. All rights reserved.
'
'	Email			:	info@ocktober.com
'	Web Site		:	www.ocktober.com
'------------------------------------------------------------------------------------------
*/


function validate( strFormID ) {
	StartValidatingForm( strFormID );

	FV_Validate( "applicant_first_name", NOT_EMPTY, "Please enter your first name." );
	FV_Validate( "applicant_last_name", NOT_EMPTY, "Please enter your last name." );
	FV_Validate( "applicant_address", NOT_EMPTY, "Please enter your address." );
	FV_Validate( "applicant_city", NOT_EMPTY, "Please enter your city information." );
	FV_Validate( "applicant_state", NOT_EMPTY, "Please enter your state information." );
	FV_Validate( "applicant_zip_code", NOT_EMPTY, "Please enter your zip code." );
	FV_Validate( "applicant_phone", NOT_EMPTY, "Please enter your phone number so that we can contact you." );
	if ( FV_GetValue( "applicant_email" )!="" ) {
		FV_Validate( "applicant_email", IS_EMAIL, "Please enter a valid email address." );
	};
	
	if ( blnCurValidationOK ) {
		FV_SetValue( 'Repeat_Customer', 'OK' );
	};

	return blnCurValidationOK;
};
