// JavaScript Document
function validate(){
	x=document.frmRequest
	name=x.name.value
	company=x.company.value
	address=x.address.value
	city=x.city.value
	state=x.state.value
	zip=x.zip.value
	phone=x.phone.value
	fax=x.fax.value
	email=x.email.value
	appraisal_type=x.appraisal_type.value
	loan_type=x.loan_type.value
	borrower=x.borrower.value
	property_address=x.property_address.value
	property_city=x.property_city.value
	property_state=x.property_state.value
	property_zip=x.property_zip.value
	property_county=x.property_county.value
	contact_person=x.contact_person.value
	contact_dayphone=x.contact_dayphone.value
	contact_nightphone=x.contact_nightphone.value
	
	submitOK="True"

if (name.length<1)
 {
	alert("Please enter your name in the form")
	submitOK="False"
 }

if (company.length<1)
{
	alert("Please enter your company name in the form")
	submitOK="False"
}

if (address.length<1)
{
	alert("Please enter your address in the form")
	submitOK="False"
}

if (city.length<1)
{
	alert("Please enter your city in the form")
	submitOK="False"
}

if (state.length<1)
{
	alert("Please enter your state in the form")
	submitOK="False"
}

if (zip.length<1)
{
	alert("Please enter your zip code in the form")
	submitOK="False"
}

if (phone.length<5)
{
	alert("Please enter your phone number in the form")
	submitOK="False"
}

if (fax.length<5)
{
	alert("Please enter your fax number in the form")
	submitOK="False"
}

if (email.length<1)
{
	alert("Please enter your email in the form")
	submitOK="False"
}

if (appraisal_type=="")
{
	alert("Please select the type of appraisal")
	submitOK="False"
}

if (loan_type=="")
{
	alert("Please select the type of loan")
	submitOK="False"
}

if (borrower=="")
{
	alert("Please enter the name of the loan borrower")
	submitOK="False"
}

if (property_address=="")
{
	alert("Please enter the address of the property")
	submitOK="False"
}

if (property_city=="")
{
	alert("Please enter the city the property is located in")
	submitOK="False"
}

if (property_state=="")
{
	alert("Please enter the state the property is located in")
	submitOK="False"
}

if (property_zip.length<5)
{
	alert("Please enter on a valid zip code")
	submitOK="False"
}

if (property_county=="")
{
	alert("Please enter the county the property is located in")
	submitOK="False"
}

if (contact_person=="")
{
	alert("Please enter the name of the contact person in the form")
	submitOK="False"
}

if (contact_dayphone=="")
{
	alert("Please enter the daytime phone number of the contact person")
	submitOK="False"
}



if (submitOK=="False")
 {
 return false
 }
}