<!--

function setAction(formresidential){

if (formresidential.loantype.value=="Purchase") {
 	purchase.style.display	= "";
    refi.style.display = "none";
    homeequity.style.display = "none";
    landloan.style.display = "none";
    constructloan.style.display = "none";
}

if (formresidential.loantype.value=="Refinance") {
 	purchase.style.display	= "none";
    refi.style.display = "";
    homeequity.style.display = "none";
    landloan.style.display = "none";
    constructloan.style.display = "none";
}

if (formresidential.loantype.value=="Home Equity Loan") {
 	purchase.style.display	= "none";
    refi.style.display = "none";
    homeequity.style.display = "";
    landloan.style.display = "none";
    constructloan.style.display = "none";
}

if (formresidential.loantype.value=="Land Loan") {
 	purchase.style.display	= "none";
    refi.style.display = "none";
    homeequity.style.display = "none";
    landloan.style.display = "";
    constructloan.style.display = "none";
}

if (formresidential.loantype.value=="Construction Loan") {
 	purchase.style.display	= "none";
    refi.style.display = "none";
    homeequity.style.display = "none";
    landloan.style.display = "none";
    constructloan.style.display = "";
}

if (formresidential.loantype.value=="choose") {
 	purchase.style.display	= "none";
    refi.style.display = "none";
    homeequity.style.display = "none";
    landloan.style.display = "none";
    constructloan.style.display = "none";
}

}


function setActionComemrcial(formcommercial){

if (formcommercial.commercialloantype.value=="Purchase") {
 	cpurchase.style.display	= "";
    crefi1.style.display = "none";
	crefi2.style.display = "none";
}
if (formcommercial.commercialloantype.value=="Refinance Rate and Term") {
 	cpurchase.style.display	= "none";
    crefi1.style.display = "";
	crefi2.style.display = "none";
}
if (formcommercial.commercialloantype.value=="Refi Cash Out") {
 	cpurchase.style.display	= "none";
    crefi1.style.display = "none";
	crefi2.style.display = "";
}
if (formcommercial.commercialloantype.value=="choose") {
 	cpurchase.style.display	= "none";
    crefi1.style.display = "none";
	crefi2.style.display = "none";
}
}

function setActionPrivate(formprivate){

if (formprivate.privateloantype.value=="Residential") {
 	noncontruction.style.display	= "";
    contruction.style.display = "none";
	
}
if (formprivate.privateloantype.value=="Commercial") {
 	noncontruction.style.display	= "";
    contruction.style.display = "none";
}
if (formprivate.privateloantype.value=="ConstructionDevelopment") {
 	noncontruction.style.display	= "none";
    contruction.style.display = "";
}
if (formprivate.privateloantype.value=="Land Loan") {
 	noncontruction.style.display	= "";
    contruction.style.display = "none";
}
if (formprivate.privateloantype.value=="choose") {
 	noncontruction.style.display	= "none";
    contruction.style.display = "none";
}

}

function setActionPorR(formprivate){
if (formprivate.ploanrequesttype.value=="Purchase") {
 	ppurchase.style.display	= "";
    prefi.style.display = "none";
	
}
if (formprivate.ploanrequesttype.value=="Refi") {
 	ppurchase.style.display	= "none";
    prefi.style.display = "";
	
}
if (formprivate.ploanrequesttype.value=="choose") {
 	ppurchase.style.display	= "none";
    prefi.style.display = "none";
	
}
}


function setActionContracP(formprivate){
        if (formprivate.pmpcontract.checked) {
                pmpcontract.style.display = "none";
        }
        else {
                pmpcontract.style.display = "";
        }
}
function setActionOwnlandP(formprivate){
        if (formprivate.pmcownland.checked) {
                pmcownland.style.display = "none";
        }
        else {
                pmcownland.style.display = "";
        }
}



function setActionSpecific(formresidential){
        if (formresidential.specifichome.checked) {
                specific.style.display = "none";
        }
        else {
                specific.style.display = "";
        }
}

function setActionCommercialUC(formcommercial){
        if (formcommercial.undercontract.checked) {
                underc.style.display = "none";
        }
        else {
                underc.style.display = "";
        }
}



function setActionSigned(formresidential){
        if (formresidential.signedcontract.checked) {
                signedc.style.display = "none";
        }
        else {
                signedc.style.display = "";
        }
}

function setActionRealtor(formresidential){
        if (formresidential.haverealtor.checked) {
                haver.style.display = "none";
        }
        else {
                haver.style.display = "";
        }
}
function setActionRealtorLand(formresidential){
        if (formresidential.lnd_haver.checked) {
                landhaver.style.display = "none";
        }
        else {
                landhaver.style.display = "";
        }
}




function Validate_Residential()
{

  if (document.formresidential.loantype.selectedIndex == 0) {
        alert('You must select your LOAN TYPE to continue.');
		document.formresidential.loantype.focus();
		return(false);
    }
	
if (formresidential.loantype.value=="Purchase") {
 	 if (document.formresidential.usedfor.selectedIndex == 0) {
        alert('You must select your HOME WILL BE USED FOR to continue.');
		document.formresidential.usedfor.focus();
		return(false);
    }
	if (document.formresidential.purchaseprice.value.length == 0)
	{
		alert('You must enter your PURCHASE PRICE to continue.');
		document.formresidential.purchaseprice.focus();
		return(false);
	}
	if (document.formresidential.purchasecity.value.length == 0)
	{
		alert('You must enter your PURCHASE CITY to continue.');
		document.formresidential.purchasecity.focus();
		return(false);
	}
	if (document.formresidential.purchasestate.selectedIndex == 0) {
        alert('You must select your PURCHASE STATE to continue.');
		document.formresidential.purchasestate.focus();
		return(false);
    }
	if (document.formresidential.estimatedvalue.value.length == 0)
	{
		alert('You must enter your CURRENT ESTIMATED VALUE to continue.');
		document.formresidential.estimatedvalue.focus();
		return(false);
	}
	if (document.formresidential.loanamount.value.length == 0)
	{
		alert('You must enter your LOAN AMOUNT REQUESTED to continue.');
		document.formresidential.loanamount.focus();
		return(false);
	}
	if (document.formresidential.cashdown.value.length == 0)
	{
		alert('You must enter your CASH DOWN to continue.');
		document.formresidential.cashdown.focus();
		return(false);
	}
	if (document.formresidential.estimatetime.selectedIndex == 0) {
        alert('You must select your ESTIMATED TIME UNTIL PURCHASE to continue.');
		document.formresidential.estimatetime.focus();
		return(false);
    }
	if (document.formresidential.firsttimebuyer.selectedIndex == 0) {
        alert('Are you a FIRST TIME HOME BUYER?');
		document.formresidential.firsttimebuyer.focus();
		return(false);
    }
}
	
if (formresidential.loantype.value=="Refinance") {
 	if (document.formresidential.r_reficity.value.length == 0)
	{
		alert('You must enter your REFINANCE CITY to continue.');
		document.formresidential.r_reficity.focus();
		return(false);
	}
	if (document.formresidential.r_refistate.selectedIndex == 0) {
        alert('You must select your REFINANCE STATE to continue.');
		document.formresidential.r_refistate.focus();
		return(false);
    }
	if (document.formresidential.r_originalprice.value.length == 0)
	{
		alert('You must enter your ORIGINAL PURCHASE PRICE to continue.');
		document.formresidential.r_originalprice.focus();
		return(false);
	}
	if (document.formresidential.r_estimatedvalue.value.length == 0)
	{
		alert('You must enter your CURRENT ESTIMATED VALUE to continue.');
		document.formresidential.r_estimatedvalue.focus();
		return(false);
	}
	if (document.formresidential.r_firstlien.value.length == 0)
	{
		alert('You must enter your AMOUNT OF FIRST LIEN to continue.');
		document.formresidential.r_firstlien.focus();
		return(false);
	}
	if (document.formresidential.r_interestrate.value.length == 0)
	{
		alert('You must enter your CURRENT INTEREST RATE to continue.');
		document.formresidential.r_interestrate.focus();
		return(false);
	}
	if (document.formresidential.r_monthlypayments.value.length == 0)
	{
		alert('You must enter your CURRENT MONTHLY PAYMENTS to continue.');
		document.formresidential.r_monthlypayments.focus();
		return(false);
	}
	if (document.formresidential.r_loanamount.value.length == 0)
	{
		alert('You must enter your LOAN AMOUNT REQUESTED to continue.');
		document.formresidential.r_loanamount.focus();
		return(false);
	}

}


if (formresidential.loantype.value=="Home Equity Loan") {
 	if (document.formresidential.hq_homeeqcity.value.length == 0)
	{
		alert('You must enter your CITY OF THE HOME EQUITY  to continue.');
		document.formresidential.hq_homeeqcity.focus();
		return(false);
	}
	if (document.formresidential.hq_homeeqstate.selectedIndex == 0) {
        alert('You must select your STATE OF THE HOME EQUITY to continue.');
		document.formresidential.hq_homeeqstate.focus();
		return(false);
    }
	if (document.formresidential.hq_originalprice.value.length == 0)
	{
		alert('You must enter your ORIGINAL PURCHASE PRICE to continue.');
		document.formresidential.hq_originalprice.focus();
		return(false);
	}
	if (document.formresidential.hq_estimatedvalue.value.length == 0)
	{
		alert('You must enter your CURRENT ESTIMATED VALUE to continue.');
		document.formresidential.hq_estimatedvalue.focus();
		return(false);
	}
	if (document.formresidential.hq_firstlien.value.length == 0)
	{
		alert('You must enter your AMOUNT OF FIRST LIEN to continue.');
		document.formresidential.hq_firstlien.focus();
		return(false);
	}
	if (document.formresidential.hq_currentrate.value.length == 0)
	{
		alert('You must enter your CURRENT INTEREST RATE to continue.');
		document.formresidential.hq_currentrate.focus();
		return(false);
	}
	if (document.formresidential.hq_monthpayment.value.length == 0)
	{
		alert('You must enter your CURRENT MONTHLY PAYMENTS to continue.');
		document.formresidential.hq_monthpayment.focus();
		return(false);
	}
	if (document.formresidential.hq_loanamount.value.length == 0)
	{
		alert('You must enter your LOAN AMOUNT REQUESTED to continue.');
		document.formresidential.hq_loanamount.focus();
		return(false);
	}
	 if (document.formresidential.hq_desiredrate.selectedIndex == 0) {
        alert('You must select your DESIRED RATE to continue.');
		document.formresidential.hq_desiredrate.focus();
		return(false);
    }

}

if (formresidential.loantype.value=="Land Loan") {
 	if (document.formresidential.lnd_purchaseprice.value.length == 0)
	{
		alert('You must enter your LAND PURCHASE PRICE to continue.');
		document.formresidential.lnd_purchaseprice.focus();
		return(false);
	}
	if (document.formresidential.lnd_landcity.value.length == 0)
	{
		alert('You must enter your CITY FOR THE LAND PURCHASE to continue.');
		document.formresidential.lnd_landcity.focus();
		return(false);
	}
	if (document.formresidential.lnd_landstate.selectedIndex == 0) {
        alert('You must select your STATE OF THE LAND PURCHASE to continue.');
		document.formresidential.lnd_landstate.focus();
		return(false);
    }
	if (document.formresidential.lnd_currentvalue.value.length == 0)
	{
		alert('You must enter your CURRENT ESTIMATED VALUE to continue.');
		document.formresidential.lnd_currentvalue.focus();
		return(false);
	}
	if (document.formresidential.lnd_amount.value.length == 0)
	{
		alert('You must enter your LOAN AMOUNT REQUESTED to continue.');
		document.formresidential.lnd_amount.focus();
		return(false);
	}
	if (document.formresidential.lnd_cashdown.value.length == 0)
	{
		alert('You must enter your CASH DOWN to continue.');
		document.formresidential.lnd_cashdown.focus();
		return(false);
	}
	 if (document.formresidential.lnd_desiredrate.selectedIndex == 0) {
        alert('You must select your DESIRED RATE to continue.');
		document.formresidential.lnd_desiredrate.focus();
		return(false);
    }
}

if (formresidential.loantype.value=="Construction Loan") {
 	if (document.formresidential.con_constructioncity.value.length == 0)
	{
		alert('You must enter your CITY FOR THE CONSTRUCTION LOAN to continue.');
		document.formresidential.con_constructioncity.focus();
		return(false);
	}
	if (document.formresidential.con_constructionstate.selectedIndex == 0) {
        alert('You must select your STATE OF THE CONSTRUCTION LOAN to continue.');
		document.formresidential.con_constructionstate.focus();
		return(false);
    }
	if (document.formresidential.con_costofcontruction.value.length == 0)
	{
		alert('You must enter your COST OF CONSTRUCTION to continue.');
		document.formresidential.con_costofcontruction.focus();
		return(false);
	}
	if (document.formresidential.con_landcost.value.length == 0)
	{
		alert('You must enter your COST OF LAND to continue.');
		document.formresidential.con_landcost.focus();
		return(false);
	}
	if (document.formresidential.con_estamatedvalue.value.length == 0)
	{
		alert('You must enter your ESTIMATED VALUE OF COMPLETED HOME to continue.');
		document.formresidential.con_estamatedvalue.focus();
		return(false);
	}
	if (document.formresidential.con_firstlien.value.length == 0)
	{
		alert('You must enter your AMOUNT ON THE FIRST LIEN to continue.');
		document.formresidential.con_firstlien.focus();
		return(false);
	}
	if (document.formresidential.con_loanamount.value.length == 0)
	{
		alert('You must enter your LOAN AMOUNT REQUESTED to continue.');
		document.formresidential.con_loanamount.focus();
		return(false);
	}
	if (document.formresidential.con_cashdown.value.length == 0)
	{
		alert('You must enter your CASH DOWN to continue.');
		document.formresidential.con_cashdown.focus();
		return(false);
	}
	 if (document.formresidential.con_desiredrate.selectedIndex == 0) {
        alert('You must select your DESIRED RATE to continue.');
		document.formresidential.con_desiredrate.focus();
		return(false);
    }
	 if (document.formresidential.con_time.selectedIndex == 0) {
        alert('You must select your ESTIMATED TIME UNTIL PURCHASE to continue.');
		document.formresidential.con_time.focus();
		return(false);
    }
	
}

   if (document.formresidential.credit.selectedIndex == 0) {
        alert('You must select your CREDIT TYPE to continue.');
		document.formresidential.credit.focus();
		return(false);
    }
	if (document.formresidential.occupationstatus.selectedIndex == 0) {
        alert('You must select your OCCUPATIONAL STATUS to continue.');
		document.formresidential.occupationstatus.focus();
		return(false);
    }
	if (document.formresidential.currentjoblength.selectedIndex == 0) {
        alert('You must select your YEARS AT YOUR CURRENT JOB to continue.');
		document.formresidential.currentjoblength.focus();
		return(false);
    }
	if (document.formresidential.lineofworklength.selectedIndex == 0) {
        alert('You must select your YEARS IN YOUR LINE OF WORK to continue.');
		document.formresidential.lineofworklength.focus();
		return(false);
    }
	if (document.formresidential.gross.selectedIndex == 0) {
        alert('You must select your GROSS ANNUAL INCOME to continue.');
		document.formresidential.gross.focus();
		return(false);
    }
	if (document.formresidential.incometype.selectedIndex == 0) {
        alert('You must select your INCOME TYPE to continue.');
		document.formresidential.incometype.focus();
		return(false);
    }
	if (document.formresidential.debtpayments.selectedIndex == 0) {
        alert('You must select your MINIMUM MONTHLY DEBT PAYMENTS to continue.');
		document.formresidential.debtpayments.focus();
		return(false);
    }
	
	
	if (document.formresidential.firstname.value.length == 0)
	{
		alert('You must enter your FIRST NAME to continue.');
		document.formresidential.firstname.focus();
		return(false);
	}
	if (document.formresidential.lastname.value.length == 0)
	{
		alert('You must enter your LAST NAME to continue.');
		document.formresidential.lastname.focus();
		return(false);
	}
	if (document.formresidential.currentaddress.value.length == 0)
	{
		alert('You must enter your ADDRESS to continue.');
		document.formresidential.currentaddress.focus();
		return(false);
	}
	if (document.formresidential.city.value.length == 0)
	{
		alert('You must enter your CITY to continue.');
		document.formresidential.city.focus();
		return(false);
	}
	if (document.formresidential.state.selectedIndex == 0) {
        alert('You must select your STATE to continue.');
		document.formresidential.state.focus();
		return(false);
    }
	if (document.formresidential.zip.value.length == 0)
	{
		alert('You must enter your ZIP to continue.');
		document.formresidential.zip.focus();
		return(false);
	}
	if (document.formresidential.phone.value.length == 0)
	{
		alert('You must enter your PHONE NUMBER to continue.');
		document.formresidential.phone.focus();
		return(false);
	}
	if (document.formresidential.besttime.selectedIndex == 0) {
        alert('You must select THE BEST TIME TO CALL to continue.');
		document.formresidential.besttime.focus();
		return(false);
    }
	return (true);
} 
























function Validate_Commercial()
{

  if (document.formcommercial.commercialloantype.selectedIndex == 0) {
        alert('You must select your LOAN TYPE to continue.');
		document.formcommercial.commercialloantype.focus();
		return(false);
    }
	
if (formcommercial.commercialloantype.value=="Purchase") {
 	if (document.formcommercial.typeofBusiness.selectedIndex == 0) {
        alert('You must select your TYPE OF BUSINESS to continue.');
		document.formcommercial.typeofBusiness.focus();
		return(false);
    }
	if (document.formcommercial.description.value.length == 0)
	{
		alert('You must enter A DETAILS DESCRIPTION OF PROPERTY to continue.');
		document.formcommercial.description.focus();
		return(false);
	}
	if (document.formcommercial.p_purchaseprice.value.length == 0)
	{
		alert('You must enter A PURCHASE PRICE to continue.');
		document.formcommercial.p_purchaseprice.focus();
		return(false);
	}
	if (document.formcommercial.p_city.value.length == 0)
	{
		alert('You must enter YOUR PURCHASE CITY to continue.');
		document.formcommercial.p_city.focus();
		return(false);
	}
	if (document.formcommercial.p_state.selectedIndex == 0) {
        alert('You must select YOUR PURCHASE STATE to continue.');
		document.formcommercial.p_state.focus();
		return(false);
    }
	if (document.formcommercial.p_estimatedvalue.value.length == 0)
	{
		alert('You must enter YOUR CURRENT ESTIMATED VALUE to continue.');
		document.formcommercial.p_estimatedvalue.focus();
		return(false);
	}
	if (document.formcommercial.p_loanamount.value.length == 0)
	{
		alert('You must enter YOUR LOAN AMOUNT REQUESTED to continue.');
		document.formcommercial.p_loanamount.focus();
		return(false);
	}
	if (document.formcommercial.p_cashdown.value.length == 0)
	{
		alert('You must enter YOUR CASH DOWN to continue.');
		document.formcommercial.p_cashdown.focus();
		return(false);
	}
	if (document.formcommercial.p_desiredrate.selectedIndex == 0) {
        alert('You must select YOUR DESIRED RATE to continue.');
		document.formcommercial.p_desiredrate.focus();
		return(false);
    }
	if (document.formcommercial.p_timetilpurchase.selectedIndex == 0) {
        alert('You must select YOUR ESTIMATED TIME UNTIL PURCHASE to continue.');
		document.formcommercial.p_timetilpurchase.focus();
		return(false);
    }
	if (document.formcommercial.p_grossyrly.value.length == 0)
	{
		alert('You must enter GROSS YEARLY INCOME to continue.');
		document.formcommercial.p_grossyrly.focus();
		return(false);
	}
	if (document.formcommercial.p_grossxpens.value.length == 0)
	{
		alert('You must enter GROSS YEARLY EXPENSES to continue.');
		document.formcommercial.p_grossxpens.focus();
		return(false);
	}
}

if (formcommercial.commercialloantype.value=="Refinance Rate and Term") {
 	if (document.formcommercial.typeofBusiness.selectedIndex == 0) {
        alert('You must select your TYPE OF BUSINESS to continue.');
		document.formcommercial.typeofBusiness.focus();
		return(false);
    }
	if (document.formcommercial.description.value.length == 0)
	{
		alert('You must enter A DETAILS DESCRIPTION OF PROPERTY to continue.');
		document.formcommercial.description.focus();
		return(false);
	}
	if (document.formcommercial.r1_city.value.length == 0)
	{
		alert('You must enter YOUR PURCHASE CITY to continue.');
		document.formcommercial.r1_city.focus();
		return(false);
	}
	if (document.formcommercial.r1_state.selectedIndex == 0) {
        alert('You must select YOUR PURCHASE STATE to continue.');
		document.formcommercial.r1_state.focus();
		return(false);
    }
	if (document.formcommercial.r1_purchaseprice.value.length == 0)
	{
		alert('You must enter YOUR ORIGINAL PURCHASE PRICE to continue.');
		document.formcommercial.r1_purchaseprice.focus();
		return(false);
	}
	if (document.formcommercial.r1_estimatedvalue.value.length == 0)
	{
		alert('You must enter YOUR CURRENT ESTIMATED VALUE to continue.');
		document.formcommercial.r1_estimatedvalue.focus();
		return(false);
	}
	if (document.formcommercial.r1_firstlien.value.length == 0)
	{
		alert('You must enter THE AMOUNT OF THE FIRST LIEN to continue.');
		document.formcommercial.r1_firstlien.focus();
		return(false);
	}
	if (document.formcommercial.r1_interestrate.value.length == 0)
	{
		alert('You must enter YOUR CURRENT INTEREST RATE to continue.');
		document.formcommercial.r1_interestrate.focus();
		return(false);
	}
	if (document.formcommercial.r1_monthlypayments.value.length == 0)
	{
		alert('You must enter YOUR CURRENT MONTHLY PAYMENTS to continue.');
		document.formcommercial.r1_monthlypayments.focus();
		return(false);
	}
	if (document.formcommercial.r1_amountrequested.value.length == 0)
	{
		alert('You must enter THE LOAN AMOUNT REQUESTED to continue.');
		document.formcommercial.r1_amountrequested.focus();
		return(false);
	}
	if (document.formcommercial.r1_desiredrate.selectedIndex == 0) {
        alert('You must select YOUR DESIRED RATE to continue.');
		document.formcommercial.r1_desiredrate.focus();
		return(false);
    }
	if (document.formcommercial.r1_grossyrly.value.length == 0)
	{
		alert('You must enter GROSS YEARLY INCOME to continue.');
		document.formcommercial.r1_grossyrly.focus();
		return(false);
	}
	if (document.formcommercial.r1_grossxpense.value.length == 0)
	{
		alert('You must enter GROSS YEARLY EXPENSES to continue.');
		document.formcommercial.r1_grossxpense.focus();
		return(false);
	}
	
}

if (formcommercial.commercialloantype.value=="Refi Cash Out") {
 	if (document.formcommercial.typeofBusiness.selectedIndex == 0) {
        alert('You must select your TYPE OF BUSINESS to continue.');
		document.formcommercial.typeofBusiness.focus();
		return(false);
    }
	if (document.formcommercial.description.value.length == 0)
	{
		alert('You must enter A DETAILS DESCRIPTION OF PROPERTY to continue.');
		document.formcommercial.description.focus();
		return(false);
	}
	if (document.formcommercial.r2_city.value.length == 0)
	{
		alert('You must enter YOUR PURCHASE CITY to continue.');
		document.formcommercial.r2_city.focus();
		return(false);
	}
	if (document.formcommercial.r2_state.selectedIndex == 0) {
        alert('You must select YOUR PURCHASE STATE to continue.');
		document.formcommercial.r2_state.focus();
		return(false);
    }
	if (document.formcommercial.r2_purchaseprice.value.length == 0)
	{
		alert('You must enter YOUR ORIGINAL PURCHASE PRICE to continue.');
		document.formcommercial.r2_purchaseprice.focus();
		return(false);
	}
	if (document.formcommercial.r2_estimatedvalue.value.length == 0)
	{
		alert('You must enter YOUR CURRENT ESTIMATED VALUE to continue.');
		document.formcommercial.r2_estimatedvalue.focus();
		return(false);
	}
	if (document.formcommercial.r2_firstlien.value.length == 0)
	{
		alert('You must enter THE AMOUNT OF THE FIRST LIEN to continue.');
		document.formcommercial.r2_firstlien.focus();
		return(false);
	}
	if (document.formcommercial.r2_interestrate.value.length == 0)
	{
		alert('You must enter YOUR CURRENT INTEREST RATE to continue.');
		document.formcommercial.r2_interestrate.focus();
		return(false);
	}
	if (document.formcommercial.r2_monthlypayments.value.length == 0)
	{
		alert('You must enter YOUR CURRENT MONTHLY PAYMENTS to continue.');
		document.formcommercial.r2_monthlypayments.focus();
		return(false);
	}
	if (document.formcommercial.r2_amountrequested.value.length == 0)
	{
		alert('You must enter THE LOAN AMOUNT REQUESTED to continue.');
		document.formcommercial.r2_amountrequested.focus();
		return(false);
	}
	if (document.formcommercial.r2_cashout.value.length == 0)
	{
		alert('You must enter THE AMOUNT OF CASH OUT to continue.');
		document.formcommercial.r2_cashout.focus();
		return(false);
	}
	if (document.formcommercial.r2_useforcash.value.length == 0)
	{
		alert('You must enter THE USE FOR CASH to continue.');
		document.formcommercial.r2_useforcash.focus();
		return(false);
	}
	if (document.formcommercial.r2_desiredrate.selectedIndex == 0) {
        alert('You must select YOUR DESIRED RATE to continue.');
		document.formcommercial.r2_desiredrate.focus();
		return(false);
    }
	if (document.formcommercial.r2_grossyrly.value.length == 0)
	{
		alert('You must enter GROSS YEARLY INCOME to continue.');
		document.formcommercial.r2_grossyrly.focus();
		return(false);
	}
	if (document.formcommercial.r2_grossxpense.value.length == 0)
	{
		alert('You must enter GROSS YEARLY EXPENSES to continue.');
		document.formcommercial.r2_grossxpense.focus();
		return(false);
	}
	
}


  if (document.formcommercial.credit.selectedIndex == 0) {
        alert('You must select your CREDIT TYPE to continue.');
		document.formcommercial.credit.focus();
		return(false);
    }
	if (document.formcommercial.occupationstatus.selectedIndex == 0) {
        alert('You must select your OCCUPATIONAL STATUS to continue.');
		document.formcommercial.occupationstatus.focus();
		return(false);
    }
	if (document.formcommercial.currentjoblength.selectedIndex == 0) {
        alert('You must select your YEARS AT YOUR CURRENT JOB to continue.');
		document.formcommercial.currentjoblength.focus();
		return(false);
    }
	if (document.formcommercial.lineofworklength.selectedIndex == 0) {
        alert('You must select your YEARS IN YOUR LINE OF WORK to continue.');
		document.formcommercial.lineofworklength.focus();
		return(false);
    }
	if (document.formcommercial.gross.selectedIndex == 0) {
        alert('You must select your GROSS ANNUAL INCOME to continue.');
		document.formcommercial.gross.focus();
		return(false);
    }
	if (document.formcommercial.incometype.selectedIndex == 0) {
        alert('You must select your INCOME TYPE to continue.');
		document.formcommercial.incometype.focus();
		return(false);
    }
	if (document.formcommercial.debtpayments.selectedIndex == 0) {
        alert('You must select your MINIMUM MONTHLY DEBT PAYMENTS to continue.');
		document.formcommercial.debtpayments.focus();
		return(false);
    }
	
	
	if (document.formcommercial.firstname.value.length == 0)
	{
		alert('You must enter your FIRST NAME to continue.');
		document.formcommercial.firstname.focus();
		return(false);
	}
	if (document.formcommercial.lastname.value.length == 0)
	{
		alert('You must enter your LAST NAME to continue.');
		document.formcommercial.lastname.focus();
		return(false);
	}
	if (document.formcommercial.currentaddress.value.length == 0)
	{
		alert('You must enter your ADDRESS to continue.');
		document.formcommercial.currentaddress.focus();
		return(false);
	}
	if (document.formcommercial.city.value.length == 0)
	{
		alert('You must enter your CITY to continue.');
		document.formcommercial.city.focus();
		return(false);
	}
	if (document.formcommercial.state.selectedIndex == 0) {
        alert('You must select your STATE to continue.');
		document.formcommercial.state.focus();
		return(false);
    }
	if (document.formcommercial.zip.value.length == 0)
	{
		alert('You must enter your ZIP to continue.');
		document.formcommercial.zip.focus();
		return(false);
	}
	if (document.formcommercial.phone.value.length == 0)
	{
		alert('You must enter your PHONE NUMBER to continue.');
		document.formcommercial.phone.focus();
		return(false);
	}
	if (document.formcommercial.besttime.selectedIndex == 0) {
        alert('You must select THE BEST TIME TO CALL to continue.');
		document.formcommercial.besttime.focus();
		return(false);
    }
	return (true);
} 

function Validate_Private()
{
	if (document.formprivate.privateloantype.selectedIndex == 0) {
        alert('You must select your LOAN TYPE to continue.');
		document.formprivate.privateloantype.focus();
		return(false);
    }
	if (document.formprivate.ploanrequest.selectedIndex == 0) {
        alert('You must select your LOAN REQUEST to continue.');
		document.formprivate.ploanrequest.focus();
		return(false);
    }
if (formprivate.privateloantype.value=="Residential" || formprivate.privateloantype.value=="Commercial"  || formprivate.privateloantype.value=="Land Loan") {
	if (document.formprivate.ploanrequesttype.selectedIndex == 0) {
        alert('You must select EITHER PURCHASE OR REFI to continue.');
		document.formprivate.ploanrequesttype.focus();
		return(false);
    }
}
	
if (formprivate.ploanrequesttype.value=="Purchase") {
 	if (document.formprivate.pmppurchaseprice.value.length == 0)
	{
		alert('You must enter your PURCHASE PRICE to continue.');
		document.formprivate.pmppurchaseprice.focus();
		return(false);
	}
	if (document.formprivate.pmpestimatevalue.value.length == 0)
	{
		alert('You must enter your ESTIMATED VALUE to continue.');
		document.formprivate.pmpestimatevalue.focus();
		return(false);
	}
	if (document.formprivate.pmpcashdown.value.length == 0)
	{
		alert('You must enter your CASH VALUE to continue.');
		document.formprivate.pmpcashdown.focus();
		return(false);
	}
}
if (formprivate.ploanrequesttype.value=="Refi") {
 	if (document.formprivate.pmrpurchaseprice.value.length == 0)
	{
		alert('You must enter your PURCHASE PRICE to continue.');
		document.formprivate.pmrpurchaseprice.focus();
		return(false);
	}
	if (document.formprivate.pmrestimatedvalue.value.length == 0)
	{
		alert('You must enter your ESTIMATED VALUE to continue.');
		document.formprivate.pmrestimatedvalue.focus();
		return(false);
	}
	if (document.formprivate.pmrforeclosure.selectedIndex == 0) {
        alert('You must select your FORECLOSURE STATUS to continue.');
		document.formprivate.pmrforeclosure.focus();
		return(false);
    }
	if (document.formprivate.pmr1stlien.value.length == 0)
	{
		alert('You must enter your CURRENT 1ST LIEN to continue.');
		document.formprivate.pmr1stlien.focus();
		return(false);
	}
}
if (formprivate.privateloantype.value=="ConstructionDevelopment") {
 	if (document.formprivate.pmcpriceland.value.length == 0)
	{
		alert('You must enter your PURCHASE PRICE of LAND to continue.');
		document.formprivate.pmcpriceland.focus();
		return(false);
	}
	if (document.formprivate.pmcamtcurrtlien.value.length == 0)
	{
		alert('You must enter your CURRENT 1ST LIEN ON THE LAND to continue.');
		document.formprivate.pmcamtcurrtlien.focus();
		return(false);
	}
	if (document.formprivate.pmccurrtvalue.value.length == 0)
	{
		alert('You must enter your CURRENT VALUE of THE LAND to continue.');
		document.formprivate.pmccurrtvalue.focus();
		return(false);
	}
	if (document.formprivate.pmcestimateccost.value.length == 0)
	{
		alert('You must enter your ESTIMATED CONSTRUCTION COSTS to continue.');
		document.formprivate.pmcestimateccost.focus();
		return(false);
	}
	if (document.formprivate.pmcestimatestruct.value.length == 0)
	{
		alert('You must enter your ESTIMATED VALUE WHEN COMPLETED to continue.');
		document.formprivate.pmcestimatestruct.focus();
		return(false);
	}
	if (document.formprivate.pmccashdn.value.length == 0)
	{
		alert('You must enter your CASH DOWN to continue.');
		document.formprivate.pmccashdn.focus();
		return(false);
	}
}
  if (document.formprivate.credit.selectedIndex == 0) {
        alert('You must select your CREDIT TYPE to continue.');
		document.formprivate.credit.focus();
		return(false);
    }
	if (document.formprivate.occupationstatus.selectedIndex == 0) {
        alert('You must select your OCCUPATIONAL STATUS to continue.');
		document.formprivate.occupationstatus.focus();
		return(false);
    }
	if (document.formprivate.currentjoblength.selectedIndex == 0) {
        alert('You must select your YEARS AT YOUR CURRENT JOB to continue.');
		document.formprivate.currentjoblength.focus();
		return(false);
    }
	if (document.formprivate.lineofworklength.selectedIndex == 0) {
        alert('You must select your YEARS IN YOUR LINE OF WORK to continue.');
		document.formprivate.lineofworklength.focus();
		return(false);
    }
	if (document.formprivate.gross.selectedIndex == 0) {
        alert('You must select your GROSS ANNUAL INCOME to continue.');
		document.formprivate.gross.focus();
		return(false);
    }
	if (document.formprivate.incometype.selectedIndex == 0) {
        alert('You must select your INCOME TYPE to continue.');
		document.formprivate.incometype.focus();
		return(false);
    }
	if (document.formprivate.debtpayments.selectedIndex == 0) {
        alert('You must select your MINIMUM MONTHLY DEBT PAYMENTS to continue.');
		document.formprivate.debtpayments.focus();
		return(false);
    }
	
	
	if (document.formprivate.firstname.value.length == 0)
	{
		alert('You must enter your FIRST NAME to continue.');
		document.formprivate.firstname.focus();
		return(false);
	}
	if (document.formprivate.lastname.value.length == 0)
	{
		alert('You must enter your LAST NAME to continue.');
		document.formprivate.lastname.focus();
		return(false);
	}
	if (document.formprivate.currentaddress.value.length == 0)
	{
		alert('You must enter your ADDRESS to continue.');
		document.formprivate.currentaddress.focus();
		return(false);
	}
	if (document.formprivate.city.value.length == 0)
	{
		alert('You must enter your CITY to continue.');
		document.formprivate.city.focus();
		return(false);
	}
	if (document.formprivate.state.selectedIndex == 0) {
        alert('You must select your STATE to continue.');
		document.formprivate.state.focus();
		return(false);
    }
	if (document.formprivate.zip.value.length == 0)
	{
		alert('You must enter your ZIP to continue.');
		document.formprivate.zip.focus();
		return(false);
	}
	if (document.formprivate.phone.value.length == 0)
	{
		alert('You must enter your PHONE NUMBER to continue.');
		document.formprivate.phone.focus();
		return(false);
	}
	if (document.formprivate.besttime.selectedIndex == 0) {
        alert('You must select THE BEST TIME TO CALL to continue.');
		document.formprivate.besttime.focus();
		return(false);
    }
	return (true);
} 
//-->













































