function checkPage(){
/*
var allowRedirect=false;

var targetRef="http://www.loanscompete.com/jsp/newform/refi.htm";
var targetHEq="http://www.loanscompete.com/jsp/newform/homeequity.htm";
var targetDeb="http://www.loanscompete.com/jsp/newform/debtconsolidation.htm";
var targetNHo="http://www.loanscompete.com/jsp/newform/newhome.htm";

document.getElementById("prolocspan").style.display="none";
var state=document.forma.proloc.value;
var val= document.getElementById("proloc").value;
var credit = document.forma.credit.value;
var prop=document.forma.proType.value;
if(prop =="Single Family Home") prop="Single";
     else if(prop =="Condominimum/Townhome") prop="Condo";
     else if(prop =="Multi-Family Dwelling") prop="Multi";
     else if(prop =="Duplex") prop="Multi";
     else if(prop =="Manufactured") prop="Manufactured";

    if(val.length<1) {document.getElementById("prolocspan").style.display="block";return false;}
    
var ref=document.forma.loan.value;
if((allowRedirect) && (credit=="Excellent" || credit=="Good")){
if(ref=="Refinance"){
                     var t1=targetRef+"?st="+state+"&PropertyType="+prop+"&CreditRating="+credit;
                     window.location.href=t1;return false;
                     }
else if(ref=="Home Equity"){
                     var t1=targetHEq+"?st="+state+"&PropertyType="+prop+"&CreditRating="+credit;
                     window.location.href=t1;return false;
                     }
else if(ref=="Debt Consolidation"){
                     var t1=targetDeb+"?st="+state+"&PropertyType="+prop+"&CreditRating="+credit;
                     window.location.href=t1;return false;
                     }
else if(ref=="Home Purchase"){
                     var t1=targetNHo+"?st="+state+"&PropertyType="+prop+"&CreditRating="+credit;
                     window.location.href=t1;return false;
                     }
}*/


var targetLoanMod="http://www.loanscompete.com/landing/loanmodifications.htm";
var allowRedirectToLoanMod = true;
if(typeof internalClick != 'undefined') internalClick = false;
var val= document.getElementById("proloc").value;
    if(val.length<1) {if(document.getElementById("prolocspan")) document.getElementById("prolocspan").style.display="block";return false;}
    else {
          if(document.getElementById("prolocspan")) document.getElementById("prolocspan").style.display="none";
          
         }

val = document.getElementById("loan").value;
if(val.length<1) {if(document.getElementById("loanspan")) document.getElementById("loanspan").style.display="block";return false;}
    else {
          if(document.getElementById("loanspan")) document.getElementById("loanspan").style.display="none";
          
         }

if(document.forma.loan.value=="Home Purchase"){
document.forma.action="http://www.loanscompete.com/lcompete/smart/mortgageLoans/homepurchase.jsp";
if(typeof internalClick != 'undefined') internalClick = true;
}
else if((document.forma.credit.value=="Poor") && allowRedirectToLoanMod){
var c;
var t;
if(document.forma.credit.value=="Poor") c=1;
else if(document.forma.credit.value=="Needs Improvement") c=2;
else if(document.forma.credit.value=="Fair") c=3;
t="c="+c;
t+="&pl="+document.getElementById("proloc").value;
t+="&pt="+encodeURIComponent(document.getElementById("proType").value);
if(document.getElementById("rlid")){
t+="&rlid="+encodeURIComponent(document.getElementById("rlid").value);
}
if(typeof internalClick != 'undefined') internalClick = true;
window.location.href="http://www.loanscompete.com/landing/loanmodifications.htm?"+t;
return false;
}
else document.forma.action="http://www.loanscompete.com/lcompete/smart/mortgageLoans/mortgageform.jsp";
if(typeof internalClick != 'undefined') internalClick = true;
return true;


}

