rajeshmandhana
asked on
Seeeion in jsp
I have to store inserted data in form and when user hits back the values inserted should be printed.
how to do it.
 i have done like this mbut it is not workinhg help...
<%@ include file="/common/wrappertop.j sp" %>
<%@ include file="/common/subwrapperto p.jsp" %>
<%@ page import="com.xldynamics.mol .loanlink. session.Re fDefault" %>
<%
  RefDefault refdefault;
  refdefault = (RefDefault)(session.getAt tribute("r efdefault" ));
      String checkLoanType="";
  String checkLoanTerm="";
      String moreImportant="";
      String interestOnly="";
      String hundredPercentFinancing="" ;
      String propertyOccCode="";
      String estimatePropertyValue="";
      String goal="";
      String sLoadFromSessObj = "NO";
     Â
      if (refdefault != null){
            checkLoanType=refdefault.g etLoanType ();
            checkLoanTerm = refdefault.getLoanTerm();
            moreImportant = refdefault.getMoreImportan t();
            interestOnly = refdefault.getInterestOnly ();
            hundredPercentFinancing = refdefault.getHundredFinan cing();
            propertyOccCode = refdefault.getPropertyOccC ode();
            estimatePropertyValue = refdefault.getEstimateProp ertyValue( );
            goal=refdefault.getGoal();
         sLoadFromSessObj = "YES";
      }
      else
      {
            sLoadFromSessObj = "NO";
      }
%>
<style type="text/css">
<!--
#idCurrentBalance {display:none;}
#idCashOut {display:none;}
#idFirstSecond {display:none;}
#idAfterHomePurchase {display:none;}
#idAfterHomePurchaseEquity {display:none;}
#idLowest {display:none;}
#idLeast {display:none;}
#idSecondMortgageLoan {display:none;}
#idSecondMortgageLoan4 {display:none;}
//-->
</style>
<script language="JavaScript">
<!--
ns4 = ( document.layers )? true:false
ie4 = ( document.all ) ? true:false
function DisplayField(fldValue)
{
 Â
      if(document.all)
      {
   document.all.idLowest.styl e.display= "none";
   document.all.idLeast.style .display=" none"; Â
  Â
   if (fldValue == "Lowest Monthly Payment")
   {
                 document.all.idLowest.styl e.display= "block";
     document.all.idLeast.style .display=" none"; Â
   } else if (fldValue == "Least amount of cash out of my pocket") {
     document.all.idLeast.style .display=" block";
     document.all.idLowest.styl e.display= "none";
   } Â
      }
}
function DisplayRefinanceGoal(fldVa lue)
{
      if(document.all)
      {
   document.all.idCurrentBala nce.style. display="n one";
   document.all.idCashOut.sty le.display ="none";
   document.all.idFirstSecond .style.dis play="none ";
   document.all.idAfterHomePu rchase.sty le.display ="none";
   document.all.idAfterHomePu rchaseEqui ty.style.d isplay="no ne";
  Â
   if (fldValue == "1")
     document.all.idCurrentBala nce.style. display="b lock";
   else if (fldValue == "2")
     document.all.idCashOut.sty le.display ="block";
   else if (fldValue == "3")
     document.all.idFirstSecond .style.dis play="bloc k";
   else if (fldValue == "4")
     document.all.idAfterHomePu rchase.sty le.display ="block";
   else if (fldValue == "5")
     document.all.idAfterHomePu rchaseEqui ty.style.d isplay="bl ock";           Â
      }
}
function checkLoan3()
{
  document.all.idSecondMortg ageLoan.st yle.displa y="none"; Â
  Â
      if(document.all)
      { Â
   document.all.idSecondMortg ageLoan.st yle.displa y="block";  Â
  }
}
function checkLoan4()
{
  document.all.idSecondMortg ageLoan4.s tyle.displ ay="none"; Â
  Â
      if(document.all)
      { Â
   document.all.idSecondMortg ageLoan4.s tyle.displ ay="block" ;  Â
  }
}
function checkLoanType(checkValue)
{
  if (checkValue == true)
   document.REFINANCE.LoanTyp e.selected Index=0
}
function selectLoanType(fieldName)
{
  if (fieldName.selectedIndex != 0)
   document.REFINANCE.LoanTyp eNotSure.c hecked = false
}
arrTextVal[1] = Â Â Â new Array('','','','','')
arrTextVal[2] = Â Â Â new Array('','LoanTerm','check LoanTerm', 'How long do you think you will have this loan?','1,0,0')
arrTextVal[3] = Â Â Â new Array('','MoreImportant',' checkMoreI mportant', 'What is more important to you?','1,0,0')
arrTextVal[4] = Â Â Â new Array('','PropertyOccCode' ,'checkPro pertyOccCo de','This will be your:','1,0,0')
arrTextVal[5] = Â Â Â new Array('','EstimateProperty Value','ch eckEstimat ePropertyV alue','Wha t is the estimated value of your home?','1,1,0')
arrTextVal[6] = Â Â Â new Array('','','','','')
arrTextVal[7] = Â Â Â new Array('','','','','')
arrTextVal[8] = Â Â Â new Array('','','','','')
arrTextVal[9] = Â Â Â new Array('','','','','')
arrTextVal[10] = Â Â Â new Array('','','','','')
function validateLoan(formName)
{
  arrTextVal[1][1]  = ""
  arrTextVal[1][2]  = ""
  arrTextVal[1][3]  = ""
  arrTextVal[1][4]  = ""
 Â
  arrTextVal[6][1]  = ""
  arrTextVal[6][2]  = ""
  arrTextVal[6][3]  = ""
  arrTextVal[6][4]  = ""
 Â
  arrTextVal[7][1]  = ""
  arrTextVal[7][2]  = ""
  arrTextVal[7][3]  = ""
  arrTextVal[7][4]  = ""
 Â
  arrTextVal[8][1]  = ""
  arrTextVal[8][2]  = ""
  arrTextVal[8][3]  = ""
  arrTextVal[8][4]  = ""
 Â
  arrTextVal[9][1]  = ""
  arrTextVal[9][2]  = ""
  arrTextVal[9][3]  = ""
  arrTextVal[9][4]  = ""
 Â
  arrTextVal[10][1]  = ""
  arrTextVal[10][2]  = ""
  arrTextVal[10][3]  = ""
  arrTextVal[10][4]  = ""
 Â
  if (formName.LoanTypeNotSure. checked == false)
  {
   arrTextVal[1][1] = "LoanType"   // field name
   arrTextVal[1][2] = "checkLoanType"   // id name
   arrTextVal[1][3] = "I know what type of loan I want"  // text
   arrTextVal[1][4] = "1,0,0"          // required, number, length,
  }
  if (formName.MoreImportant.se lectedInde x != 0)
  {
   if (formName.MoreImportant.op tions[form Name.MoreI mportant.s electedInd ex].value == "Lowest Monthly Payment")
   {
     if (formName.InterestOnly[0]. checked == false && formName.InterestOnly[1].c hecked == false)
     {
      errorMsg += "- 'Would you like to consider interest only loan choices? \n"
      valField("checkInterestOnl y",1)
     }
   }
  Â
    if (formName.MoreImportant.op tions[form Name.MoreI mportant.s electedInd ex].value == "Least amount of cash out of my pocket")
   {
     if (formName.HundredPercentFi nancing[0] .checked == false && formName.HundredPercentFin ancing[1]. checked == false)
     {
      errorMsg += "- 'Would you like 100% financing loan choice? \n"
      valField("checkHundredPerc entFinanci ng",1)
     }
   }
  }
 Â
  // to refinance my first mortgage at the current balance
  if (formName.Goal[0].checked == true)
  {
   valField("checkCurrentLoan Program_1" ,0)
   if (formName.CurrentLoanProgr am_1.selec tedIndex == 0)
   {
     errorMsg += "- 'What is your current loan program  \n"
     valField("checkCurrentLoan Program_1" ,1)
   }
  Â
   arrTextVal[6][1]  = "CurrentBalance_1"
   arrTextVal[6][2]  = "checkCurrentBalance_1"
   arrTextVal[6][3]  = "What is your current balance "
   arrTextVal[6][4]  = "1,1,0"
  Â
   arrTextVal[7][1]  = "CurrentRate_1"
   arrTextVal[7][2]  = "checkCurrentRate_1"
   arrTextVal[7][3]  = "What is your current rate"
   arrTextVal[7][4]  = "1,1,0"
  Â
  } else  if (formName.Goal[1].checked == true) {
 Â
   valField("checkCurrentLoan Program_2" ,0)
   if (formName.CurrentLoanProgr am_2.selec tedIndex == 0)
   {
     errorMsg += "- 'What is your current loan program  \n"
     valField("checkCurrentLoan Program_2" ,1)
   }
  Â
   arrTextVal[6][1]  = "CurrentFirstMortgageBalan ce_2"
   arrTextVal[6][2]  = "checkCurrentFirstMortgage Balance_2"
   arrTextVal[6][3]  = "What is your current first mortgage balance "
   arrTextVal[6][4]  = "1,1,0"
  Â
   arrTextVal[7][1]  = "CurrentRate_2"
   arrTextVal[7][2]  = "checkCurrentRate_2"
   arrTextVal[7][3]  = "What is your current rate "
   arrTextVal[7][4]  = "1,1,0"
  Â
   arrTextVal[8][1]  = "CashOut_2"
   arrTextVal[8][2]  = "checkCashOut_2"
   arrTextVal[8][3]  = "How much cash do you want?"
   arrTextVal[8][4]  = "1,1,0"
 Â
  } else  if (formName.Goal[2].checked == true) {
 Â
   valField("checkCurrentLoan Program_3" ,0)
   if (formName.CurrentLoanProgr am_3.selec tedIndex == 0)
   {
     errorMsg += "- 'What is your current FIRST loan program  \n"
     valField("checkCurrentLoan Program_3" ,1)
   }
  Â
   arrTextVal[6][1]  = "CurrentFirstMortgageBalan ce_3"
   arrTextVal[6][2]  = "checkCurrentFirstMortgage Balance_3"
   arrTextVal[6][3]  = "What is your current First mortgage balance"
   arrTextVal[6][4]  = "1,1,0"
  Â
   arrTextVal[7][1]  = "CurrentFirstMortgageRate_ 3"
   arrTextVal[7][2]  = "checkCurrentFirstMortgage Rate_3"
   arrTextVal[7][3]  = "What is your current First Mortgage rate"
   arrTextVal[7][4]  = "1,1,0"
  Â
   valField("checkSecondMortg age_3",0)
   if (formName.SecondMortgage_3 [0].checke d == false && formName.SecondMortgage_3[ 1].checked == false)
   {
     errorMsg += "- 'My 2nd Mortgage is a:  \n"
     valField("checkSecondMortg age_3",1)
   }
  Â
   if (formName.SecondMortgage_3 [1].checke d == true)
   {
     arrTextVal[8][1]  = "SecondLoanTerm_3"
     arrTextVal[8][2]  = "checkSecondLoanTerm_3"
     arrTextVal[8][3]  = "LOAN - What is the Term of the 2nd Loan?"
     arrTextVal[8][4]  = "1,1,0"
   }
  Â
   arrTextVal[9][1]  = "SecondBalance_3"
   arrTextVal[9][2]  = "checkSecondBalance_3"
   arrTextVal[9][3]  = "What is the balance on your 2nd"
   arrTextVal[9][4]  = "1,1,0"
  Â
   arrTextVal[10][1]  = "SecondMortgageRate_3"
   arrTextVal[10][2]  = "checkSecondMortgageRate_3 "
   arrTextVal[10][3]  = "What is your 2nd Mortgage Rate"
   arrTextVal[10][4]  = "1,1,0"
  Â
  } else  if (formName.Goal[3].checked == true) {  //to refinance my first and 2nd/equity line mortgage (taken out AFTER home purchase)
 Â
   valField("checkFirstLoanPr ogram_4",0 )
   if (formName.FirstLoanProgram _4.selecte dIndex == 0)
   {
     errorMsg += "- 'What is your current FIRST loan program \n"
     valField("checkFirstLoanPr ogram_4",1 )
   }
  Â
  Â
   arrTextVal[6][1]  = "FirstMortgageBalance_4"
   arrTextVal[6][2]  = "checkFirstMortgageBalance _4"
   arrTextVal[6][3]  = "What is your current First mortgage balance "
   arrTextVal[6][4]  = "1,1,0"
  Â
   arrTextVal[7][1]  = "FirstMortgageRate_4"
   arrTextVal[7][2]  = "checkFirstMortgageRate_4"
   arrTextVal[7][3]  = "What is your current First Mortgage rate"
   arrTextVal[7][4]  = "1,1,0"
  Â
    valField("checkSecondMortg age_4",0)
   if (formName.SecondMortgage_4 [0].checke d == false && formName.SecondMortgage_4[ 1].checked == false)
   {
     errorMsg += "- 'My 2nd Mortgage is a:  \n"
     valField("checkSecondMortg age_4",1)
   }
    Â
   if (formName.SecondMortgage_4 [1].checke d == true)
   {
     arrTextVal[8][1]  = "SecondLoanTerm_4"
     arrTextVal[8][2]  = "checkSecondLoanTerm_4"
     arrTextVal[8][3]  = "LOAN - What is the Term of the 2nd Loan?"
     arrTextVal[8][4]  = "1,1,0"
   }
   arrTextVal[9][1]  = "SecondBalance_4"
   arrTextVal[9][2]  = "checkSecondBalance_4"
   arrTextVal[9][3]  = "What is the balance on your Second"
   arrTextVal[9][4]  = "1,1,0"
  Â
   arrTextVal[10][1]  = "secondMortgageRate_4"
   arrTextVal[10][2]  = "checksecondMortgage_4"
   arrTextVal[10][3]  = "What is your second Mortgage Rate"
   arrTextVal[10][4]  = "1,1,0"
  Â
   var vLoanTermYr_4 = formName.LoanTermYr_4.valu e
   var vLoanTermMo_4 = formName.LoanTermMo_4.valu e
  Â
   valField("checkLoanTerm_4" ,0)
   if (trim(vLoanTermYr_4) == "" && trim(vLoanTermMo_4) == "")
   {
     errorMsg += "- 'How long have you had this loan  \n"
     valField("checkLoanTerm_4" ,1)
   }
  Â
   if (trim(vLoanTermYr_4) !="")
   {
     valField("checkLoanTerm_4" ,0)
    if (isNumber("How long have you had this loan", vLoanTermYr_4) == false)
      valField("checkLoanTerm_4" ,1)
   }
  Â
   if (trim(vLoanTermMo_4) !="")
   {
     valField("checkLoanTerm_4" ,0)
    if (isNumber("How long have you had this loan", vLoanTermMo_4) == false)
      valField("checkLoanTerm_4" ,1)
   }
  Â
  Â
  } else  if (formName.Goal[4].checked == true) {
   valField("checkFirstLoanPr ogram_5",0 )
   if (formName.FirstLoanProgram _5.selecte dIndex == 0)
   {
     errorMsg += "- 'What is your current FIRST loan program \n"
     valField("checkFirstLoanPr ogram_5",1 )
   }
  Â
   arrTextVal[6][1]  = "FirstMortgageBalance_5"
   arrTextVal[6][2]  = "checkFirstMortgageBalance _5"
   arrTextVal[6][3]  = "What is your current first mortgage balance "
   arrTextVal[6][4]  = "1,1,0"
  Â
   arrTextVal[7][1]  = "CurrentRate_5"
   arrTextVal[7][2]  = "checkCurrentRate_5"
   arrTextVal[7][3]  = "What is your current rate"
   arrTextVal[7][4]  = "1,1,0"
  Â
   arrTextVal[8][1]  = "SecondEquityLineBalance_5 "
   arrTextVal[8][2]  = "checkSecondEquityLineBala nce_5"
   arrTextVal[8][3]  = "What is your second/home equity line balance"
   arrTextVal[8][4]  = "1,1,0"
  Â
  } else {
   valField("checkGoal",0)
   errorMsg += "- 'MY Refinance Loan Goal Is: \n"
     valField("checkGoal",1)
  }
 Â
 Â
  return genValidate(formName)
}
  function values(){
      if("<%=sLoadFromSessObj%>" =="YES"){
           document.formName.LoanType .value= "<%= checkLoanType %>";
           document.formName.LoanTerm .value= "<%= checkLoanTerm %>";
           document.formName.Interest Only.value = "<%= interestOnly %>";
           document.formName.HundredF inancing.v alue= "<%= hundredPercentFinancing %>";
           if(document.formName.Inter estOnly.va lue == "null")
           {
                 if(document.formName.Hundr edFinancin g.value==" Y")
                 document.formName.HundredF inancing[0 ].checked= true;
                 else
                 document.formName.HundredF inancing[1 ].checked= true;
           }
           else
           {
                 if(document.formName.Inter estOnly.va lue=="Y")
                 document.formName.Interest Only[0].ch ecked=true ;
                 else
                 document.formName.Interest Only[1].ch ecked=true ;
           }
           propertyOccCodeValue ="<%= propertyOccCode %>" ;
           propertyOccCodeObj= document.form1.PropertyOcc Code;
           estimatePropertyValue="<%= estimatePropertyValue %>" ;
           estimatePropertyValueObj= document.form1.EstimatePro pertyValue ;
          Â
           moreImportant="<%= moreImportant %>" ;
           moreImportantObj=  document.formName.MoreImpo rtant;
           Goal="<%=goal%>";
          Â
           setDropDownValues(property OccCodeObj , propertyOccCodeValue);
           setDropDownValues(estimate PropertyVa lueObj, estimatePropertyValue);
           setDropDownValues(moreImpo rtantObj, moreImportant);
           DisplayField(moreImportant );
      }
}
//-->
</script>
<center>
<br>
<div style="text-align:center;f ont-size:1 6px;font-w eight:bold ;">Instant Loan Advisor<br>Refinance</div>
<br>
<form name="REFINANCE" action="pricingmatrix.jsp" method="post" onSubmit="return validateLoan(this)">
<input type="hidden" name="SessId" value="{XTEXT_SessId}"> <input type="hidden" name="FormId" value="{XTEXT_FormId}"> <input type="hidden" name="ObjectId" value="{XTEXT_ObjectId}">
<table border="0" cellpadding="7" cellspacing="0">
  <tr>
   <td class="formName" colspan="3">Do you know what type of loan you want?</td>
  </tr>
  <tr>
   <td class="formName" id="checkLoanType">I know what type of loan I want</td>
   <td class="formValue">
     <table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td class="formValue">
         <select NAME="LoanType" size="1" onChange="selectLoanType(t his)">
                               <option selected value="">Please Select One</option>
                               <option  value="30yr Fixed">30yr Fixed</option>
           <option  value="15 Year Fixed">15 Year Fixed</option>
                               <option  value="3/1 ARM">3/1 ARM</option>
                               <option  value="5/1 ARM">5/1 ARM</option>
           <option  value="7/1 ARM">7/1 ARM</option>
                               <option  value="Other">Other</optio n>
                         </select> Â
         <br><input type="checkbox" name="LoanTypeNotSure" value="1" onClick="checkLoanType(thi s.checked) ">I am not sure what loan I want, please help me select the best option.
         </td>
        </tr>
     </table>
   </td>
  </tr>
  <tr>
   <td class="formName" id="checkLoanTerm">How long do you think you will have this loan?</td>
   <td class="formValue">
      <select NAME="LoanTerm" size="1">
                            <option  value="">Please Choose One</option>
                            <option  value="0-3 Years">0-3 Years</option>
                            <option  value="4-7 Years">4-7 Years</option>
                            <option  value="8 Years or Longer">8 Years or Longer</option>
                      </select>
   </td>
  </tr>
  <tr>
   <td class="formName" id="checkMoreImportant">Wh at is more important to you? </td>
   <td class="formValue">
      <select NAME="MoreImportant" size="1"  onChange="DisplayField(thi s.value)">
                            <option value="">Please Choose One</option>
                            <option  value="Lowest Monthly Payment">Lowest Monthly Payment</option>
                            <option  value="Least amount of cash out of my pocket">Least amount of cash out of my pocket</option>
                            <option  value="Both Lowest Payment & Least amount of cash">Both Lowest Payment & Least amount of cash</option>
                      </select>
   </td>
  </tr>
  <tr>
   <td colspan="2">
     <div id="idLowest">
     <table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td class="formName" id="checkInterestOnly">Wou ld you like to consider interest only loan choices? </td>
        <td class="formValue">
         <input NAME="InterestOnly" type="radio" value="Y"> Yes
                 <input  NAME="InterestOnly" type="radio" value="N">No
        </td>
      </tr>
     </table>
     </div>
    Â
     <div id="idLeast">
     <table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td class="formName" id="checkHundredPercentFin ancing">Wo uld you like 100% financing loan choice?</td>
        <td class="formValue">
         <input NAME="HundredPercentFinanc ing" type="radio" value="Y"> Yes
                 <input  NAME="HundredPercentFinanc ing" type="radio" value="N">No
        </td>
      </tr>
     </table>
     </div>
   </td>
  </tr>
  <tr>
   <td class="formName" id="checkPropertyOccCode"> This will be your:</td>
   <td class="formValue">
      <select NAME="PropertyOccCode" size="1">
                            <option selected value="">Please Choose One</option>
                            <option  value="Primary Residence">Primary Residence</option>
                            <option  value="Second/Vacation Home">Second/Vacation Home</option>
        <option  value="Rental/Investment Home">Rental/Investment Property</option>
                      </select>
   </td>
  </tr>
  <tr>
   <td class="formName" id="checkEstimatePropertyV alue">What is the estimated value of your home? </td>
   <td class="formValue">$<input type="text" name="EstimatePropertyValu e" value="" size="20" maxlength="50"></td>
  </tr>
  <tr>
   <td class="formName" id="checkGoal">MY Refinance Loan Goal Is:</td>
   <td class="formValue">
     <table border="0" cellpadding="5" cellspacing="0">
      <tr>
        <td><input type="radio" name="Goal" value="1" onClick="DisplayRefinanceG oal(this.v alue)"></t d>
        <td>to refinance my first mortgage <b>at the current balance</b></td>
      </tr>
      <tr>
        <td><input type="radio" name="Goal" value="2" onClick="DisplayRefinanceG oal(this.v alue)"></t d>
        <td>to refinance my first mortgage <b>and take cash out</b> of the property</td>
      </tr>
      <tr>
        <td><input type="radio" name="Goal" value="3" onClick="DisplayRefinanceG oal(this.v alue)"></t d>
        <td> to refinance my first and 2nd mortgage (taken out AT TIME OF home purchase)</td>
      </tr>
      <tr>
        <td><input type="radio" name="Goal" value="4" onClick="DisplayRefinanceG oal(this.v alue)"></t d>
        <td> to refinance my first and 2nd/equity line mortgage (taken out AFTER home purchase)</td>
      </tr>
      <tr>
        <td><input type="radio" name="Goal" value="5" onClick="DisplayRefinanceG oal(this.v alue)"></t d>
        <td> to refinance my first mortgage and keep my existing 2nd/home equity line open.</td>
      </tr>
     </table>
   </td>
  </tr>
  <tr>
   <td colspan="2">
  Â
  Â
<!--
   ************************** ********** ********** ********** ********** ********** **********
   if (to refinance my first mortgage at the current balance) then display
-->
     <div id="idCurrentBalance">
     <table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td class="formName" id="checkCurrentLoanProgra m_1">What is your current loan program </td>
        <td class="formValue">
           <select NAME="CurrentLoanProgram_1 " size="1">
                                <option selected value="">Please Choose One</option>
                                <option  value="30yr fixed">30yr fixed</option>
                                <option  value="15 year fixed">15 year fixed</option>
            <option  value="3/1 ARM">3/1 ARM</option>
            <option  value="5/1 ARM">5/1 ARM</option>
            <option  value="7/1 ARM">7/1 ARM</option>
            <option  value="Other">Other</optio n>
                           </select>
        </td>
      </tr>
      <tr>
        <td class="formName" id="checkCurrentBalance_1" >What is your current balance  </td>
        <td class="formValue">$<input type="text" name="CurrentBalance_1" value="" size="20" maxlength="50"></td>
      </tr>
      <tr>
        <td class="formName" id="checkCurrentRate_1">Wh at is your current rate</td>
        <td class="formValue"><input type="text" name="CurrentRate_1" value="" size="20" maxlength="50">%</td>
      </tr>
     </table>
     </div>
<!--
   end
   ************************** ********** ********** ********** ********** ********** **********
-->
<!--
   ************************** ********** ********** ********** ********** ********** **********
   if (to refinance my first mortgage and take cash out of the property) then display
-->
     <div id="idCashOut">
     <table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td class="formName" id="checkCurrentLoanProgra m_2">What is your current loan program  </td>
        <td class="formValue">
           <select NAME="CurrentLoanProgram_2 " size="1">
                                <option selected value="">Please Choose One</option>
                                <option  value="30yr fixed">30yr fixed</option>
                                <option  value="15 year fixed">15 year fixed</option>
            <option  value="3/1 ARM">3/1 ARM</option>
            <option  value="5/1 ARM">5/1 ARM</option>
            <option  value="7/1 ARM">7/1 ARM</option>
            <option  value="Other">Other</optio n>
                           </select>
        </td>
      </tr>
      <tr>
        <td class="formName" id="checkCurrentFirstMortg ageBalance _2">What is your current first mortgage balance </td>
        <td class="formValue">$<input type="text" name="CurrentFirstMortgage Balance_2" value="" size="20" maxlength="50"></td>
      </tr>
      <tr>
        <td class="formName" id="checkCurrentRate_2">Wh at is your current rate </td>
        <td class="formValue"><input type="text" name="CurrentRate_2" value="" size="20" maxlength="50">%</td>
      </tr>
      <tr>
        <td class="formName" id="checkCashOut_2">How much cash do you want?  </td>
        <td class="formValue">$<input type="text" name="CashOut_2" value="" size="20" maxlength="50"></td>
      </tr>
     </table>
     </div>
<!--
   end
   ************************** ********** ********** ********** ********** ********** **********
-->
<!--
   ************************** ********** ********** ********** ********** ********** **********
   if (to refinance my first and 2nd mortgage (taken out AT TIME OF home purchase) then display
-->
     <div id="idFirstSecond">
     <table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td class="formName" id="checkCurrentLoanProgra m_3">What is your current FIRST loan program </td>
        <td class="formValue">
           <select NAME="CurrentLoanProgram_3 " size="1">
                                <option selected value="">Please Choose One</option>
                                <option  value="30yr fixed">30yr fixed</option>
                                <option  value="15 year fixed">15 year fixed</option>
            <option  value="3/1 ARM">3/1 ARM</option>
            <option  value="5/1 ARM">5/1 ARM</option>
            <option  value="7/1 ARM">7/1 ARM</option>
            <option  value="Other">Other</optio n>
                           </select>
        </td>
      </tr>
      <tr>
        <td class="formName" id="checkCurrentFirstMortg ageBalance _3">What is your current First mortgage balance  </td>
        <td class="formValue">$<input type="text" name="CurrentFirstMortgage Balance_3" value="" size="20" maxlength="50"></td>
      </tr>
      <tr>
        <td class="formName" id="checkCurrentFirstMortg ageRate_3" >What is your current First Mortgage rate </td>
        <td class="formValue"><input type="text" name="CurrentFirstMortgage Rate_3" value="" size="20" maxlength="50">%</td>
      </tr>
      <tr>
        <td class="formName" id="checkSecondMortgage_3" >My 2nd Mortgage is a:</td>
        <td class="formValue"><input type="radio" name="SecondMortgage_3" value="Line of credit" onClick="document.all.idSe condMortga geLoan.sty le.display ='none';"> Line of credit
        <input type="radio" name="SecondMortgage_3" value="Loan" onClick="checkLoan3()">Loa n</td>
      </tr>
      <tr>
        <td colspan="2">
         <div id="idSecondMortgageLoan">
         <table border="0" cellpadding="0" cellspacing="0">
           <tr>
            <td class="formName" id="checkSecondLoanTerm_3" >LOAN - What is the Term of the 2nd Loan? </td>
            <td class="formValue"><input type="text" name="SecondLoanTerm_3" value="" size="20" maxlength="3"> Years</td>
           </tr>
         </table>
         </div>
        </td>
      </tr>
      <tr>
        <td class="formName" id="checkSecondBalance_3"> What is the balance on your 2nd </td>
        <td class="formValue">$<input type="text" name="SecondBalance_3" value="" size="20" maxlength="50"></td>
      </tr>
      <tr>
        <td class="formName" id="checkSecondMortgageRat e_3">What is your 2nd Mortgage Rate</td>
        <td class="formValue"><input type="text" name="SecondMortgageRate_3 " value="" size="20" maxlength="50">%</td>
      </tr>
     </table>
     </div>
<!--
   end
   ************************** ********** ********** ********** ********** ********** **********
-->
<!--
   ************************** ********** ********** ********** ********** ********** **********
   if (to refinance my first and 2nd/equity line mortgage (taken out AFTER home purchase)) then display
-->
     <div id="idAfterHomePurchase">
     <table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td class="formName" id="checkFirstLoanProgram_ 4">What is your current FIRST loan program </td>
        <td class="formValue">
           <select NAME="FirstLoanProgram_4" size="1">
                                <option selected value="">Please Choose One</option>
                                <option  value="30yr fixed">30yr fixed</option>
                                <option  value="15 year fixed">15 year fixed</option>
            <option  value="3/1 ARM">3/1 ARM</option>
            <option  value="5/1 ARM">5/1 ARM</option>
            <option  value="7/1 ARM">7/1 ARM</option>
            <option  value="Other">Other</optio n>
                           </select>
        </td>
      </tr>
      <tr>
        <td class="formName" id="checkFirstMortgageBala nce_4">Wha t is your current First mortgage balance  </td>
        <td class="formValue">$<input type="text" name="FirstMortgageBalance _4" value="" size="20" maxlength="50"></td>
      </tr>
      <tr>
        <td class="formName" id="checkFirstMortgageRate _4">What is your current First Mortgage rate </td>
        <td class="formValue"><input type="text" name="FirstMortgageRate_4" value="" size="20" maxlength="50">%</td>
      </tr>
      <tr>
        <td class="formName" id="checkSecondMortgage_4" >My 2nd Mortgage is a:</td>
        <td class="formValue"><input type="radio" name="SecondMortgage_4" value="" onClick="document.all.idSe condMortga geLoan4.st yle.displa y='none'; "> Line of credit <input type="radio" name="SecondMortgage_4" value="" onClick="checkLoan4()">Loa n</td>
      </tr>
      <tr>
        <td colspan="2">
         <div id="idSecondMortgageLoan4" >
         <table border="0" cellpadding="0" cellspacing="0">
           <tr>
            <td class="formName" id="checkSecondLoanTerm_4" >LOAN - What is the Term of the 2nd Loan? </td>
            <td class="formValue"><input type="text" name="SecondLoanTerm_4" value="" size="20" maxlength="50"> Yrs</td>
           </tr>
         </table>
         </div>
        </td>
      </tr>
      <tr>
        <td class="formName" id="checkSecondBalance_4"> What is the balance on your Second </td>
        <td class="formValue">$<input type="text" name="SecondBalance_4" value="" size="20" maxlength="50"></td>
      </tr>
      <tr>
        <td class="formName" id="checksecondMortgage_4" >What is your second Mortgage Rate</td>
        <td class="formValue"><input type="text" name="secondMortgageRate_4 " value="" size="20" maxlength="50">%</td>
      </tr>
      <tr>
        <td class="formName" id="checkLoanTerm_4">How long have you had this loan  </td>
        <td class="formValue"><input type="text" name="LoanTermYr_4" value="" size="10" maxlength="2"> Yrs <input type="text" name="LoanTermMo_4" value="" size="10" maxlength="2">Mos</td>
      </tr>
     </table>
     </div>
<!--
   end
   ************************** ********** ********** ********** ********** ********** **********
-->
<!--
   ************************** ********** ********** ********** ********** ********** **********
   if (to refinance my first mortgage and keep my existing 2nd/home equity line open.) then display
-->
     <div id="idAfterHomePurchaseEqu ity">
     <table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td class="formName" id="checkFirstLoanProgram_ 5">What is your current FIRST loan program </td>
        <td class="formValue">
           <select NAME="FirstLoanProgram_5" size="1">
                                <option selected value="">Please Choose One</option>
                                <option  value="30yr fixed">30yr fixed</option>
                                <option  value="15 year fixed">15 year fixed</option>
            <option  value="3/1 ARM">3/1 ARM</option>
            <option  value="5/1 ARM">5/1 ARM</option>
            <option  value="7/1 ARM">7/1 ARM</option>
            <option  value="Other">Other</optio n>
                           </select>
        </td>
      </tr>
      <tr>
        <td class="formName" id="checkFirstMortgageBala nce_5">Wha t is your current first mortgage balance </td>
        <td class="formValue">$<input type="text" name="FirstMortgageBalance _5" value="" size="20" maxlength="50"></td>
      </tr>
      <tr>
        <td class="formName" id="checkCurrentRate_5">Wh at is your current rate </td>
        <td class="formValue"><input type="text" name="CurrentRate_5" value="" size="20" maxlength="50">%</td>
      </tr>
      <tr>
        <td class="formName" id="checkSecondEquityLineB alance_5"> What is your second/home equity line balance </td>
        <td class="formValue">$<input type="text" name="SecondEquityLineBala nce_5" value="" size="20" maxlength="50"></td>
      </tr>
     </table>
     </div>
   </td>
  </tr>
<!--
   end
   ************************** ********** ********** ********** ********** ********** **********
-->
  <tr>
   <td> </td>
  </tr>
  <tr>
   <td colspan="3" align="center"><input type="submit" name="TaskSubmit" value="Get Pricing" class="button"></td>
  </tr>
</table>
 </form>
 </center>
<%@ include file="/common/subwrapperbo ttom.jsp" %>
        Â
<%@ include file="/common/wrapperbotto m.jsp" %>
       Â
how to do it.
 i have done like this mbut it is not workinhg help...
<%@ include file="/common/wrappertop.j
<%@ include file="/common/subwrapperto
<%@ page import="com.xldynamics.mol
<%
  RefDefault refdefault;
  refdefault = (RefDefault)(session.getAt
      String checkLoanType="";
  String checkLoanTerm="";
      String moreImportant="";
      String interestOnly="";
      String hundredPercentFinancing=""
      String propertyOccCode="";
      String estimatePropertyValue="";
      String goal="";
      String sLoadFromSessObj = "NO";
     Â
      if (refdefault != null){
            checkLoanType=refdefault.g
            checkLoanTerm = refdefault.getLoanTerm();
            moreImportant = refdefault.getMoreImportan
            interestOnly = refdefault.getInterestOnly
            hundredPercentFinancing = refdefault.getHundredFinan
            propertyOccCode = refdefault.getPropertyOccC
            estimatePropertyValue = refdefault.getEstimateProp
            goal=refdefault.getGoal();
         sLoadFromSessObj = "YES";
      }
      else
      {
            sLoadFromSessObj = "NO";
      }
%>
<style type="text/css">
<!--
#idCurrentBalance {display:none;}
#idCashOut {display:none;}
#idFirstSecond {display:none;}
#idAfterHomePurchase {display:none;}
#idAfterHomePurchaseEquity
#idLowest {display:none;}
#idLeast {display:none;}
#idSecondMortgageLoan {display:none;}
#idSecondMortgageLoan4 {display:none;}
//-->
</style>
<script language="JavaScript">
<!--
ns4 = ( document.layers )? true:false
ie4 = ( document.all ) ? true:false
function DisplayField(fldValue)
{
 Â
      if(document.all)
      {
   document.all.idLowest.styl
   document.all.idLeast.style
  Â
   if (fldValue == "Lowest Monthly Payment")
   {
                 document.all.idLowest.styl
     document.all.idLeast.style
   } else if (fldValue == "Least amount of cash out of my pocket") {
     document.all.idLeast.style
     document.all.idLowest.styl
   } Â
      }
}
function DisplayRefinanceGoal(fldVa
{
      if(document.all)
      {
   document.all.idCurrentBala
   document.all.idCashOut.sty
   document.all.idFirstSecond
   document.all.idAfterHomePu
   document.all.idAfterHomePu
  Â
   if (fldValue == "1")
     document.all.idCurrentBala
   else if (fldValue == "2")
     document.all.idCashOut.sty
   else if (fldValue == "3")
     document.all.idFirstSecond
   else if (fldValue == "4")
     document.all.idAfterHomePu
   else if (fldValue == "5")
     document.all.idAfterHomePu
      }
}
function checkLoan3()
{
  document.all.idSecondMortg
  Â
      if(document.all)
      { Â
   document.all.idSecondMortg
  }
}
function checkLoan4()
{
  document.all.idSecondMortg
  Â
      if(document.all)
      { Â
   document.all.idSecondMortg
  }
}
function checkLoanType(checkValue)
{
  if (checkValue == true)
   document.REFINANCE.LoanTyp
}
function selectLoanType(fieldName)
{
  if (fieldName.selectedIndex != 0)
   document.REFINANCE.LoanTyp
}
arrTextVal[1] = Â Â Â new Array('','','','','')
arrTextVal[2] = Â Â Â new Array('','LoanTerm','check
arrTextVal[3] = Â Â Â new Array('','MoreImportant','
arrTextVal[4] = Â Â Â new Array('','PropertyOccCode'
arrTextVal[5] = Â Â Â new Array('','EstimateProperty
arrTextVal[6] = Â Â Â new Array('','','','','')
arrTextVal[7] = Â Â Â new Array('','','','','')
arrTextVal[8] = Â Â Â new Array('','','','','')
arrTextVal[9] = Â Â Â new Array('','','','','')
arrTextVal[10] = Â Â Â new Array('','','','','')
function validateLoan(formName)
{
  arrTextVal[1][1]  = ""
  arrTextVal[1][2]  = ""
  arrTextVal[1][3]  = ""
  arrTextVal[1][4]  = ""
 Â
  arrTextVal[6][1]  = ""
  arrTextVal[6][2]  = ""
  arrTextVal[6][3]  = ""
  arrTextVal[6][4]  = ""
 Â
  arrTextVal[7][1]  = ""
  arrTextVal[7][2]  = ""
  arrTextVal[7][3]  = ""
  arrTextVal[7][4]  = ""
 Â
  arrTextVal[8][1]  = ""
  arrTextVal[8][2]  = ""
  arrTextVal[8][3]  = ""
  arrTextVal[8][4]  = ""
 Â
  arrTextVal[9][1]  = ""
  arrTextVal[9][2]  = ""
  arrTextVal[9][3]  = ""
  arrTextVal[9][4]  = ""
 Â
  arrTextVal[10][1]  = ""
  arrTextVal[10][2]  = ""
  arrTextVal[10][3]  = ""
  arrTextVal[10][4]  = ""
 Â
  if (formName.LoanTypeNotSure.
  {
   arrTextVal[1][1] = "LoanType"   // field name
   arrTextVal[1][2] = "checkLoanType"   // id name
   arrTextVal[1][3] = "I know what type of loan I want"  // text
   arrTextVal[1][4] = "1,0,0"          // required, number, length,
  }
  if (formName.MoreImportant.se
  {
   if (formName.MoreImportant.op
   {
     if (formName.InterestOnly[0].
     {
      errorMsg += "- 'Would you like to consider interest only loan choices? \n"
      valField("checkInterestOnl
     }
   }
  Â
    if (formName.MoreImportant.op
   {
     if (formName.HundredPercentFi
     {
      errorMsg += "- 'Would you like 100% financing loan choice? \n"
      valField("checkHundredPerc
     }
   }
  }
 Â
  // to refinance my first mortgage at the current balance
  if (formName.Goal[0].checked == true)
  {
   valField("checkCurrentLoan
   if (formName.CurrentLoanProgr
   {
     errorMsg += "- 'What is your current loan program  \n"
     valField("checkCurrentLoan
   }
  Â
   arrTextVal[6][1]  = "CurrentBalance_1"
   arrTextVal[6][2]  = "checkCurrentBalance_1"
   arrTextVal[6][3]  = "What is your current balance "
   arrTextVal[6][4]  = "1,1,0"
  Â
   arrTextVal[7][1]  = "CurrentRate_1"
   arrTextVal[7][2]  = "checkCurrentRate_1"
   arrTextVal[7][3]  = "What is your current rate"
   arrTextVal[7][4]  = "1,1,0"
  Â
  } else  if (formName.Goal[1].checked == true) {
 Â
   valField("checkCurrentLoan
   if (formName.CurrentLoanProgr
   {
     errorMsg += "- 'What is your current loan program  \n"
     valField("checkCurrentLoan
   }
  Â
   arrTextVal[6][1]  = "CurrentFirstMortgageBalan
   arrTextVal[6][2]  = "checkCurrentFirstMortgage
   arrTextVal[6][3]  = "What is your current first mortgage balance "
   arrTextVal[6][4]  = "1,1,0"
  Â
   arrTextVal[7][1]  = "CurrentRate_2"
   arrTextVal[7][2]  = "checkCurrentRate_2"
   arrTextVal[7][3]  = "What is your current rate "
   arrTextVal[7][4]  = "1,1,0"
  Â
   arrTextVal[8][1]  = "CashOut_2"
   arrTextVal[8][2]  = "checkCashOut_2"
   arrTextVal[8][3]  = "How much cash do you want?"
   arrTextVal[8][4]  = "1,1,0"
 Â
  } else  if (formName.Goal[2].checked == true) {
 Â
   valField("checkCurrentLoan
   if (formName.CurrentLoanProgr
   {
     errorMsg += "- 'What is your current FIRST loan program  \n"
     valField("checkCurrentLoan
   }
  Â
   arrTextVal[6][1]  = "CurrentFirstMortgageBalan
   arrTextVal[6][2]  = "checkCurrentFirstMortgage
   arrTextVal[6][3]  = "What is your current First mortgage balance"
   arrTextVal[6][4]  = "1,1,0"
  Â
   arrTextVal[7][1]  = "CurrentFirstMortgageRate_
   arrTextVal[7][2]  = "checkCurrentFirstMortgage
   arrTextVal[7][3]  = "What is your current First Mortgage rate"
   arrTextVal[7][4]  = "1,1,0"
  Â
   valField("checkSecondMortg
   if (formName.SecondMortgage_3
   {
     errorMsg += "- 'My 2nd Mortgage is a:  \n"
     valField("checkSecondMortg
   }
  Â
   if (formName.SecondMortgage_3
   {
     arrTextVal[8][1]  = "SecondLoanTerm_3"
     arrTextVal[8][2]  = "checkSecondLoanTerm_3"
     arrTextVal[8][3]  = "LOAN - What is the Term of the 2nd Loan?"
     arrTextVal[8][4]  = "1,1,0"
   }
  Â
   arrTextVal[9][1]  = "SecondBalance_3"
   arrTextVal[9][2]  = "checkSecondBalance_3"
   arrTextVal[9][3]  = "What is the balance on your 2nd"
   arrTextVal[9][4]  = "1,1,0"
  Â
   arrTextVal[10][1]  = "SecondMortgageRate_3"
   arrTextVal[10][2]  = "checkSecondMortgageRate_3
   arrTextVal[10][3]  = "What is your 2nd Mortgage Rate"
   arrTextVal[10][4]  = "1,1,0"
  Â
  } else  if (formName.Goal[3].checked == true) {  //to refinance my first and 2nd/equity line mortgage (taken out AFTER home purchase)
 Â
   valField("checkFirstLoanPr
   if (formName.FirstLoanProgram
   {
     errorMsg += "- 'What is your current FIRST loan program \n"
     valField("checkFirstLoanPr
   }
  Â
  Â
   arrTextVal[6][1]  = "FirstMortgageBalance_4"
   arrTextVal[6][2]  = "checkFirstMortgageBalance
   arrTextVal[6][3]  = "What is your current First mortgage balance "
   arrTextVal[6][4]  = "1,1,0"
  Â
   arrTextVal[7][1]  = "FirstMortgageRate_4"
   arrTextVal[7][2]  = "checkFirstMortgageRate_4"
   arrTextVal[7][3]  = "What is your current First Mortgage rate"
   arrTextVal[7][4]  = "1,1,0"
  Â
    valField("checkSecondMortg
   if (formName.SecondMortgage_4
   {
     errorMsg += "- 'My 2nd Mortgage is a:  \n"
     valField("checkSecondMortg
   }
    Â
   if (formName.SecondMortgage_4
   {
     arrTextVal[8][1]  = "SecondLoanTerm_4"
     arrTextVal[8][2]  = "checkSecondLoanTerm_4"
     arrTextVal[8][3]  = "LOAN - What is the Term of the 2nd Loan?"
     arrTextVal[8][4]  = "1,1,0"
   }
   arrTextVal[9][1]  = "SecondBalance_4"
   arrTextVal[9][2]  = "checkSecondBalance_4"
   arrTextVal[9][3]  = "What is the balance on your Second"
   arrTextVal[9][4]  = "1,1,0"
  Â
   arrTextVal[10][1]  = "secondMortgageRate_4"
   arrTextVal[10][2]  = "checksecondMortgage_4"
   arrTextVal[10][3]  = "What is your second Mortgage Rate"
   arrTextVal[10][4]  = "1,1,0"
  Â
   var vLoanTermYr_4 = formName.LoanTermYr_4.valu
   var vLoanTermMo_4 = formName.LoanTermMo_4.valu
  Â
   valField("checkLoanTerm_4"
   if (trim(vLoanTermYr_4) == "" && trim(vLoanTermMo_4) == "")
   {
     errorMsg += "- 'How long have you had this loan  \n"
     valField("checkLoanTerm_4"
   }
  Â
   if (trim(vLoanTermYr_4) !="")
   {
     valField("checkLoanTerm_4"
    if (isNumber("How long have you had this loan", vLoanTermYr_4) == false)
      valField("checkLoanTerm_4"
   }
  Â
   if (trim(vLoanTermMo_4) !="")
   {
     valField("checkLoanTerm_4"
    if (isNumber("How long have you had this loan", vLoanTermMo_4) == false)
      valField("checkLoanTerm_4"
   }
  Â
  Â
  } else  if (formName.Goal[4].checked == true) {
   valField("checkFirstLoanPr
   if (formName.FirstLoanProgram
   {
     errorMsg += "- 'What is your current FIRST loan program \n"
     valField("checkFirstLoanPr
   }
  Â
   arrTextVal[6][1]  = "FirstMortgageBalance_5"
   arrTextVal[6][2]  = "checkFirstMortgageBalance
   arrTextVal[6][3]  = "What is your current first mortgage balance "
   arrTextVal[6][4]  = "1,1,0"
  Â
   arrTextVal[7][1]  = "CurrentRate_5"
   arrTextVal[7][2]  = "checkCurrentRate_5"
   arrTextVal[7][3]  = "What is your current rate"
   arrTextVal[7][4]  = "1,1,0"
  Â
   arrTextVal[8][1]  = "SecondEquityLineBalance_5
   arrTextVal[8][2]  = "checkSecondEquityLineBala
   arrTextVal[8][3]  = "What is your second/home equity line balance"
   arrTextVal[8][4]  = "1,1,0"
  Â
  } else {
   valField("checkGoal",0)
   errorMsg += "- 'MY Refinance Loan Goal Is: \n"
     valField("checkGoal",1)
  }
 Â
 Â
  return genValidate(formName)
}
  function values(){
      if("<%=sLoadFromSessObj%>"
           document.formName.LoanType
           document.formName.LoanTerm
           document.formName.Interest
           document.formName.HundredF
           if(document.formName.Inter
           {
                 if(document.formName.Hundr
                 document.formName.HundredF
                 else
                 document.formName.HundredF
           }
           else
           {
                 if(document.formName.Inter
                 document.formName.Interest
                 else
                 document.formName.Interest
           }
           propertyOccCodeValue ="<%= propertyOccCode %>" ;
           propertyOccCodeObj= document.form1.PropertyOcc
           estimatePropertyValue="<%=
           estimatePropertyValueObj= document.form1.EstimatePro
          Â
           moreImportant="<%= moreImportant %>" ;
           moreImportantObj=  document.formName.MoreImpo
           Goal="<%=goal%>";
          Â
           setDropDownValues(property
           setDropDownValues(estimate
           setDropDownValues(moreImpo
           DisplayField(moreImportant
      }
}
//-->
</script>
<center>
<br>
<div style="text-align:center;f
<br>
<form name="REFINANCE" action="pricingmatrix.jsp"
<input type="hidden" name="SessId" value="{XTEXT_SessId}"> <input type="hidden" name="FormId" value="{XTEXT_FormId}"> <input type="hidden" name="ObjectId" value="{XTEXT_ObjectId}">
<table border="0" cellpadding="7" cellspacing="0">
  <tr>
   <td class="formName" colspan="3">Do you know what type of loan you want?</td>
  </tr>
  <tr>
   <td class="formName" id="checkLoanType">I know what type of loan I want</td>
   <td class="formValue">
     <table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td class="formValue">
         <select NAME="LoanType" size="1" onChange="selectLoanType(t
                               <option selected value="">Please Select One</option>
                               <option  value="30yr Fixed">30yr Fixed</option>
           <option  value="15 Year Fixed">15 Year Fixed</option>
                               <option  value="3/1 ARM">3/1 ARM</option>
                               <option  value="5/1 ARM">5/1 ARM</option>
           <option  value="7/1 ARM">7/1 ARM</option>
                               <option  value="Other">Other</optio
                         </select> Â
         <br><input type="checkbox" name="LoanTypeNotSure" value="1" onClick="checkLoanType(thi
         </td>
        </tr>
     </table>
   </td>
  </tr>
  <tr>
   <td class="formName" id="checkLoanTerm">How long do you think you will have this loan?</td>
   <td class="formValue">
      <select NAME="LoanTerm" size="1">
                            <option  value="">Please Choose One</option>
                            <option  value="0-3 Years">0-3 Years</option>
                            <option  value="4-7 Years">4-7 Years</option>
                            <option  value="8 Years or Longer">8 Years or Longer</option>
                      </select>
   </td>
  </tr>
  <tr>
   <td class="formName" id="checkMoreImportant">Wh
   <td class="formValue">
      <select NAME="MoreImportant" size="1"  onChange="DisplayField(thi
                            <option value="">Please Choose One</option>
                            <option  value="Lowest Monthly Payment">Lowest Monthly Payment</option>
                            <option  value="Least amount of cash out of my pocket">Least amount of cash out of my pocket</option>
                            <option  value="Both Lowest Payment & Least amount of cash">Both Lowest Payment & Least amount of cash</option>
                      </select>
   </td>
  </tr>
  <tr>
   <td colspan="2">
     <div id="idLowest">
     <table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td class="formName" id="checkInterestOnly">Wou
        <td class="formValue">
         <input NAME="InterestOnly" type="radio" value="Y"> Yes
                 <input  NAME="InterestOnly" type="radio" value="N">No
        </td>
      </tr>
     </table>
     </div>
    Â
     <div id="idLeast">
     <table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td class="formName" id="checkHundredPercentFin
        <td class="formValue">
         <input NAME="HundredPercentFinanc
                 <input  NAME="HundredPercentFinanc
        </td>
      </tr>
     </table>
     </div>
   </td>
  </tr>
  <tr>
   <td class="formName" id="checkPropertyOccCode">
   <td class="formValue">
      <select NAME="PropertyOccCode" size="1">
                            <option selected value="">Please Choose One</option>
                            <option  value="Primary Residence">Primary Residence</option>
                            <option  value="Second/Vacation Home">Second/Vacation Home</option>
        <option  value="Rental/Investment Home">Rental/Investment Property</option>
                      </select>
   </td>
  </tr>
  <tr>
   <td class="formName" id="checkEstimatePropertyV
   <td class="formValue">$<input type="text" name="EstimatePropertyValu
  </tr>
  <tr>
   <td class="formName" id="checkGoal">MY Refinance Loan Goal Is:</td>
   <td class="formValue">
     <table border="0" cellpadding="5" cellspacing="0">
      <tr>
        <td><input type="radio" name="Goal" value="1" onClick="DisplayRefinanceG
        <td>to refinance my first mortgage <b>at the current balance</b></td>
      </tr>
      <tr>
        <td><input type="radio" name="Goal" value="2" onClick="DisplayRefinanceG
        <td>to refinance my first mortgage <b>and take cash out</b> of the property</td>
      </tr>
      <tr>
        <td><input type="radio" name="Goal" value="3" onClick="DisplayRefinanceG
        <td> to refinance my first and 2nd mortgage (taken out AT TIME OF home purchase)</td>
      </tr>
      <tr>
        <td><input type="radio" name="Goal" value="4" onClick="DisplayRefinanceG
        <td> to refinance my first and 2nd/equity line mortgage (taken out AFTER home purchase)</td>
      </tr>
      <tr>
        <td><input type="radio" name="Goal" value="5" onClick="DisplayRefinanceG
        <td> to refinance my first mortgage and keep my existing 2nd/home equity line open.</td>
      </tr>
     </table>
   </td>
  </tr>
  <tr>
   <td colspan="2">
  Â
  Â
<!--
   **************************
   if (to refinance my first mortgage at the current balance) then display
-->
     <div id="idCurrentBalance">
     <table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td class="formName" id="checkCurrentLoanProgra
        <td class="formValue">
           <select NAME="CurrentLoanProgram_1
                                <option selected value="">Please Choose One</option>
                                <option  value="30yr fixed">30yr fixed</option>
                                <option  value="15 year fixed">15 year fixed</option>
            <option  value="3/1 ARM">3/1 ARM</option>
            <option  value="5/1 ARM">5/1 ARM</option>
            <option  value="7/1 ARM">7/1 ARM</option>
            <option  value="Other">Other</optio
                           </select>
        </td>
      </tr>
      <tr>
        <td class="formName" id="checkCurrentBalance_1"
        <td class="formValue">$<input type="text" name="CurrentBalance_1" value="" size="20" maxlength="50"></td>
      </tr>
      <tr>
        <td class="formName" id="checkCurrentRate_1">Wh
        <td class="formValue"><input type="text" name="CurrentRate_1" value="" size="20" maxlength="50">%</td>
      </tr>
     </table>
     </div>
<!--
   end
   **************************
-->
<!--
   **************************
   if (to refinance my first mortgage and take cash out of the property) then display
-->
     <div id="idCashOut">
     <table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td class="formName" id="checkCurrentLoanProgra
        <td class="formValue">
           <select NAME="CurrentLoanProgram_2
                                <option selected value="">Please Choose One</option>
                                <option  value="30yr fixed">30yr fixed</option>
                                <option  value="15 year fixed">15 year fixed</option>
            <option  value="3/1 ARM">3/1 ARM</option>
            <option  value="5/1 ARM">5/1 ARM</option>
            <option  value="7/1 ARM">7/1 ARM</option>
            <option  value="Other">Other</optio
                           </select>
        </td>
      </tr>
      <tr>
        <td class="formName" id="checkCurrentFirstMortg
        <td class="formValue">$<input type="text" name="CurrentFirstMortgage
      </tr>
      <tr>
        <td class="formName" id="checkCurrentRate_2">Wh
        <td class="formValue"><input type="text" name="CurrentRate_2" value="" size="20" maxlength="50">%</td>
      </tr>
      <tr>
        <td class="formName" id="checkCashOut_2">How much cash do you want?  </td>
        <td class="formValue">$<input type="text" name="CashOut_2" value="" size="20" maxlength="50"></td>
      </tr>
     </table>
     </div>
<!--
   end
   **************************
-->
<!--
   **************************
   if (to refinance my first and 2nd mortgage (taken out AT TIME OF home purchase) then display
-->
     <div id="idFirstSecond">
     <table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td class="formName" id="checkCurrentLoanProgra
        <td class="formValue">
           <select NAME="CurrentLoanProgram_3
                                <option selected value="">Please Choose One</option>
                                <option  value="30yr fixed">30yr fixed</option>
                                <option  value="15 year fixed">15 year fixed</option>
            <option  value="3/1 ARM">3/1 ARM</option>
            <option  value="5/1 ARM">5/1 ARM</option>
            <option  value="7/1 ARM">7/1 ARM</option>
            <option  value="Other">Other</optio
                           </select>
        </td>
      </tr>
      <tr>
        <td class="formName" id="checkCurrentFirstMortg
        <td class="formValue">$<input type="text" name="CurrentFirstMortgage
      </tr>
      <tr>
        <td class="formName" id="checkCurrentFirstMortg
        <td class="formValue"><input type="text" name="CurrentFirstMortgage
      </tr>
      <tr>
        <td class="formName" id="checkSecondMortgage_3"
        <td class="formValue"><input type="radio" name="SecondMortgage_3" value="Line of credit" onClick="document.all.idSe
        <input type="radio" name="SecondMortgage_3" value="Loan" onClick="checkLoan3()">Loa
      </tr>
      <tr>
        <td colspan="2">
         <div id="idSecondMortgageLoan">
         <table border="0" cellpadding="0" cellspacing="0">
           <tr>
            <td class="formName" id="checkSecondLoanTerm_3"
            <td class="formValue"><input type="text" name="SecondLoanTerm_3" value="" size="20" maxlength="3"> Years</td>
           </tr>
         </table>
         </div>
        </td>
      </tr>
      <tr>
        <td class="formName" id="checkSecondBalance_3">
        <td class="formValue">$<input type="text" name="SecondBalance_3" value="" size="20" maxlength="50"></td>
      </tr>
      <tr>
        <td class="formName" id="checkSecondMortgageRat
        <td class="formValue"><input type="text" name="SecondMortgageRate_3
      </tr>
     </table>
     </div>
<!--
   end
   **************************
-->
<!--
   **************************
   if (to refinance my first and 2nd/equity line mortgage (taken out AFTER home purchase)) then display
-->
     <div id="idAfterHomePurchase">
     <table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td class="formName" id="checkFirstLoanProgram_
        <td class="formValue">
           <select NAME="FirstLoanProgram_4" size="1">
                                <option selected value="">Please Choose One</option>
                                <option  value="30yr fixed">30yr fixed</option>
                                <option  value="15 year fixed">15 year fixed</option>
            <option  value="3/1 ARM">3/1 ARM</option>
            <option  value="5/1 ARM">5/1 ARM</option>
            <option  value="7/1 ARM">7/1 ARM</option>
            <option  value="Other">Other</optio
                           </select>
        </td>
      </tr>
      <tr>
        <td class="formName" id="checkFirstMortgageBala
        <td class="formValue">$<input type="text" name="FirstMortgageBalance
      </tr>
      <tr>
        <td class="formName" id="checkFirstMortgageRate
        <td class="formValue"><input type="text" name="FirstMortgageRate_4"
      </tr>
      <tr>
        <td class="formName" id="checkSecondMortgage_4"
        <td class="formValue"><input type="radio" name="SecondMortgage_4" value="" onClick="document.all.idSe
      </tr>
      <tr>
        <td colspan="2">
         <div id="idSecondMortgageLoan4"
         <table border="0" cellpadding="0" cellspacing="0">
           <tr>
            <td class="formName" id="checkSecondLoanTerm_4"
            <td class="formValue"><input type="text" name="SecondLoanTerm_4" value="" size="20" maxlength="50"> Yrs</td>
           </tr>
         </table>
         </div>
        </td>
      </tr>
      <tr>
        <td class="formName" id="checkSecondBalance_4">
        <td class="formValue">$<input type="text" name="SecondBalance_4" value="" size="20" maxlength="50"></td>
      </tr>
      <tr>
        <td class="formName" id="checksecondMortgage_4"
        <td class="formValue"><input type="text" name="secondMortgageRate_4
      </tr>
      <tr>
        <td class="formName" id="checkLoanTerm_4">How long have you had this loan  </td>
        <td class="formValue"><input type="text" name="LoanTermYr_4" value="" size="10" maxlength="2"> Yrs <input type="text" name="LoanTermMo_4" value="" size="10" maxlength="2">Mos</td>
      </tr>
     </table>
     </div>
<!--
   end
   **************************
-->
<!--
   **************************
   if (to refinance my first mortgage and keep my existing 2nd/home equity line open.) then display
-->
     <div id="idAfterHomePurchaseEqu
     <table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td class="formName" id="checkFirstLoanProgram_
        <td class="formValue">
           <select NAME="FirstLoanProgram_5" size="1">
                                <option selected value="">Please Choose One</option>
                                <option  value="30yr fixed">30yr fixed</option>
                                <option  value="15 year fixed">15 year fixed</option>
            <option  value="3/1 ARM">3/1 ARM</option>
            <option  value="5/1 ARM">5/1 ARM</option>
            <option  value="7/1 ARM">7/1 ARM</option>
            <option  value="Other">Other</optio
                           </select>
        </td>
      </tr>
      <tr>
        <td class="formName" id="checkFirstMortgageBala
        <td class="formValue">$<input type="text" name="FirstMortgageBalance
      </tr>
      <tr>
        <td class="formName" id="checkCurrentRate_5">Wh
        <td class="formValue"><input type="text" name="CurrentRate_5" value="" size="20" maxlength="50">%</td>
      </tr>
      <tr>
        <td class="formName" id="checkSecondEquityLineB
        <td class="formValue">$<input type="text" name="SecondEquityLineBala
      </tr>
     </table>
     </div>
   </td>
  </tr>
<!--
   end
   **************************
-->
  <tr>
   <td> </td>
  </tr>
  <tr>
   <td colspan="3" align="center"><input type="submit" name="TaskSubmit" value="Get Pricing" class="button"></td>
  </tr>
</table>
 </form>
 </center>
<%@ include file="/common/subwrapperbo
        Â
<%@ include file="/common/wrapperbotto
       Â
why don't you load all the variables in a java bean..
and then load them back to dispaly them?
If you want to know hot to do this let me know
Ghost
and then load them back to dispaly them?
If you want to know hot to do this let me know
Ghost
ASKER
i need the bean also plz.send code asap
ASKER
send all code regarding bean ,javascript etc.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER