
function validateFields(){
    var errorMsg = "";
    var shallWeContinue;
       //This variable stays true until a test fails.
    shallWeContinue = true; //If it becomes false the remaining tests will not run
    if(shallWeContinue){

    }//end if
   //"yes" has been changed to false and no has been changed to true
    if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_fname',document.forms['frmApplyOnline'].rmwebsvc_fname.value,'First Name','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_mname',document.forms['frmApplyOnline'].rmwebsvc_pudf_mname.value,'Middle Name','',false);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_lname',document.forms['frmApplyOnline'].rmwebsvc_lname.value,'Last Name','',true);}
	
   	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_ssn',document.forms['frmApplyOnline'].rmwebsvc_ssn.value,'SSN #','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_license',document.forms['frmApplyOnline'].rmwebsvc_license.value,'Drivers License','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_mothers_maiden_name',document.forms['frmApplyOnline'].rmwebsvc_pudf_mothers_maiden_name.value,'Mothers Maiden Name','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_street1',document.forms['frmApplyOnline'].rmwebsvc_street1.value,'Address','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_state',document.forms['frmApplyOnline'].rmwebsvc_state.value,'State','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_zip',document.forms['frmApplyOnline'].rmwebsvc_zip.value,'Zip','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_hphone',document.forms['frmApplyOnline'].rmwebsvc_hphone.value,'Home Phone','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_carphone',document.forms['frmApplyOnline'].rmwebsvc_carphone.value,'Cell Phone','',false);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_email',document.forms['frmApplyOnline'].rmwebsvc_email.value,'Email','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_rental_startdate',document.forms['frmApplyOnline'].rmwebsvc_pudf_rental_startdate.value,'From','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_rental_enddate',document.forms['frmApplyOnline'].rmwebsvc_pudf_rental_enddate.value,'To','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_rental_rent_own',document.forms['frmApplyOnline'].rmwebsvc_pudf_rental_rent_own.value,'Rent or Own','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_rental_landlord',document.forms['frmApplyOnline'].rmwebsvc_pudf_rental_landlord.value,'Landlord','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_rental_landlord_address',document.forms['frmApplyOnline'].rmwebsvc_pudf_rental_landlord_address.value,'Landlord Address','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_rental_landlord_phone',document.forms['frmApplyOnline'].rmwebsvc_pudf_rental_landlord_phone.value,'Landlord Phone #','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_curremployment',document.forms['frmApplyOnline'].rmwebsvc_pudf_curremployment.value,'Current Employer','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_curremployment_startdate',document.forms['frmApplyOnline'].rmwebsvc_pudf_curremployment_startdate.value,'Current Employer Start Date','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_curremployment_occupation',document.forms['frmApplyOnline'].rmwebsvc_pudf_curremployment_occupation.value,'Occupation','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_curremployment_address',document.forms['frmApplyOnline'].rmwebsvc_pudf_curremployment_address.value,'Current Employer Address','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_curremployment_phone',document.forms['frmApplyOnline'].rmwebsvc_pudf_curremployment_phone.value,'Current Employer Phone','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_curremployment_salary',document.forms['frmApplyOnline'].rmwebsvc_pudf_curremployment_salary.value,'Salary','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_vehicle_make',document.forms['frmApplyOnline'].rmwebsvc_pudf_vehicle_make.value,'Vehicle Make','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_vehicle_model',document.forms['frmApplyOnline'].rmwebsvc_pudf_vehicle_model.value,'Vehicle Model','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_vehicle_color',document.forms['frmApplyOnline'].rmwebsvc_pudf_vehicle_color.value,'Vehicle Color','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_vehicle_year',document.forms['frmApplyOnline'].rmwebsvc_pudf_vehicle_year.value,'Vehicle Year','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_license_plate',document.forms['frmApplyOnline'].rmwebsvc_pudf_license_plate.value,'License Plate','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_vehicle_state',document.forms['frmApplyOnline'].rmwebsvc_pudf_vehicle_state.value,'Vehicle State','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_pets',document.forms['frmApplyOnline'].rmwebsvc_pudf_pets.value,'Pets','',false);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_pets_number',document.forms['frmApplyOnline'].rmwebsvc_pudf_pets_number.value,'If So, How Many?','',false);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_pets_breed',document.forms['frmApplyOnline'].rmwebsvc_pudf_pets_breed.value,'Breed','',false);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_pets_age',document.forms['frmApplyOnline'].rmwebsvc_pudf_pets_age.value,'Pets Age','',false);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_pets_weight',document.forms['frmApplyOnline'].rmwebsvc_pudf_pets_weight.value,'Pets Weight','',false);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_pets_color',document.forms['frmApplyOnline'].rmwebsvc_pudf_pets_color.value,'Pets Color','',false);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_parent_fname',document.forms['frmApplyOnline'].rmwebsvc_pudf_parent_fname.value,'Parents First Name','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_parent_mname',document.forms['frmApplyOnline'].rmwebsvc_pudf_parent_mname.value,'Parents Middle Name','',false);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_parent_lname',document.forms['frmApplyOnline'].rmwebsvc_pudf_parent_lname.value,'Parents Last Name','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_parent_dob',document.forms['frmApplyOnline'].rmwebsvc_pudf_parent_dob.value,'Parents Birth Date','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_parent_ssn',document.forms['frmApplyOnline'].rmwebsvc_pudf_parent_ssn.value,'Parents SSN #','',true);}
		
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_parent_license',document.forms['frmApplyOnline'].rmwebsvc_pudf_parent_license.value,'Parents Drivers License #','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_parent_state',document.forms['frmApplyOnline'].rmwebsvc_pudf_parent_state.value,'Parents State','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_parent_address',document.forms['frmApplyOnline'].rmwebsvc_pudf_parent_address.value,'Parents Address','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_parent_zip',document.forms['frmApplyOnline'].rmwebsvc_pudf_parent_zip.value,'Parents Zip','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_parent_hphone',document.forms['frmApplyOnline'].rmwebsvc_pudf_parent_hphone.value,'Parents Home Phone #','',true);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_parent_mphone',document.forms['frmApplyOnline'].rmwebsvc_pudf_parent_mphone.value,'Parents Cell Phone #','',false);}
	
	if(shallWeContinue){shallWeContinue = fieldProfiler('frmApplyOnline','rmwebsvc_pudf_parent_email',document.forms['frmApplyOnline'].rmwebsvc_pudf_parent_email.value,'Parents Email','',true);}
	
	if (shallWeContinue){
        //Pass the name of the current form, and the typed-in-captcha-text for prevalidation
	    shallWeContinue = captchaPrevalidation('frmApplyOnline',document.forms["frmApplyOnline"].CaptchaChallenge.value);
	}
	
	if (shallWeContinue){document.frmApplyOnline.submit();}
  
}//end function call

function captchaPrevalidation(formName, givenValue)
{
    if(givenValue ==  "")
    {
        alert("Please enter captcha image information");
        return false;
    }
    return true;
}