function openpopup(){var popurl="quicklist.cfm" 
    winpops=window.open(popurl,"","width=525,height=400,scrollbars=yes") 
    } 
    
  function loancalc() {
    var pro_gross = document.loanform.pro_gross.value
    var pro_rate = document.loanform.pro_rate.options[document.loanform.pro_rate.selectedIndex].value
    document.loanform.pro_result.value = (Math.round (((pro_gross * (pro_rate / 100)) / 12) * 100)) / 100; 
  }
  function jointcalc() {
    var pro_gross2 = document.loanform.pro_gross2.value
    var pro_monthly2 = document.loanform.pro_monthly2.value
    var pro_rate2 = document.loanform.pro_rate2.options[document.loanform.pro_rate2.selectedIndex].value 
    document.loanform.pro_result2.value = (Math.round (((pro_gross2 * ( (Math.pow((1 + (pro_rate2 / 100)), pro_monthly2)) / ((Math.pow((1 + (pro_rate2 / 100)), pro_monthly2) - 1))  ) * (pro_rate2 / 100)) / 12) * 100)) / 100; 
  }
  function checkNumber() {
    var pro_monthly2 = document.loanform.pro_monthly2.value
    if (pro_monthly2 > "35")
      alert("\nPlease Enter a Figure of 35 Years or Less.");
  }
  function checkPrice1() {
    if (document.loanform.pro_gross.value == '' || isNaN(document.loanform.pro_gross.value)) {
      alert('Please enter numbers only\nfor the Mortgage Amount')
      document.loanform.pro_gross.focus()
      return
    }
  }
  function checkPrice2() {
    if (document.loanform.pro_gross2.value == '' || isNaN(document.loanform.pro_gross2.value)) {
      alert('Please enter numbers only\nfor the Mortgage Amount')
      document.loanform.pro_gross2.focus()
      return
    }
  }
  
  if (navigator.appName == "Netscape" &&
 parseInt(navigator.appVersion) == 3)
        {       version = "ns3";}
else if (navigator.appName == "Netscape" &&
 parseInt(navigator.appVersion) ==
4)
        {       version = "ns4";}
else if (navigator.appName == "Microsoft Internet Explorer" &&
navigator.appVersion.substring(0,4) == 2.0)
        {       version = "ie3";}
else if (navigator.appName == "Microsoft Internet Explorer" &&
parseInt(navigator.appVersion) == 4)
        {       version = "ie4";}

if (version == "ns3" || version == "ns4" || version == "ie4")

{
        p1on = new Image ();
        p1on.src = "images/jdheader_05on.gif";
        p1off = new Image ();
        p1off.src = "images/jdheader_05.gif";
        p2on = new Image ();
        p2on.src = "images/jdheader_06on.gif";
        p2off = new Image ();
        p2off.src = "images/jdheader_06.gif";
        p3on = new Image ();
        p3on.src = "images/jdheader_07on.gif";
        p3off = new Image ();
        p3off.src = "images/jdheader_07.gif";
        p4on = new Image ();
        p4on.src = "images/jdheader_08on.gif";
        p4off = new Image ();
        p4off.src = "images/jdheader_08.gif";
        p5on = new Image ();
        p5on.src = "images/jdheader_09on.gif";
        p5off = new Image ();
        p5off.src = "images/jdheader_09.gif";
};

function select(img1,img2) {
 if (version == "ns3" || version == "ns4" || version == "ie4")
        {
         document.images[img1].src=eval(img2+".src");
        };
};