SitePoint Sponsor

User Tag List

Results 1 to 19 of 19
  1. #1
    SitePoint Addict
    Join Date
    Dec 2001
    Location
    Vancouver, Canada
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Creating a calculator

    wow, it's been a long time since I've done any javacript and I'm not a programmer by nature.

    Here is what I'm doing...

    I have a form which asks the following question:

    1. Estimated home value (field name: home_value)
    2. 1st mortgage balance (1st_mortgage_balance)
    3. additional cash needed. (additional_cash_needed)

    Now I need to create a calculator that does the following operation:

    (additional_cash_needed + 1st_mortgage_balance) / home_value

    The answer would need to be added to the hidden field:

    HTML Code:
    <input type="hidden" name="ltv" value="">
    The page is a .html page hosted on a linux server. I can't use php for now and that's why I'm looking at JavaScript to resolve my problem.

    Can this be done?

    thanks

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    Code javascript:
    function updateForm(form) {
        var homeValue = parseFloat(form.elements['home_value'].value);
        var mortgage = parseFloat(form.elements['1st_mortgage_balance'].value);
        var additionalCash = parseFloat(form.elements['additional_cash_needed'].value);
        form.elements.ltv.value = (additionalCash + mortgage) / homeValue;
    }

    And you have the form run the function when you submit it.

    Code html4strict:
    <form ... onsubmit="updateForm(this)">
    Last edited by paul_wilkins; Dec 5, 2008 at 15:08.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  3. #3
    SitePoint Addict
    Join Date
    Dec 2001
    Location
    Vancouver, Canada
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks PMW57.

    The last time I did any kind of programming was in 2002.

    As I said on my original post, my knowledge of programing is extremely limited.

    I'm guessing that I need to add the codes below in the header of the page:

    HTML Code:
    updateForm(form) {
        var homeValue = parseFloat(form.elements['home_value'].value);
        var mortgage = parseFloat(form.elements['1st_mortgage_balance'].value);
        var additionalCash = parseFloat(form.elements['additional_cash_needed'].value);
        form.elements.ltv.value = (additionalCash + mortgage) / homeValue;
    }
    Once I do that I don't need to add any codes to "1st_mortgage_balance, addictional_cash_needed, etc" right?

    Thanks once again.

  4. #4
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    You've got it right.

    There are other techniques that are used to make the code less obtrusive, such as not having the onsubmit attribute and instead assigning it via javascript after the DOM is ready, but I gather that for the moment you're happy that it's just working.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  5. #5
    SitePoint Addict
    Join Date
    Dec 2001
    Location
    Vancouver, Canada
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Paul,

    I'll try your codes.

  6. #6
    SitePoint Addict
    Join Date
    Dec 2001
    Location
    Vancouver, Canada
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Paul,

    the calculator is not working. I get a blank.

    I can't find where I went wrong. Can you or someone help me troubleshoot this?

    1. In the header I have the following:

    HTML Code:
    <script>
    updateForm(form) {
        var homeValue = parseFloat(form.elements['home_value'].value);
        var mortgage = parseFloat(form.elements['1st_mortgage_balance'].value);
        var additionalCash = parseFloat(form.elements['additional_cash_needed'].value);
        form.elements.ltv.value = (additionalCash + mortgage) / homeValue;
    }
    </script>
    2. in the form I have:

    HTML Code:
    onsubmit="return validateIt(this);updateForm(this)"
    
    and I also have:
    <input type="hidden" name="ltv" value="">
    Where did I go wrong. I get a blank field.

    thanks for the help

    Sheriff

  7. #7
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    Please post the whole html form code
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  8. #8
    SitePoint Addict
    Join Date
    Dec 2001
    Location
    Vancouver, Canada
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I added the codes for my form minus the code for tables and cells.

    This is stricly the codes used for the form.


    HTML Code:
    <IMG SRC="https://www.domain.com/cgi-bin/lf/lv.cgi?dcf2" width="1" height="1"> 
        <form action="https://www.domain.com/cgi-bin/lf/sendit.cgi" method="POST" name="tafform" ID="tafform" onsubmit="return validateIt(this);updateForm(this)">
    <input type="hidden" name="TypeOfLoan" value="debt consolidation">
    <input type="hidden" name="nextpage" value="consolidationform3.html">
    <input type="hidden" name="referpage" value="">
    <input type="hidden" name="form_id" value="dcf2">
    <input type="hidden" name="send_ar" value="">
    <input type="hidden" name="ar_email" value="">
    <input type="hidden" name="pickup_email" value="">
    <input type="hidden" name="refer_email" value="">
    <input type="hidden" name="sender_email" value="">
    <input type="hidden" name="admin_email" value="">
    <input type="hidden" name="entryonly" value="yes">
    <input type="hidden" name="add1" value="">
    <input type="hidden" name="add2" value="">
    <input type="hidden" name="add3" value="">
    <input type="hidden" name="pg1" value="">
    <input type="hidden" name="pg2" value="">
    <input type="hidden" name="pg3" value="">
    <input type="hidden" name="trig1" value="">
    <input type="hidden" name="trig2" value="">
    <input type="hidden" name="trig3" value="">
    <input type="hidden" name="kwy" value="_kwy_">
    <input type="hidden" name="startpage" value="_startpage_">
    <input type="hidden" name="propertyLocation" value="_propertyLocation_">
    <input type="hidden" name="PropertyDescription" value="_PropertyDescription_">
    <input type="hidden" name="CreditProfile" value="_CreditProfile_">
    <input type="hidden" name="from_email" value="_from_email_">
    <input type="hidden" name="first_name" value="_first_name_">
    <input type="hidden" name="ltv" value="">
    <input type="hidden" name="entryonly" value="yes">
    <input type="hidden" name="required" value="home_value~ESTIMATED home value,1st_mortgage_balance~1st mortgage balance,additional_cash_needed~Additional cash needed to consolidate debt?,annual_income~Gross annual income,OccupationalStatus~What is your occupational Status?,7Yearbankruptcy~Have you filed bankruptcy in the past 7 years? (yes no)">
    
    <select name="home_value">
            <option value="">Select One</option>
            <option Value="50000">50,000</option>
            <option Value="55000">55,000</option>
            <option Value="60000">60,000</option>
            <option Value="65000">65,000</option>
            <option Value="70000">70,000</option>
            <option Value="75000">75,000</option>
            <option Value="80000">80,000</option>
            <option Value="85000">85,000</option>
            <option Value="90000">90,000</option>
            <option Value="95000">95,000</option>
            <option Value="100000">100,000</option>
            <option Value="105000">105,000</option>
            <option Value="110000">110,000</option>
            <option Value="115000">115,000</option>
            <option Value="120000">120,000</option>
            <option Value="125000">125,000</option>
            <option Value="130000">130,000</option>
            <option Value="135000">135,000</option>
            <option Value="140000">140,000</option>
            <option Value="145000">145,000</option>
            <option Value="150000">150,000</option>
            <option Value="155000">155,000</option>
            <option Value="160000">160,000</option>
            <option Value="165000">165,000</option>
            <option Value="170000">170,000</option>
            <option Value="175000">175,000</option>
            <option Value="180000">180,000</option>
            <option Value="185000">185,000</option>
            <option Value="190000">190,000</option>
            <option Value="195000">195,000</option>
            <option Value="200000">200,000</option>
            <option Value="210000">210,000</option>
            <option Value="220000">220,000</option>
            <option Value="230000">230,000</option>
            <option Value="240000">240,000</option>
            <option Value="250000">250,000</option>
            <option Value="260000">260,000</option>
            <option Value="270000">270,000</option>
            <option Value="280000">280,000</option>
            <option Value="290000">290,000</option>
            <option Value="300000">300,000</option>
            <option Value="310000">310,000</option>
            <option Value="320000">320,000</option>
            <option Value="330000">330,000</option>
            <option Value="340000">340,000</option>
            <option Value="350000">350,000</option>
            <option Value="360000">360,000</option>
            <option Value="370000">370,000</option>
            <option Value="380000">380,000</option>
            <option Value="390000">390,000</option>
            <option Value="400000">400,000</option>
            <option Value="420000">420,000</option>
            <option Value="440000">440,000</option>
            <option Value="460000">460,000</option>
            <option Value="480000">480,000</option>
            <option Value="500000">500,000</option>
            <option Value="520000">520,000</option>
            <option Value="540000">540,000</option>
            <option Value="560000">560,000</option>
            <option Value="580000">580,000</option>
            <option Value="600000">600,000</option>
            <option Value="620000">620,000</option>
            <option Value="640000">640,000</option>
            <option Value="660000">660,000</option>
            <option Value="680000">680,000</option>
            <option Value="700000">700,000</option>
            <option Value="720000">720,000</option>
            <option Value="740000">740,000</option>
            <option Value="760000">760,000</option>
            <option Value="780000">780,000</option>
            <option Value="800000">800,000</option>
            <option Value="820000">820,000</option>
            <option Value="840000">840,000</option>
            <option Value="860000">860,000</option>
            <option Value="880000">880,000</option>
            <option Value="900000">900,000</option>
            <option Value="920000">920,000</option>
            <option Value="940000">940,000</option>
            <option Value="960000">960,000</option>
            <option Value="980000">980,000</option>
            <option Value="1000001">Over 1,000,000</option>
        </select>
        
        
        
        <select name="1st_mortgage_balance" onchange="document.getElementById('abc').value=this.selectedIndex;">
          <option value="">Select One</option>
         <option Value="0">I don't have a 1st mortgage</option>
          <option Value="5001">5,000</option>
          <option Value="10000">10,000</option>
          <option Value="15000">15,000</option>
          <option Value="20000">20,000</option>
          <option Value="25000">25,000</option>
          <option Value="30000">30,000</option>
          <option Value="35000">35,000</option>
          <option Value="40000">40,000</option>
          <option Value="45000">45,000</option>
          <option Value="50000">50,000</option>
          <option Value="55000">55,000</option>
          <option Value="60000">60,000</option>
          <option Value="65000">65,000</option>
          <option Value="70000">70,000</option>
          <option Value="75000">75,000</option>
          <option Value="80000">80,000</option>
          <option Value="85000">85,000</option>
          <option Value="90000">90,000</option>
          <option Value="95000">95,000</option>
          <option Value="100000">100,000</option>
          <option Value="105000">105,000</option>
          <option Value="110000">110,000</option>
          <option Value="115000">115,000</option>
          <option Value="120000">120,000</option>
          <option Value="125000">125,000</option>
          <option Value="130000">130,000</option>
          <option Value="135000">135,000</option>
          <option Value="140000">140,000</option>
          <option Value="145000">145,000</option>
          <option Value="150000">150,000</option>
          <option Value="155000">155,000</option>
          <option Value="160000">160,000</option>
          <option Value="165000">165,000</option>
          <option Value="170000">170,000</option>
          <option Value="175000">175,000</option>
          <option Value="180000">180,000</option>
          <option Value="185000">185,000</option>
          <option Value="190000">190,000</option>
          <option Value="195000">195,000</option>
          <option Value="200000">200,000</option>
          <option Value="210000">210,000</option>
          <option Value="220000">220,000</option>
          <option Value="230000">230,000</option>
          <option Value="240000">240,000</option>
          <option Value="250000">250,000</option>
          <option Value="260000">260,000</option>
          <option Value="270000">270,000</option>
          <option Value="280000">280,000</option>
          <option Value="290000">290,000</option>
          <option Value="300000">300,000</option>
          <option Value="310000">310,000</option>
          <option Value="320000">320,000</option>
          <option Value="330000">330,000</option>
          <option Value="340000">340,000</option>
          <option Value="350000">350,000</option>
          <option Value="360000">360,000</option>
          <option Value="370000">370,000</option>
          <option Value="380000">380,000</option>
          <option Value="390000">390,000</option>
          <option Value="400000">400,000</option>
          <option Value="420000">420,000</option>
          <option Value="440000">440,000</option>
          <option Value="460000">460,000</option>
          <option Value="480000">480,000</option>
          <option Value="500000">500,000</option>
          <option Value="520000">520,000</option>
          <option Value="540000">540,000</option>
          <option Value="560000">560,000</option>
          <option Value="580000">580,000</option>
          <option Value="600000">600,000</option>
          <option Value="620000">620,000</option>
          <option Value="640000">640,000</option>
          <option Value="660000">660,000</option>
          <option Value="680000">680,000</option>
          <option Value="700000">700,000</option>
          <option Value="720000">720,000</option>
          <option Value="740000">740,000</option>
          <option Value="760000">760,000</option>
          <option Value="780000">780,000</option>
          <option Value="800000">800,000</option>
          <option Value="820000">820,000</option>
          <option Value="840000">840,000</option>
          <option Value="860000">860,000</option>
          <option Value="880000">880,000</option>
          <option Value="900000">900,000</option>
          <option Value="920000">920,000</option>
          <option Value="940000">940,000</option>
          <option Value="960000">960,000</option>
          <option Value="980000">980,000</option>
          <option Value="1000001">Over 1,000,000</option>
        </select>
        
        <select name="annual_income">
          <option value="">Select One</option>
          <option value="Less than 30000">Less than 30,000</option>
          <option value="30 000 - 44 999">30,000 - 44,999</option>
          <option value="45 000 - 59 999">45,000 - 59,999</option>
          <option value="60 000 - 74 999">60,000 - 74,999</option>
          <option value="75 000 - 89 999">75,000 - 89,999</option>
          <option value="90 000 - 104 999">90,000 - 104,999</option>
          <option value="105 000 - 119 999">105,000 - 119,999</option>
          <option value="120 000 - 134 999">120,000 - 134,999</option>
          <option value="135 000 - 149 999">135,000 - 149,999</option>
          <option value="150 000 - 164 999">150,000 - 164,999</option>
          <option value="165 000 - 179 999">165,000 - 179,999</option>
          <option value="180 000 - 200 000">180,000 - 200,000</option>
          <option value="Over 200 000">Over 200,000</option>
        </select>
        
        <select name="OccupationalStatus" size="4">
          <option value="Employed">Employed</option>
          <option value="Self Employed">Self-Employed</option>
          <option value="Retired">retired</option>
          <option value="Not employed">not employed</option>
        </select>
        
        <select name="occupational_time">
          <option value="">Select One</option>
          <option value="probation">I'm on probation</option>
                        <option value="3 to 6 months">3 to 6 months</option>
                        <option value="7 to 12 months">7 to 12 months</option>
                        <option value="1+ to 2 years">1+ to 2 years</option>
                        <option value="2+ to 3 years">2+ to 3 years</option>
                        <option value="over 3 years">over 3 years</option>
        </select>
        
        <input type="radio" name="7Yearbankruptcy" value="Yes" onclick="document.getElementById('checkhid').value=1" /> 
          Yes &nbsp;&nbsp;
      <input type="radio" name="7Yearbankruptcy" value="No" onclick="document.getElementById('checkhid').value=1">
        
        <input type="submit" name="submit" value="Next Page" style="background:#CC6666; color:#660000; font-weight:bold"  border="0" >

  9. #9
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    I'm seeing a couple of issues here.

    The script for the updateForm function needs to have the word function in front of the function name.

    The form is returning the validateIt result, so it can not run the updateForm function.

    My suggestion is that you use a processForm function that does the validation, and if the validation is correct runs the process Form function, then returns the validation result.

    Code javascript:
    function processForm(el) {
        var validates = validateIt(el);
    	if (validates) {
    		updateForm(el);
    	}
    	return validates;
    }

    I also didn't see an additional_cash_needed field on the form. You might have missed out copying that with the form, because I didn't see a </form> tag either, but if that field doesn't exist then the script will stop when trying to access it, and it won't update the ltv field.

    With those things in mind though, I have the test form properly submitting.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  10. #10
    SitePoint Addict
    Join Date
    Dec 2001
    Location
    Vancouver, Canada
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Paul,

    Still not working...

    This is the javascript that I have:

    (The validateIt and processform are at the beginning and the updateform is the last function:

    HTML Code:
    <script>
    function processForm(el) {
        var validates = validateIt(el);
        if (validates) {
            updateForm(el);
        }
        return validates;
    }
    function validateIt(theForm)
    {
        //estimate home value
        if(theForm.home_value.selectedIndex==0)
          {
             alert("Select the estimated home value");
            theForm.home_value.focus();         
            return (false);
          }
          //Mortage Balance
        if(document.getElementById('abc').value==0 || document.getElementById('abc').value=="")
          {
            alert("Select the 1st mortgage balance");
            //theForm.preferred_number_type.focus();         
            return (false);
          }
          //additional cash
          if(theForm.additional_cash_needed.selectedIndex==0)
          {
             alert("Select Additional Cash Needed to Consolidate Debt");
            theForm.additional_cash_needed.focus();         
            return (false);
          }
          
          //annual_income
          if(theForm.annual_income.selectedIndex==0)
          {
            alert("Select Your Annual Income");
            theForm.annual_income.focus();         
            return (false);
          }
          //Occupation Status
         if(document.tafform.OccupationalStatus.selectedIndex==-1){
             alert("Please Select Your Occupational Status.");
            theForm.OccupationalStatus.focus();         
            return (false);
          }           
          //occupational_time
           if(theForm.occupational_time.selectedIndex==0)
          {
            alert("You missed the second last question: Please tell us how long you have been employed, self-employed, etc.");
            theForm.annual_income.focus();         
            return (false);
          }
          //check box yes no
          if(document.getElementById('checkhid').value=="")
          {
              alert("Have you filed bankruptcy in the past 7 years? Select yes or no");
              return false;
              
          } 
          return true;
          
    }
    function updateForm(form) {
        var homeValue = parseFloat(form.elements['home_value'].value);
        var mortgage = parseFloat(form.elements['1st_mortgage_balance'].value);
        var additionalCash = parseFloat(form.elements['additional_cash_needed'].value);
        form.elements.ltv.value = (additionalCash + mortgage) / homeValue;
    }
    </script>
    You're also right about the additional_cash_needed. I just missed it. Here it is just in case:

    HTML Code:
    <select name="additional_cash_needed">
          <option value="">Select One</option>
          <option value="0">0</option>
    <option Value="5001">5,001</option>
    <option Value="10001">10,001</option>
    <option Value="1000001">1,000,001</option>
        </select>

  11. #11
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    It seems to work for me, though there are some unrelated errors coming from the form validation itself.

    Code javascript:
    <select name="1st_mortgage_balance" onchange="document.getElementById('abc').value=this.selectedIndex;">
    ...
    <input type="radio" name="7Yearbankruptcy" value="Yes" onclick="document.getElementById('checkhid').value=1" /> 
    Yes &nbsp;&nbsp;
    <input type="radio" name="7Yearbankruptcy" value="No" onclick="document.getElementById('checkhid').value=1">
    No

    The elements with an id of "abc" and "checkhid" don't seem to exist.

    If you want further issues sorted out then it may be provident for us to be able to look at a live page, so that more focused advice can be provided.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  12. #12
    SitePoint Addict
    Join Date
    Dec 2001
    Location
    Vancouver, Canada
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HI Paul,

    I tested it a few times and it's just not working.

    As far as the validation javascript, I hired a programmer a while back and he didn't do a good job.

    In any case, I'll deal with these errors later if they are not causing any problems right now.

    The page is not directly accessible online. You'll have to go to http://www.mortgageshoppercanada.ca

    Select the following option in your form:

    Type of loan: Debt Consolidation
    Property Location: Ontario
    Home Description: Leave option as is
    Credit profile: Leave it as is
    Email address: test@4badcredit.com
    First name: Test

    Once you click the "click here to continue" you'll be sent to the page where the calculator is. This is where I'm trying to calculate the LTV.

    I've also added the codes of the whole page in this post:

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <META http-equiv=Content-Type content="text/html; charset=windows-1252">
    
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Calculate the Lowest Debt Consolidation Rates Available in _propertyLocation_</title>
    <style type="text/css">
    <!--
    .topimg{text-align:left; position:absolute;padding:2px; left: 25px; top: 11px; width: 193px; height: 82px; background-color: #EFE3D6; layer-background-color: #EFE3D6; border: 0px none #000000;}
    .wname { position:absolute; top:0px;left:488px; }
    .wname1 { position:absolute; top:0px;left:184px; }
    strong.top {font-size:24px; color:#B8816D; font-weight:bold}
    .heading3{
        text-align:center;
        margin-top:5px;
        padding:2px;
        position:absolute;
        top:95px;
        left: 82px;
        width: 641px;
        height: 71px;
        layer-background-color: #EFE3D6;
        border: 0px none #000000;
    }
    
    .maintitle2,h1,h2    {font-weight: bold; font-size: 18px; font-family: "tahoma", Trebuchet MS,Verdana, Arial, Helvetica, sans-serif; text-decoration: none; line-height : 150%; color:#000000;}
    
    .maintitle3,h1,h2    {font-weight: bold; font-size: 18px; font-family: "tahoma", Trebuchet MS,Verdana, Arial, Helvetica, sans-serif; text-decoration: none; line-height : 120%; color:#7B1200;}
    
    .othersteps {
        text-align:left;
        padding:1px;
        position:absolute;
        top:218px;
        left: 600px;
        width: 80px;
        height: 50px;
        layer-background-color: #EFE3D6;
        border: 0px none #000000;
        font-weight: bold;
        font-size: 12px;
        font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif;
        text-decoration: none;
        line-height : 120%;
        color:#7B1200;
    }
    .steps {font-size: 20px; text-decoration: underline;}
    .OKestimation {color: #666666}
    .style12 {    font-size: 24px;
        font-family: "Times New Roman", Times, serif;
    }
    body {
        background-color:#EFEFEF;
                    margin-left: 0px;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
    }
    .style14 {
        font-size: 12px;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        color: #818181;
        font-weight: bold;
    }
    .style15 {color: #B8816D}
    .style16 {
        font-size: 12px;
        font-family: Verdana, Arial, Helvetica, sans-serif;
    }
    a:link,a:active,a:visited{ font-size: 11px; letter-spacing: 1px;color : #000000;text-decoration:underline; }
    a:link:hover{ font-size : 11px; letter-spacing: 1px;color : #000000;text-decoration:none; }
    
    a.calc:active,a.calc:visited{ font-size:14px;  letter-spacing: 1px;color : #000000;text-decoration: underline;}
    a.calc:hover{font-size:14px; letter-spacing: 1px;color :#818181;text-decoration: underline; }
    
    a.small:active,a.small:visited{ font-size:9px;color:#0033FF;text-decoration: underline;}
    a.small:hover{font-size:9px;color :#0033FF;text-decoration:none; }
    
    /* Copyright and bottom info */
    a.copyright:active,a.copyright:visited{ font-size: 10px; color:#000000;letter-spacing:1px; text-decoration: none;}
    a.copyright:hover { font-size:10px;color:#000000; text-decoration: none;}
    table.MarginLeft
    {
     margin-left: 2%;
     font-family: Verdana;
     font-size : 14px;
    }
    .heading31 {    text-align:center;
        margin-top:5px;
        padding:2px;
        position:absolute;
        top:91px;
        left: 101px;
        width: 605px;
        height: 71px;
        layer-background-color: #EFE3D6;
        border: 0px none #000000;
    }
    -->
    
    </style>
    <script>
    function processForm(el) {
        var validates = validateIt(el);
        if (validates) {
            updateForm(el);
        }
        return validates;
    }
    function validateIt(theForm)
    {
        //estimate home value
        if(theForm.home_value.selectedIndex==0)
          {
             alert("Select the estimated home value");
            theForm.home_value.focus();         
            return (false);
          }
          //Mortage Balance
        if(document.getElementById('abc').value==0 || document.getElementById('abc').value=="")
          {
            alert("Select the 1st mortgage balance");
            //theForm.preferred_number_type.focus();         
            return (false);
          }
          //additional cash
          if(theForm.additional_cash_needed.selectedIndex==0)
          {
             alert("Select Additional Cash Needed to Consolidate Debt");
            theForm.additional_cash_needed.focus();         
            return (false);
          }
          
          //annual_income
          if(theForm.annual_income.selectedIndex==0)
          {
            alert("Select Your Annual Income");
            theForm.annual_income.focus();         
            return (false);
          }
          //Occupation Status
         if(document.tafform.OccupationalStatus.selectedIndex==-1){
             alert("Please Select Your Occupational Status.");
            theForm.OccupationalStatus.focus();         
            return (false);
          }           
          //occupational_time
           if(theForm.occupational_time.selectedIndex==0)
          {
            alert("You missed the second last question: Please tell us how long you have been employed, self-employed, etc.");
            theForm.annual_income.focus();         
            return (false);
          }
          //check box yes no
          if(document.getElementById('checkhid').value=="")
          {
              alert("Have you filed bankruptcy in the past 7 years? Select yes or no");
              return false;
              
          } 
          return true;
          
    }
    function updateForm(form) {
        var homeValue = parseFloat(form.elements['home_value'].value);
        var mortgage = parseFloat(form.elements['1st_mortgage_balance'].value);
        var additionalCash = parseFloat(form.elements['additional_cash_needed'].value);
        form.elements.ltv.value = (additionalCash + mortgage) / homeValue;
    }
    </script>
    
    </head>
    
    <body   leftmargin="0" topmargin="0" >
    <div style=" width: 780px; height:650px; background-color:#EFE3D3;"></div>
    
    
    <!-- Top Banner --> 
    </div>
    <span class="topimg">
    <table width="135" border="0" cellpadding="2" cellspacing="0" title="Click to Verify - This site chose VeriSign SSL for secure e-commerce and confidential communications.">
    <tr>
    <td width="135" align="center" valign="top"><script src=https://seal.verisign.com/getseal?host_name=www.mortgageshoppercanada.ca&size=S&use_flash=YES&use_transparent=YES&lang=en></script><br />
    <a href="http://www.verisign.com/ssl-certificate/" target="_blank"  style="color:#000000; text-decoration:none; font:bold 7px verdana,sans-serif; letter-spacing:.5px; text-align:center; margin:0px; padding:0px;">ABOUT SSL CERTIFICATES</a></td>
    </tr>
    </table>
    </span>  
    <div class="wname" ><img src="../../images/Canada-mortgage-flag.gif" alt="Mortgage Shopper Canada.ca" width="289" height="83"></div>
    <div class="wname1" ><img src="../../images/Canada-mortgage11.gif" alt="Mortgage Shopper Canada.ca" width="306" height="83"></div>
    <!--end of top banner --><!--end of top banner -->
    
    <!--main title-->
    <span class="heading3">
    <h2 class="maintitle2">Some <span class="maintitle3">Debt Consolidation Mortgage Contracts</span> in <span class="maintitle3">_propertyLocation_</span> Impose Heavy Penalties. Your Mortgage Agent knows About Them. <span class="maintitle3">Take Advantage of Your Free Consultation</span> and Ask Lots of Questions.</h2>
    </span>
    <!-- end of main title -->
    
    <table width="780" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td valign="top"><!--FORM CODE -->
    
     <IMG SRC="https://www.mortgageshoppercanada.ca/cgi-bin/form/lv.cgi?dcf2" width="1" height="1"> 
        <form action="https://www.mortgageshoppercanada.ca/cgi-bin/form/sendit.cgi" method="POST" name="tafform" ID="tafform" onsubmit="return validateIt(this);updateForm(this)">
    <input type="hidden" name="TypeOfLoan" value="debt consolidation">
    <input type="hidden" name="nextpage" value="consolidationform3.html">
    <input type="hidden" name="referpage" value="">
    <input type="hidden" name="form_id" value="dcf2">
    <input type="hidden" name="send_ar" value="">
    <input type="hidden" name="ar_email" value="">
    <input type="hidden" name="pickup_email" value="">
    <input type="hidden" name="refer_email" value="">
    <input type="hidden" name="sender_email" value="">
    <input type="hidden" name="admin_email" value="">
    <input type="hidden" name="entryonly" value="yes">
    <input type="hidden" name="add1" value="">
    <input type="hidden" name="add2" value="">
    <input type="hidden" name="add3" value="">
    <input type="hidden" name="pg1" value="">
    <input type="hidden" name="pg2" value="">
    <input type="hidden" name="pg3" value="">
    <input type="hidden" name="trig1" value="">
    <input type="hidden" name="trig2" value="">
    <input type="hidden" name="trig3" value="">
    <input type="hidden" name="kwy" value="_kwy_">
    <input type="hidden" name="startpage" value="_startpage_">
    <input type="hidden" name="propertyLocation" value="_propertyLocation_">
    <input type="hidden" name="PropertyDescription" value="_PropertyDescription_">
    <input type="hidden" name="CreditProfile" value="_CreditProfile_">
    <input type="hidden" name="from_email" value="_from_email_">
    <input type="hidden" name="first_name" value="_first_name_">
    <input type="hidden" name="ltv" value="">
    <input type="hidden" name="entryonly" value="yes">
    <input type="hidden" name="required" value="home_value~ESTIMATED home value,1st_mortgage_balance~1st mortgage balance,additional_cash_needed~Additional cash needed to consolidate debt?,annual_income~Gross annual income,OccupationalStatus~What is your occupational Status?,7Yearbankruptcy~Have you filed bankruptcy in the past 7 years? (yes no)">
        <div style="position:absolute; top:233px; left:100px;">
        <table width="500" height="366" border="0" align="left" cellpadding="0" cellspacing="0">
          <tr>
            <td height="366" background="../../images/box24.gif" style="background-repeat:no-repeat; width:auto;" valign="top">
            
    <br>  
    <table width="600" border="0" cellspacing="5" cellpadding="0" class="MarginLeft">
      <tr>  </tr>
      <tr>
        <td width="200" height="30" valign="top"><span class="style14">Estimated home value</span><br /></td>
        <td width="400" valign="top"><select name="home_value">
            <option value="">Select One</option>
            <option Value="50000">50,000</option>
            <option Value="55000">55,000</option>
            <option Value="60000">60,000</option>
            <option Value="65000">65,000</option>
            <option Value="70000">70,000</option>
            <option Value="75000">75,000</option>
            <option Value="80000">80,000</option>
            <option Value="85000">85,000</option>
            <option Value="90000">90,000</option>
            <option Value="95000">95,000</option>
            <option Value="100000">100,000</option>
            <option Value="105000">105,000</option>
            <option Value="110000">110,000</option>
            <option Value="115000">115,000</option>
            <option Value="120000">120,000</option>
            <option Value="125000">125,000</option>
            <option Value="130000">130,000</option>
            <option Value="135000">135,000</option>
            <option Value="140000">140,000</option>
            <option Value="145000">145,000</option>
            <option Value="150000">150,000</option>
            <option Value="155000">155,000</option>
            <option Value="160000">160,000</option>
            <option Value="165000">165,000</option>
            <option Value="170000">170,000</option>
            <option Value="175000">175,000</option>
            <option Value="180000">180,000</option>
            <option Value="185000">185,000</option>
            <option Value="190000">190,000</option>
            <option Value="195000">195,000</option>
            <option Value="200000">200,000</option>
            <option Value="210000">210,000</option>
            <option Value="220000">220,000</option>
            <option Value="230000">230,000</option>
            <option Value="240000">240,000</option>
            <option Value="250000">250,000</option>
            <option Value="260000">260,000</option>
            <option Value="270000">270,000</option>
            <option Value="280000">280,000</option>
            <option Value="290000">290,000</option>
            <option Value="300000">300,000</option>
            <option Value="310000">310,000</option>
            <option Value="320000">320,000</option>
            <option Value="330000">330,000</option>
            <option Value="340000">340,000</option>
            <option Value="350000">350,000</option>
            <option Value="360000">360,000</option>
            <option Value="370000">370,000</option>
            <option Value="380000">380,000</option>
            <option Value="390000">390,000</option>
            <option Value="400000">400,000</option>
            <option Value="420000">420,000</option>
            <option Value="440000">440,000</option>
            <option Value="460000">460,000</option>
            <option Value="480000">480,000</option>
            <option Value="500000">500,000</option>
            <option Value="520000">520,000</option>
            <option Value="540000">540,000</option>
            <option Value="560000">560,000</option>
            <option Value="580000">580,000</option>
            <option Value="600000">600,000</option>
            <option Value="620000">620,000</option>
            <option Value="640000">640,000</option>
            <option Value="660000">660,000</option>
            <option Value="680000">680,000</option>
            <option Value="700000">700,000</option>
            <option Value="720000">720,000</option>
            <option Value="740000">740,000</option>
            <option Value="760000">760,000</option>
            <option Value="780000">780,000</option>
            <option Value="800000">800,000</option>
            <option Value="820000">820,000</option>
            <option Value="840000">840,000</option>
            <option Value="860000">860,000</option>
            <option Value="880000">880,000</option>
            <option Value="900000">900,000</option>
            <option Value="920000">920,000</option>
            <option Value="940000">940,000</option>
            <option Value="960000">960,000</option>
            <option Value="980000">980,000</option>
            <option Value="1000001">Over 1,000,000</option>
        </select>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="OKestimation">(ok to estimate)</span> </td>
      </tr>
      <tr>
      <input type="hidden" id="abc">
        <td height="30" valign="top"><span class="style14">1st Mortgage Balance</span> </td>
        <td valign="top"><select name="1st_mortgage_balance" onchange="document.getElementById('abc').value=this.selectedIndex;">
          <option value="">Select One</option>
         <option Value="0">I don't have a 1st mortgage</option>
          <option Value="5001">5,000</option>
          <option Value="10000">10,000</option>
          <option Value="15000">15,000</option>
          <option Value="20000">20,000</option>
          <option Value="25000">25,000</option>
          <option Value="30000">30,000</option>
          <option Value="35000">35,000</option>
          <option Value="40000">40,000</option>
          <option Value="45000">45,000</option>
          <option Value="50000">50,000</option>
          <option Value="55000">55,000</option>
          <option Value="60000">60,000</option>
          <option Value="65000">65,000</option>
          <option Value="70000">70,000</option>
          <option Value="75000">75,000</option>
          <option Value="80000">80,000</option>
          <option Value="85000">85,000</option>
          <option Value="90000">90,000</option>
          <option Value="95000">95,000</option>
          <option Value="100000">100,000</option>
          <option Value="105000">105,000</option>
          <option Value="110000">110,000</option>
          <option Value="115000">115,000</option>
          <option Value="120000">120,000</option>
          <option Value="125000">125,000</option>
          <option Value="130000">130,000</option>
          <option Value="135000">135,000</option>
          <option Value="140000">140,000</option>
          <option Value="145000">145,000</option>
          <option Value="150000">150,000</option>
          <option Value="155000">155,000</option>
          <option Value="160000">160,000</option>
          <option Value="165000">165,000</option>
          <option Value="170000">170,000</option>
          <option Value="175000">175,000</option>
          <option Value="180000">180,000</option>
          <option Value="185000">185,000</option>
          <option Value="190000">190,000</option>
          <option Value="195000">195,000</option>
          <option Value="200000">200,000</option>
          <option Value="210000">210,000</option>
          <option Value="220000">220,000</option>
          <option Value="230000">230,000</option>
          <option Value="240000">240,000</option>
          <option Value="250000">250,000</option>
          <option Value="260000">260,000</option>
          <option Value="270000">270,000</option>
          <option Value="280000">280,000</option>
          <option Value="290000">290,000</option>
          <option Value="300000">300,000</option>
          <option Value="310000">310,000</option>
          <option Value="320000">320,000</option>
          <option Value="330000">330,000</option>
          <option Value="340000">340,000</option>
          <option Value="350000">350,000</option>
          <option Value="360000">360,000</option>
          <option Value="370000">370,000</option>
          <option Value="380000">380,000</option>
          <option Value="390000">390,000</option>
          <option Value="400000">400,000</option>
          <option Value="420000">420,000</option>
          <option Value="440000">440,000</option>
          <option Value="460000">460,000</option>
          <option Value="480000">480,000</option>
          <option Value="500000">500,000</option>
          <option Value="520000">520,000</option>
          <option Value="540000">540,000</option>
          <option Value="560000">560,000</option>
          <option Value="580000">580,000</option>
          <option Value="600000">600,000</option>
          <option Value="620000">620,000</option>
          <option Value="640000">640,000</option>
          <option Value="660000">660,000</option>
          <option Value="680000">680,000</option>
          <option Value="700000">700,000</option>
          <option Value="720000">720,000</option>
          <option Value="740000">740,000</option>
          <option Value="760000">760,000</option>
          <option Value="780000">780,000</option>
          <option Value="800000">800,000</option>
          <option Value="820000">820,000</option>
          <option Value="840000">840,000</option>
          <option Value="860000">860,000</option>
          <option Value="880000">880,000</option>
          <option Value="900000">900,000</option>
          <option Value="920000">920,000</option>
          <option Value="940000">940,000</option>
          <option Value="960000">960,000</option>
          <option Value="980000">980,000</option>
          <option Value="1000001">Over 1,000,000</option>
        </select>
          &nbsp;&nbsp;<span class="OKestimation">(Ok to estimate)</span> </td>
      </tr>
      <tr>
        <td height="30" valign="top"><span class="style14">Additional cash needed to consolidate debt?</span></td>
        <td valign="top"><select name="additional_cash_needed">
          <option value="">Select One</option>
          <option value="0">0</option>
    <option Value="5001">5,001</option>
    <option Value="10001">10,001</option>
    <option Value="15001">15,001</option>
    <option Value="20001">20,001</option>
    <option Value="25001">25,001</option>
    <option Value="30001">30,001</option>
    <option Value="35001">35,001</option>
    <option Value="40001">40,001</option>
    <option Value="45001">45,001</option>
    <option Value="50001">50,001</option>
    <option Value="55001">55,001</option>
    <option Value="60001">60,001</option>
    <option Value="65001">65,001</option>
    <option Value="70001">70,001</option>
    <option Value="75001">75,001</option>
    <option Value="80001">80,001</option>
    <option Value="85001">85,001</option>
    <option Value="90001">90,001</option>
    <option Value="95001">95,001</option>
    <option Value="100001">100,001</option>
    <option Value="105001">105,001</option>
    <option Value="110001">110,001</option>
    <option Value="115001">115,001</option>
    <option Value="120001">120,001</option>
    <option Value="125001">125,001</option>
    <option Value="130001">130,001</option>
    <option Value="135001">135,001</option>
    <option Value="140001">140,001</option>
    <option Value="145001">145,001</option>
    <option Value="150001">150,001</option>
    <option Value="155001">155,001</option>
    <option Value="160001">160,001</option>
    <option Value="165001">165,001</option>
    <option Value="170001">170,001</option>
    <option Value="175001">175,001</option>
    <option Value="180001">180,001</option>
    <option Value="185001">185,001</option>
    <option Value="190001">190,001</option>
    <option Value="195001">195,001</option>
    <option Value="200001">200,001</option>
    <option Value="210001">210,001</option>
    <option Value="220001">220,001</option>
    <option Value="230001">230,001</option>
    <option Value="240001">240,001</option>
    <option Value="250001">250,001</option>
    <option Value="260001">260,001</option>
    <option Value="270001">270,001</option>
    <option Value="280001">280,001</option>
    <option Value="290001">290,001</option>
    <option Value="300001">300,001</option>
    <option Value="310001">310,001</option>
    <option Value="320001">320,001</option>
    <option Value="330001">330,001</option>
    <option Value="340001">340,001</option>
    <option Value="350001">350,001</option>
    <option Value="360001">360,001</option>
    <option Value="370001">370,001</option>
    <option Value="380001">380,001</option>
    <option Value="390001">390,001</option>
    <option Value="400001">400,001</option>
    <option Value="420001">420,001</option>
    <option Value="440001">440,001</option>
    <option Value="460001">460,001</option>
    <option Value="480001">480,001</option>
    <option Value="500001">500,001</option>
    <option Value="520001">520,001</option>
    <option Value="540001">540,001</option>
    <option Value="560001">560,001</option>
    <option Value="580001">580,001</option>
    <option Value="600001">600,001</option>
    <option Value="620001">620,001</option>
    <option Value="640001">640,001</option>
    <option Value="660001">660,001</option>
    <option Value="680001">680,001</option>
    <option Value="700001">700,001</option>
    <option Value="720001">720,001</option>  
    <option Value="740000">740,000</option>
    <option Value="760000">760,000</option>
    <option Value="780000">780,000</option>
    <option Value="800000">800,000</option>
    <option Value="820000">820,000</option>
    <option Value="840000">840,000</option>
    <option Value="860000">860,000</option>
    <option Value="880000">880,000</option>
    <option Value="900000">900,000</option>
    <option Value="920000">920,000</option>
    <option Value="940000">940,000</option>
    <option Value="960000">960,000</option>
    <option Value="980000">980,000</option>
    <option Value="1000001">1,000,001</option>
        </select>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="OKestimation">(ok to estimate)</span></td>
      </tr>
      <tr>
        <td height="30" valign="top"><span class="style14">Gross annual income</span>
          </li></td>
        <td valign="top"><select name="annual_income">
          <option value="">Select One</option>
          <option value="Less than 30000">Less than 30,000</option>
          <option value="30 000 - 44 999">30,000 - 44,999</option>
          <option value="45 000 - 59 999">45,000 - 59,999</option>
          <option value="60 000 - 74 999">60,000 - 74,999</option>
          <option value="75 000 - 89 999">75,000 - 89,999</option>
          <option value="90 000 - 104 999">90,000 - 104,999</option>
          <option value="105 000 - 119 999">105,000 - 119,999</option>
          <option value="120 000 - 134 999">120,000 - 134,999</option>
          <option value="135 000 - 149 999">135,000 - 149,999</option>
          <option value="150 000 - 164 999">150,000 - 164,999</option>
          <option value="165 000 - 179 999">165,000 - 179,999</option>
          <option value="180 000 - 200 000">180,000 - 200,000</option>
          <option value="Over 200 000">Over 200,000</option>
        </select></td>
      </tr>
      <tr>
        <td height="50" align="left" valign="top"><span class="style14">What is your occupational Status?</span></td>
        <td valign="top"><select name="OccupationalStatus" size="4">
          <option value="Employed">Employed</option>
          <option value="Self Employed">Self-Employed</option>
          <option value="Retired">retired</option>
          <option value="Not employed">not employed</option>
        </select></td>
      </tr>
      <tr>
        <td height="60" align="left" valign="top"><span class="style14">How long have you been employed, self-employed, retired or not employed?</span></td>
        <td valign="middle">&nbsp;<select name="occupational_time">
          <option value="">Select One</option>
          <option value="probation">I'm on probation</option>
                        <option value="3 to 6 months">3 to 6 months</option>
                        <option value="7 to 12 months">7 to 12 months</option>
                        <option value="1+ to 2 years">1+ to 2 years</option>
                        <option value="2+ to 3 years">2+ to 3 years</option>
                        <option value="over 3 years">over 3 years</option>
        </select></td>
      </tr>
      <tr>
      <input type="hidden" id="checkhid">
        <td height="35" valign="top"><span class="style14">Have you filed bankruptcy in the past 7 years? </span></td>
        <td valign="top">   <input type="radio" name="7Yearbankruptcy" value="Yes" onclick="document.getElementById('checkhid').value=1" /> 
          Yes &nbsp;&nbsp;
      <input type="radio" name="7Yearbankruptcy" value="No" onclick="document.getElementById('checkhid').value=1">
          No</td></tr>
      <tr>
        <td height="40" valign="top">&nbsp;</td>
        <td valign="top"><input type="submit" name="submit" value="Next Page" style="background:#CC6666; color:#660000; font-weight:bold"  border="0" ></td>
      </tr>
    </table>
    
        
            </td>
          </tr>
        </table></div> </FORM>
    
    
              <!--FORM CODE ends -->
              </td>
      </tr>
    </table>
    <div class="othersteps">Step: 1 <span class="steps">2</span> 3 4</div>
    <p>&nbsp;</p>
    
    
    <p>&nbsp;</p>
    <div class="style16" style="text-align: center; position: absolute; left: 107px; top: 653px; width: 566px; height: 35px;"> &copy;Copyright 2006 - 2008  mortgageshoppercanada.ca   All Rights Reserved.</div>
    <p>&nbsp; </p>
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    var pageTracker = _gat._getTracker("UA-3556631-1");
    pageTracker._initData();
    pageTracker._trackPageview();
    </script>
    </body>
    </html>

  13. #13
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    I don't know if these are related but I'm getting several HTML errors from my web browser on that page.

    <head> must be a child of <html>. Content ignored. (line 5)
    That one means that the meta tag just above the head tag should go inside the head tag.

    Unmatched </div> encountered. Ignoring tag. (line 180)
    That one means that the top banner starts with </div> when it should be <div>

    [The HTML that caused this error was generated by a script.] Unmatched </embed> encountered. Ignoring tag. (line 184)
    That one is the from the script that creates the verisign section. Not much you can do about that though, which is a poor show.

    <input> is not allowed inside <tr>. Inserting <input> before the <table> instead. (line 332)
    That's the hidden "abc" field, put it somewhere inside the <td>

    Unmatched </li> encountered. Ignoring tag. (line 530)
    That one's on the end of the gross annual income field. Get rid of the </li> tag

    <input> is not allowed inside <tr>. Inserting <input> before the <table> instead. (570)
    That one is the "checkhid" hidden field. Get it inside a <td> tag
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  14. #14
    SitePoint Addict
    Join Date
    Dec 2001
    Location
    Vancouver, Canada
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmmm, some of these errors should have been picked up in Dreamweaver.

    I did make the changes. But the LTV is still not registering in my database.

    here are the revised codes:
    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <META http-equiv=Content-Type content="text/html; charset=windows-1252">
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Calculate the Lowest Debt Consolidation Rates Available in _propertyLocation_</title>
    <style type="text/css">
    <!--
    .topimg{text-align:left; position:absolute;padding:2px; left: 25px; top: 11px; width: 193px; height: 82px; background-color: #EFE3D6; layer-background-color: #EFE3D6; border: 0px none #000000;}
    .wname { position:absolute; top:0px;left:488px; }
    .wname1 { position:absolute; top:0px;left:184px; }
    strong.top {font-size:24px; color:#B8816D; font-weight:bold}
    .heading3{
        text-align:center;
        margin-top:5px;
        padding:2px;
        position:absolute;
        top:95px;
        left: 82px;
        width: 641px;
        height: 71px;
        layer-background-color: #EFE3D6;
        border: 0px none #000000;
    }
    
    .maintitle2,h1,h2    {font-weight: bold; font-size: 18px; font-family: "tahoma", Trebuchet MS,Verdana, Arial, Helvetica, sans-serif; text-decoration: none; line-height : 150%; color:#000000;}
    
    .maintitle3,h1,h2    {font-weight: bold; font-size: 18px; font-family: "tahoma", Trebuchet MS,Verdana, Arial, Helvetica, sans-serif; text-decoration: none; line-height : 120%; color:#7B1200;}
    
    .othersteps {
        text-align:left;
        padding:1px;
        position:absolute;
        top:218px;
        left: 600px;
        width: 80px;
        height: 50px;
        layer-background-color: #EFE3D6;
        border: 0px none #000000;
        font-weight: bold;
        font-size: 12px;
        font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif;
        text-decoration: none;
        line-height : 120%;
        color:#7B1200;
    }
    .steps {font-size: 20px; text-decoration: underline;}
    .OKestimation {color: #666666}
    .style12 {    font-size: 24px;
        font-family: "Times New Roman", Times, serif;
    }
    body {
        background-color:#EFEFEF;
                    margin-left: 0px;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
    }
    .style14 {
        font-size: 12px;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        color: #818181;
        font-weight: bold;
    }
    .style15 {color: #B8816D}
    .style16 {
        font-size: 12px;
        font-family: Verdana, Arial, Helvetica, sans-serif;
    }
    a:link,a:active,a:visited{ font-size: 11px; letter-spacing: 1px;color : #000000;text-decoration:underline; }
    a:link:hover{ font-size : 11px; letter-spacing: 1px;color : #000000;text-decoration:none; }
    
    a.calc:active,a.calc:visited{ font-size:14px;  letter-spacing: 1px;color : #000000;text-decoration: underline;}
    a.calc:hover{font-size:14px; letter-spacing: 1px;color :#818181;text-decoration: underline; }
    
    a.small:active,a.small:visited{ font-size:9px;color:#0033FF;text-decoration: underline;}
    a.small:hover{font-size:9px;color :#0033FF;text-decoration:none; }
    
    /* Copyright and bottom info */
    a.copyright:active,a.copyright:visited{ font-size: 10px; color:#000000;letter-spacing:1px; text-decoration: none;}
    a.copyright:hover { font-size:10px;color:#000000; text-decoration: none;}
    table.MarginLeft
    {
     margin-left: 2%;
     font-family: Verdana;
     font-size : 14px;
    }
    .heading31 {    text-align:center;
        margin-top:5px;
        padding:2px;
        position:absolute;
        top:91px;
        left: 101px;
        width: 605px;
        height: 71px;
        layer-background-color: #EFE3D6;
        border: 0px none #000000;
    }
    -->
    
    </style>
    <script>
    function processForm(el) {
        var validates = validateIt(el);
        if (validates) {
            updateForm(el);
        }
        return validates;
    }
    function validateIt(theForm)
    {
        //estimate home value
        if(theForm.home_value.selectedIndex==0)
          {
             alert("Select the estimated home value");
            theForm.home_value.focus();         
            return (false);
          }
          //Mortage Balance
        if(document.getElementById('abc').value==0 || document.getElementById('abc').value=="")
          {
            alert("Select the 1st mortgage balance");
            //theForm.preferred_number_type.focus();         
            return (false);
          }
          //additional cash
          if(theForm.additional_cash_needed.selectedIndex==0)
          {
             alert("Select Additional Cash Needed to Consolidate Debt");
            theForm.additional_cash_needed.focus();         
            return (false);
          }
          
          //annual_income
          if(theForm.annual_income.selectedIndex==0)
          {
            alert("Select Your Annual Income");
            theForm.annual_income.focus();         
            return (false);
          }
          //Occupation Status
         if(document.tafform.OccupationalStatus.selectedIndex==-1){
             alert("Please Select Your Occupational Status.");
            theForm.OccupationalStatus.focus();         
            return (false);
          }           
          //occupational_time
           if(theForm.occupational_time.selectedIndex==0)
          {
            alert("You missed the second last question: Please tell us how long you have been employed, self-employed, etc.");
            theForm.annual_income.focus();         
            return (false);
          }
          //check box yes no
          if(document.getElementById('checkhid').value=="")
          {
              alert("Have you filed bankruptcy in the past 7 years? Select yes or no");
              return false;
              
          } 
          return true;
          
    }
    function updateForm(form) {
        var homeValue = parseFloat(form.elements['home_value'].value);
        var mortgage = parseFloat(form.elements['1st_mortgage_balance'].value);
        var additionalCash = parseFloat(form.elements['additional_cash_needed'].value);
        form.elements.ltv.value = (additionalCash + mortgage) / homeValue;
    }
    </script>
    
    </head>
    
    <body   leftmargin="0" topmargin="0" >
    <div style=" width: 780px; height:650px; background-color:#EFE3D3;"></div>
    
    
    <!-- Top Banner --> 
    
    <span class="topimg">
    <table width="135" border="0" cellpadding="2" cellspacing="0" title="Click to Verify - This site chose VeriSign SSL for secure e-commerce and confidential communications.">
    <tr>
    <td width="135" align="center" valign="top"><script src=https://seal.verisign.com/getseal?host_name=www.mortgageshoppercanada.ca&size=S&use_flash=YES&use_transparent=YES&lang=en></script><br />
    <a href="http://www.verisign.com/ssl-certificate/" target="_blank"  style="color:#000000; text-decoration:none; font:bold 7px verdana,sans-serif; letter-spacing:.5px; text-align:center; margin:0px; padding:0px;">ABOUT SSL CERTIFICATES</a></td>
    </tr>
    </table>
    </span>  
    <div class="wname" ><img src="../../images/Canada-mortgage-flag.gif" alt="Mortgage Shopper Canada.ca" width="289" height="83"></div>
    <div class="wname1" ><img src="../../images/Canada-mortgage11.gif" alt="Mortgage Shopper Canada.ca" width="306" height="83"></div>
    <!--end of top banner --><!--end of top banner -->
    
    <!--main title-->
    <span class="heading3">
    <h2 class="maintitle2">Some <span class="maintitle3">Debt Consolidation Mortgage Contracts</span> in <span class="maintitle3">_propertyLocation_</span> Impose Heavy Penalties. Your Mortgage Agent knows About Them. <span class="maintitle3">Take Advantage of Your Free Consultation</span> and Ask Lots of Questions.</h2>
    </span>
    <!-- end of main title -->
    
    <table width="780" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td valign="top"><!--FORM CODE -->
    
     <IMG SRC="https://www.mortgageshoppercanada.ca/cgi-bin/form/lv.cgi?dcf2" width="1" height="1"> 
        <form action="https://www.mortgageshoppercanada.ca/cgi-bin/form/sendit.cgi" method="POST" name="tafform" ID="tafform" onsubmit="return validateIt(this);updateForm(this)">
    <input type="hidden" name="TypeOfLoan" value="debt consolidation">
    <input type="hidden" name="nextpage" value="consolidationform3.html">
    <input type="hidden" name="referpage" value="">
    <input type="hidden" name="form_id" value="dcf2">
    <input type="hidden" name="send_ar" value="">
    <input type="hidden" name="ar_email" value="">
    <input type="hidden" name="pickup_email" value="">
    <input type="hidden" name="refer_email" value="">
    <input type="hidden" name="sender_email" value="">
    <input type="hidden" name="admin_email" value="">
    <input type="hidden" name="entryonly" value="yes">
    <input type="hidden" name="add1" value="">
    <input type="hidden" name="add2" value="">
    <input type="hidden" name="add3" value="">
    <input type="hidden" name="pg1" value="">
    <input type="hidden" name="pg2" value="">
    <input type="hidden" name="pg3" value="">
    <input type="hidden" name="trig1" value="">
    <input type="hidden" name="trig2" value="">
    <input type="hidden" name="trig3" value="">
    <input type="hidden" name="kwy" value="_kwy_">
    <input type="hidden" name="startpage" value="_startpage_">
    <input type="hidden" name="propertyLocation" value="_propertyLocation_">
    <input type="hidden" name="PropertyDescription" value="_PropertyDescription_">
    <input type="hidden" name="CreditProfile" value="_CreditProfile_">
    <input type="hidden" name="from_email" value="_from_email_">
    <input type="hidden" name="first_name" value="_first_name_">
    <input type="hidden" name="ltv" value="">
    <input type="hidden" name="entryonly" value="yes">
    <input type="hidden" name="required" value="home_value~ESTIMATED home value,1st_mortgage_balance~1st mortgage balance,additional_cash_needed~Additional cash needed to consolidate debt?,annual_income~Gross annual income,OccupationalStatus~What is your occupational Status?,7Yearbankruptcy~Have you filed bankruptcy in the past 7 years? (yes no)">
        <div style="position:absolute; top:233px; left:100px;">
        <table width="500" height="366" border="0" align="left" cellpadding="0" cellspacing="0">
          <tr>
            <td height="366" background="../../images/box24.gif" style="background-repeat:no-repeat; width:auto;" valign="top">
            
    <br>  
    <table width="600" border="0" cellspacing="5" cellpadding="0" class="MarginLeft">
      <tr>  </tr>
      <tr>
        <td width="200" height="30" valign="top"><span class="style14">Estimated home value</span><br /></td>
        <td width="400" valign="top"><select name="home_value">
            <option value="">Select One</option>
            <option Value="50000">50,000</option>
            <option Value="55000">55,000</option>
            <option Value="60000">60,000</option>
            <option Value="65000">65,000</option>
            <option Value="70000">70,000</option>
            <option Value="75000">75,000</option>
            <option Value="80000">80,000</option>
            <option Value="85000">85,000</option>
            <option Value="90000">90,000</option>
            <option Value="95000">95,000</option>
            <option Value="100000">100,000</option>
            <option Value="105000">105,000</option>
            <option Value="110000">110,000</option>
            <option Value="115000">115,000</option>
            <option Value="120000">120,000</option>
            <option Value="125000">125,000</option>
            <option Value="130000">130,000</option>
            <option Value="135000">135,000</option>
            <option Value="140000">140,000</option>
            <option Value="145000">145,000</option>
            <option Value="150000">150,000</option>
            <option Value="155000">155,000</option>
            <option Value="160000">160,000</option>
            <option Value="165000">165,000</option>
            <option Value="170000">170,000</option>
            <option Value="175000">175,000</option>
            <option Value="180000">180,000</option>
            <option Value="185000">185,000</option>
            <option Value="190000">190,000</option>
            <option Value="195000">195,000</option>
            <option Value="200000">200,000</option>
            <option Value="210000">210,000</option>
            <option Value="220000">220,000</option>
            <option Value="230000">230,000</option>
            <option Value="240000">240,000</option>
            <option Value="250000">250,000</option>
            <option Value="260000">260,000</option>
            <option Value="270000">270,000</option>
            <option Value="280000">280,000</option>
            <option Value="290000">290,000</option>
            <option Value="300000">300,000</option>
            <option Value="310000">310,000</option>
            <option Value="320000">320,000</option>
            <option Value="330000">330,000</option>
            <option Value="340000">340,000</option>
            <option Value="350000">350,000</option>
            <option Value="360000">360,000</option>
            <option Value="370000">370,000</option>
            <option Value="380000">380,000</option>
            <option Value="390000">390,000</option>
            <option Value="400000">400,000</option>
            <option Value="420000">420,000</option>
            <option Value="440000">440,000</option>
            <option Value="460000">460,000</option>
            <option Value="480000">480,000</option>
            <option Value="500000">500,000</option>
            <option Value="520000">520,000</option>
            <option Value="540000">540,000</option>
            <option Value="560000">560,000</option>
            <option Value="580000">580,000</option>
            <option Value="600000">600,000</option>
            <option Value="620000">620,000</option>
            <option Value="640000">640,000</option>
            <option Value="660000">660,000</option>
            <option Value="680000">680,000</option>
            <option Value="700000">700,000</option>
            <option Value="720000">720,000</option>
            <option Value="740000">740,000</option>
            <option Value="760000">760,000</option>
            <option Value="780000">780,000</option>
            <option Value="800000">800,000</option>
            <option Value="820000">820,000</option>
            <option Value="840000">840,000</option>
            <option Value="860000">860,000</option>
            <option Value="880000">880,000</option>
            <option Value="900000">900,000</option>
            <option Value="920000">920,000</option>
            <option Value="940000">940,000</option>
            <option Value="960000">960,000</option>
            <option Value="980000">980,000</option>
            <option Value="1000001">Over 1,000,000</option>
        </select>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="OKestimation">(ok to estimate)</span> </td>
      </tr>
      <tr>
      
        <td height="30" valign="top"><input type="hidden" id="abc"><span class="style14">1st Mortgage Balance</span> </td>
        <td valign="top"><select name="1st_mortgage_balance" onchange="document.getElementById('abc').value=this.selectedIndex;">
          <option value="">Select One</option>
         <option Value="0">I don't have a 1st mortgage</option>
          <option Value="5001">5,000</option>
          <option Value="10000">10,000</option>
          <option Value="15000">15,000</option>
          <option Value="20000">20,000</option>
          <option Value="25000">25,000</option>
          <option Value="30000">30,000</option>
          <option Value="35000">35,000</option>
          <option Value="40000">40,000</option>
          <option Value="45000">45,000</option>
          <option Value="50000">50,000</option>
          <option Value="55000">55,000</option>
          <option Value="60000">60,000</option>
          <option Value="65000">65,000</option>
          <option Value="70000">70,000</option>
          <option Value="75000">75,000</option>
          <option Value="80000">80,000</option>
          <option Value="85000">85,000</option>
          <option Value="90000">90,000</option>
          <option Value="95000">95,000</option>
          <option Value="100000">100,000</option>
          <option Value="105000">105,000</option>
          <option Value="110000">110,000</option>
          <option Value="115000">115,000</option>
          <option Value="120000">120,000</option>
          <option Value="125000">125,000</option>
          <option Value="130000">130,000</option>
          <option Value="135000">135,000</option>
          <option Value="140000">140,000</option>
          <option Value="145000">145,000</option>
          <option Value="150000">150,000</option>
          <option Value="155000">155,000</option>
          <option Value="160000">160,000</option>
          <option Value="165000">165,000</option>
          <option Value="170000">170,000</option>
          <option Value="175000">175,000</option>
          <option Value="180000">180,000</option>
          <option Value="185000">185,000</option>
          <option Value="190000">190,000</option>
          <option Value="195000">195,000</option>
          <option Value="200000">200,000</option>
          <option Value="210000">210,000</option>
          <option Value="220000">220,000</option>
          <option Value="230000">230,000</option>
          <option Value="240000">240,000</option>
          <option Value="250000">250,000</option>
          <option Value="260000">260,000</option>
          <option Value="270000">270,000</option>
          <option Value="280000">280,000</option>
          <option Value="290000">290,000</option>
          <option Value="300000">300,000</option>
          <option Value="310000">310,000</option>
          <option Value="320000">320,000</option>
          <option Value="330000">330,000</option>
          <option Value="340000">340,000</option>
          <option Value="350000">350,000</option>
          <option Value="360000">360,000</option>
          <option Value="370000">370,000</option>
          <option Value="380000">380,000</option>
          <option Value="390000">390,000</option>
          <option Value="400000">400,000</option>
          <option Value="420000">420,000</option>
          <option Value="440000">440,000</option>
          <option Value="460000">460,000</option>
          <option Value="480000">480,000</option>
          <option Value="500000">500,000</option>
          <option Value="520000">520,000</option>
          <option Value="540000">540,000</option>
          <option Value="560000">560,000</option>
          <option Value="580000">580,000</option>
          <option Value="600000">600,000</option>
          <option Value="620000">620,000</option>
          <option Value="640000">640,000</option>
          <option Value="660000">660,000</option>
          <option Value="680000">680,000</option>
          <option Value="700000">700,000</option>
          <option Value="720000">720,000</option>
          <option Value="740000">740,000</option>
          <option Value="760000">760,000</option>
          <option Value="780000">780,000</option>
          <option Value="800000">800,000</option>
          <option Value="820000">820,000</option>
          <option Value="840000">840,000</option>
          <option Value="860000">860,000</option>
          <option Value="880000">880,000</option>
          <option Value="900000">900,000</option>
          <option Value="920000">920,000</option>
          <option Value="940000">940,000</option>
          <option Value="960000">960,000</option>
          <option Value="980000">980,000</option>
          <option Value="1000001">Over 1,000,000</option>
        </select>
          &nbsp;&nbsp;<span class="OKestimation">(Ok to estimate)</span> </td>
      </tr>
      <tr>
        <td height="30" valign="top"><span class="style14">Additional cash needed to consolidate debt?</span></td>
        <td valign="top"><select name="additional_cash_needed">
          <option value="">Select One</option>
          <option value="0">0</option>
    <option Value="5001">5,001</option>
    <option Value="10001">10,001</option>
    <option Value="15001">15,001</option>
    <option Value="20001">20,001</option>
    <option Value="25001">25,001</option>
    <option Value="30001">30,001</option>
    <option Value="35001">35,001</option>
    <option Value="40001">40,001</option>
    <option Value="45001">45,001</option>
    <option Value="50001">50,001</option>
    <option Value="55001">55,001</option>
    <option Value="60001">60,001</option>
    <option Value="65001">65,001</option>
    <option Value="70001">70,001</option>
    <option Value="75001">75,001</option>
    <option Value="80001">80,001</option>
    <option Value="85001">85,001</option>
    <option Value="90001">90,001</option>
    <option Value="95001">95,001</option>
    <option Value="100001">100,001</option>
    <option Value="105001">105,001</option>
    <option Value="110001">110,001</option>
    <option Value="115001">115,001</option>
    <option Value="120001">120,001</option>
    <option Value="125001">125,001</option>
    <option Value="130001">130,001</option>
    <option Value="135001">135,001</option>
    <option Value="140001">140,001</option>
    <option Value="145001">145,001</option>
    <option Value="150001">150,001</option>
    <option Value="155001">155,001</option>
    <option Value="160001">160,001</option>
    <option Value="165001">165,001</option>
    <option Value="170001">170,001</option>
    <option Value="175001">175,001</option>
    <option Value="180001">180,001</option>
    <option Value="185001">185,001</option>
    <option Value="190001">190,001</option>
    <option Value="195001">195,001</option>
    <option Value="200001">200,001</option>
    <option Value="210001">210,001</option>
    <option Value="220001">220,001</option>
    <option Value="230001">230,001</option>
    <option Value="240001">240,001</option>
    <option Value="250001">250,001</option>
    <option Value="260001">260,001</option>
    <option Value="270001">270,001</option>
    <option Value="280001">280,001</option>
    <option Value="290001">290,001</option>
    <option Value="300001">300,001</option>
    <option Value="310001">310,001</option>
    <option Value="320001">320,001</option>
    <option Value="330001">330,001</option>
    <option Value="340001">340,001</option>
    <option Value="350001">350,001</option>
    <option Value="360001">360,001</option>
    <option Value="370001">370,001</option>
    <option Value="380001">380,001</option>
    <option Value="390001">390,001</option>
    <option Value="400001">400,001</option>
    <option Value="420001">420,001</option>
    <option Value="440001">440,001</option>
    <option Value="460001">460,001</option>
    <option Value="480001">480,001</option>
    <option Value="500001">500,001</option>
    <option Value="520001">520,001</option>
    <option Value="540001">540,001</option>
    <option Value="560001">560,001</option>
    <option Value="580001">580,001</option>
    <option Value="600001">600,001</option>
    <option Value="620001">620,001</option>
    <option Value="640001">640,001</option>
    <option Value="660001">660,001</option>
    <option Value="680001">680,001</option>
    <option Value="700001">700,001</option>
    <option Value="720001">720,001</option>  
    <option Value="740000">740,000</option>
    <option Value="760000">760,000</option>
    <option Value="780000">780,000</option>
    <option Value="800000">800,000</option>
    <option Value="820000">820,000</option>
    <option Value="840000">840,000</option>
    <option Value="860000">860,000</option>
    <option Value="880000">880,000</option>
    <option Value="900000">900,000</option>
    <option Value="920000">920,000</option>
    <option Value="940000">940,000</option>
    <option Value="960000">960,000</option>
    <option Value="980000">980,000</option>
    <option Value="1000001">1,000,001</option>
        </select>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="OKestimation">(ok to estimate)</span></td>
      </tr>
      <tr>
        <td height="30" valign="top"><span class="style14">Gross annual income</span>
          </td>
        <td valign="top"><select name="annual_income">
          <option value="">Select One</option>
          <option value="Less than 30000">Less than 30,000</option>
          <option value="30 000 - 44 999">30,000 - 44,999</option>
          <option value="45 000 - 59 999">45,000 - 59,999</option>
          <option value="60 000 - 74 999">60,000 - 74,999</option>
          <option value="75 000 - 89 999">75,000 - 89,999</option>
          <option value="90 000 - 104 999">90,000 - 104,999</option>
          <option value="105 000 - 119 999">105,000 - 119,999</option>
          <option value="120 000 - 134 999">120,000 - 134,999</option>
          <option value="135 000 - 149 999">135,000 - 149,999</option>
          <option value="150 000 - 164 999">150,000 - 164,999</option>
          <option value="165 000 - 179 999">165,000 - 179,999</option>
          <option value="180 000 - 200 000">180,000 - 200,000</option>
          <option value="Over 200 000">Over 200,000</option>
        </select></td>
      </tr>
      <tr>
        <td height="50" align="left" valign="top"><span class="style14">What is your occupational Status?</span></td>
        <td valign="top"><select name="OccupationalStatus" size="4">
          <option value="Employed">Employed</option>
          <option value="Self Employed">Self-Employed</option>
          <option value="Retired">retired</option>
          <option value="Not employed">not employed</option>
        </select></td>
      </tr>
      <tr>
        <td height="60" align="left" valign="top"><span class="style14">How long have you been employed, self-employed, retired or not employed?</span></td>
        <td valign="middle">&nbsp;<select name="occupational_time">
          <option value="">Select One</option>
          <option value="probation">I'm on probation</option>
                        <option value="3 to 6 months">3 to 6 months</option>
                        <option value="7 to 12 months">7 to 12 months</option>
                        <option value="1+ to 2 years">1+ to 2 years</option>
                        <option value="2+ to 3 years">2+ to 3 years</option>
                        <option value="over 3 years">over 3 years</option>
        </select></td>
      </tr>
      <tr>
      
        <td height="35" valign="top"><input type="hidden" id="checkhid"><span class="style14">Have you filed bankruptcy in the past 7 years? </span></td>
        <td valign="top">   <input type="radio" name="7Yearbankruptcy" value="Yes" onclick="document.getElementById('checkhid').value=1" /> 
          Yes &nbsp;&nbsp;
      <input type="radio" name="7Yearbankruptcy" value="No" onclick="document.getElementById('checkhid').value=1">
          No</td></tr>
      <tr>
        <td height="40" valign="top">&nbsp;</td>
        <td valign="top"><input type="submit" name="submit" value="Next Page" style="background:#CC6666; color:#660000; font-weight:bold"  border="0" ></td>
      </tr>
    </table>
    
        
            </td>
          </tr>
        </table></div> </FORM>
    
    
              <!--FORM CODE ends -->
              </td>
      </tr>
    </table>
    <div class="othersteps">Step: 1 <span class="steps">2</span> 3 4</div>
    <p>&nbsp;</p>
    
    
    <p>&nbsp;</p>
    <div class="style16" style="text-align: center; position: absolute; left: 107px; top: 653px; width: 566px; height: 35px;"> &copy;Copyright 2006 - 2008  mortgageshoppercanada.ca   All Rights Reserved.</div>
    <p>&nbsp; </p>
    
    </body>
    </html>

    sheriff

  15. #15
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    The form is still submitting incorrectly.
    onsubmit="return validateIt(this);updateForm(this)"

    It should be
    onsubmit="return processForm(this)"
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  16. #16
    SitePoint Addict
    Join Date
    Dec 2001
    Location
    Vancouver, Canada
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    wow!!!

    Brilliant. It's working now.

    I can't thank you enough for your patience and willingness to help.

    Thank you!!

  17. #17
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    You're welcome.

    For your reference, it was Google Chrome's wonderful javascript console that alerted me to the code errors, and Firebug for Firefox which allowed me to see the post data.

    These tools made it a snap to figure out what was happening with things.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  18. #18
    SitePoint Addict
    Join Date
    Dec 2001
    Location
    Vancouver, Canada
    Posts
    352
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    HI Paul,

    I have 3 forms on my site that I have to add that calculator.

    I was able to successfully do it on 2 forms, but it's not working on the 3rd form.

    I've been at it for a few hours and I still can't find what's happening.

    I downloaded google chrome but I can't find that javascript console. I installed Firebug but I don't quite understand how to use this. There is no help button on that add on.

    The problem I'm encountering is the same as before. When I click submit, the value for LTV doesn't show up. The calculation doesn't occure and it's not added to the hidden field.

    The codes for the whole page is:

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Find the Lowest Home Equity Loan Rates Available in _propertyLocation_</title>
    <style type="text/css">
    <!--
    .topimg{text-align:left; position:absolute;padding:2px; left: 25px; top: 11px; width: 193px; height: 82px; background-color: #EFE3D6; layer-background-color: #EFE3D6; border: 0px none #000000;}
    .wname { position:absolute; top:0px;left:488px; }
    .wname1 { position:absolute; top:0px;left:184px; }
    strong.top {font-size:24px; color:#B8816D; font-weight:bold}
    .heading3{
        text-align:left;
        margin-top:5px;
        padding:2px;
        position:absolute;
        top:95px;
        left: 46px;
        width: 706px;
        height: 71px;
        layer-background-color: #EFE3D6;
        border: 0px none #000000;
    }
    
    .maintitle2,h1,h2    {font-weight: bold; font-size: 18px; font-family: "tahoma", Trebuchet MS,Verdana, Arial, Helvetica, sans-serif; text-decoration: none; line-height : 150%; color:#000000;}
    
    .maintitle3,h1,h2    {font-weight: bold; font-size: 18px; font-family: "tahoma", Trebuchet MS,Verdana, Arial, Helvetica, sans-serif; text-decoration: none; line-height : 120%; color:#7B1200;}
    
    .othersteps {
        text-align:left;
        margin-top:5px;
        padding:1px;
        position:absolute;
        top:309px;
        left: 599px;
        width: 80px;
        height: 50px;
        layer-background-color: #EFE3D6;
        border: 0px none #000000;
        font-weight: bold;
        font-size: 12px;
        font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif;
        text-decoration: none;
        line-height : 120%;
        color:#7B1200;
    }
    .steps {font-size: 20px; text-decoration: underline;}
    .OKestimation {color: #666666}
    body {
        background-color:#EFEFEF;
                    margin-left: 0px;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
    }
    .style14 {
        font-size: 12px;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        color: #818181;
        font-weight: bold;
    }
    a:link,a:active,a:visited{ font-size: 11px; letter-spacing: 1px;color : #000000;text-decoration:underline; }
    a:link:hover{ font-size : 11px; letter-spacing: 1px;color : #000000;text-decoration:none; }
    
    a.calc:active,a.calc:visited{ font-size:14px;  letter-spacing: 1px;color : #000000;text-decoration: underline;}
    a.calc:hover{font-size:14px; letter-spacing: 1px;color :#818181;text-decoration: underline; }
    
    a.small:active,a.small:visited{ font-size:9px;color:#0033FF;text-decoration: underline;}
    a.small:hover{font-size:9px;color :#0033FF;text-decoration:none; }
    
    /* Copyright and bottom info */
    a.copyright:active,a.copyright:visited{ font-size: 10px; color:#000000;letter-spacing:1px; text-decoration: none;}
    a.copyright:hover { font-size:10px;color:#000000; text-decoration: none;}
    a.reg {font-size:12px;  letter-spacing: 1px;color : #3333FF; text-decoration: underline;}
    a.reg:active,a.reg:visited { font-size:12px;  letter-spacing: 1px;color : #3333FF;text-decoration: underline;}
    a.reg:hover {font-size:12px;  letter-spacing: 1px;color : #3333FF;text-decoration: none;}
    table.MarginLeft
    {
     margin-left: 2%;
     font-family: Verdana;
     font-size : 14px;
    }
    .style17 {font-family: Verdana, Arial, Helvetica, sans-serif}
    
    -->
    </style>
    <script>
    function processForm(el) {
        var validates = validateIt(el);
        if (validates) {
            updateForm(el);
        }
        return validates;
    }
    function validateIt(theForm)
    {
        
        
        if(theForm.Loan_or_creditline.selectedIndex==-1)
        {
            alert("Enter whether you prefer a loan or a line of credit?");
            theForm.Loan_or_creditline.focus();         
            return false;
        }
        
        if(theForm.home_equity_purpose.selectedIndex==-1)
        {
            alert("What is the purpose of the home equity loan?");
            theForm.home_equity_purpose.focus();         
            return (false);
        }
        if(theForm.property_use.selectedIndex==-1)
        {
            alert("Select the Property Use");
            theForm.property_use.focus();         
            return (false);
        }
        //estimate home value
        if(theForm.home_value.selectedIndex==0)
        {
            alert("Select Estimate Home Value");
            theForm.home_value.focus();         
            return (false);
        }
        //select mortgage balance
        if(document.getElementById('st_mortgage_balance').value=="" || document.getElementById('st_mortgage_balance').value==0)
        {
            alert("Select 1st Mortgage Balance");
            //theForm.st_mortgage_balance.focus();         
            return (false);
        }
        //mortgage balance value
        if(document.getElementById('st_mortgage_balance').value=="")
        {
            alert("Select 1st Mortgage Balance");
            theForm.st_mortgage_balance.focus();         
            return (false);
        }
        
        
        //mortgage balance value
        if(document.getElementById('txt_Mortgage_monthly_payment').value=="")
        {
            alert("Enter Mortgage Monthly Payment");
            document.getElementById('txt_Mortgage_monthly_payment').focus();         
            return (false);
        }
        
        //mortgage type
        if(document.getElementById('mortgage_type').selectedIndex==-1)
        {
            alert("Select the type of rate");
            document.getElementById('mortgage_type').focus();         
            return (false);
        }
      //additional cash
          if(theForm.additional_cash_needed.selectedIndex==0)
          {
             alert("Select Additional Cash Needed to Consolidate Debt");
            theForm.additional_cash_needed.focus();         
            return (false);
          }
    //check box yes no
          if(document.getElementById('mortgageinsurance').value=="")
          {
              alert("Would you like a mortgage insurance quote? Please select yes or no");
              return false;
              
          } 
    }
        //function check numeric
        function validate(e)
        {
            
        if(navigator.appName == "Microsoft Internet Explorer")
        {
    
        if ( ( (e.keyCode < 48) && (e.keyCode != 46) ) || (e.keyCode > 57)) 
            {
                alert('Enter numeric values only.');
                
                return  false;    
            }
        }
        else
       {
            if ( ( (e.charCode < 48) && (e.charCode != 46) && (e.charCode != 0)) || (e.charCode > 57) ) 
            {
                alert('Enter numeric values only.');
                return  false;                               
            }    
       }
        
        }//end of function
    function updateForm(form) {
        var homeValue = parseFloat(form.elements['home_value'].value);
        var mortgage = parseFloat(form.elements['1st_mortgage_balance'].value);
        var additionalCash = parseFloat(form.elements['additional_cash_needed'].value);
        form.elements.ltv.value = (additionalCash + mortgage) / homeValue * 100;
    }
    </script>
    <SCRIPT language=JavaScript>
    <!--
    function openWin(theURL,winName,dimensions) {
    open(theURL,winName,dimensions)
    }
    //-->
    </SCRIPT>
    
    
    </head>
    
    
    <body   leftmargin="0" topmargin="0" >
    <div style=" width: 780px; height:870px; background-color:#EFE3D3;"></div>
    
    
    <!-- Top Banner --> 
    </div>
    <span class="topimg">
    <table width="135" border="0" cellpadding="2" cellspacing="0" title="Click to Verify - This site chose VeriSign SSL for secure e-commerce and confidential communications.">
    <tr>
    <td width="135" align="center" valign="top"><script src=https://seal.verisign.com/getseal?host_name=www.mortgageshoppercanada.ca&size=S&use_flash=YES&use_transparent=YES&lang=en></script><br />
    <a href="http://www.verisign.com/ssl-certificate/" target="_blank"  style="color:#000000; text-decoration:none; font:bold 7px verdana,sans-serif; letter-spacing:.5px; text-align:center; margin:0px; padding:0px;">ABOUT SSL CERTIFICATES</a></td>
    </tr>
    </table>
    </span>  
    <div class="wname" ><img src="../../images/Canada-mortgage-flag.gif" alt="Mortgage Shopper Canada.ca" width="289" height="83"></div>
    <div class="wname1" ><img src="../../images/Canada-mortgage11.gif" alt="Mortgage Shopper Canada.ca" width="306" height="83"></div>
    <!--end of top banner --><!--end of top banner -->
    
    
    <span class="heading3"> 
      
    <span class="maintitle3">Important Note to Residence of _propertyLocation_ -</span> <span class="style17">Home Equity Loans and Secured Lines of Credit have become quite sophisticated and may differ considerably between lenders and financial institutions.  
    <br />
    <br />
    For example, A line of credit can be subdivided into several parts with different  rates and terms.  That alone can save you 1000's of Dollars in interest rates.  
    You can also have the benefit of BOTH  loans.<br />
    <br />
    Ask our mortgage specialist lots of questions and make an informed decision.  You'll be glad you did! </span></span>    
        
        
        
    <table width="780" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td valign="top">    
    <!--FORM CODE -->
    <IMG SRC="https://www.mortgageshoppercanada.ca/cgi-bin/form/lv.cgi?hef2" width="1" height="1"> 
    
        <form action="https://www.mortgageshoppercanada.ca/cgi-bin/form/sendit.cgi" method="POST" name="tafform" ID="tafform" onsubmit="return processForm(this)">
    <input type="hidden" name="TypeOfLoan" value="home equity">
    <input type="hidden" name="nextpage" value="equityform3.html">
    <input type="hidden" name="referpage" value="">
    <input type="hidden" name="form_id" value="hef2">
    <input type="hidden" name="send_ar" value="">
    <input type="hidden" name="ar_email" value="">
    <input type="hidden" name="pickup_email" value="">
    <input type="hidden" name="refer_email" value="">
    <input type="hidden" name="sender_email" value="">
    <input type="hidden" name="admin_email" value="">
    <input type="hidden" name="entryonly" value="yes">
    <input type="hidden" name="add1" value="">
    <input type="hidden" name="add2" value="">
    <input type="hidden" name="add3" value="">
    <input type="hidden" name="pg1" value="">
    <input type="hidden" name="pg2" value="">
    <input type="hidden" name="pg3" value="">
    <input type="hidden" name="trig1" value="">
    <input type="hidden" name="trig2" value="">
    <input type="hidden" name="trig3" value="">
    <input type="hidden" name="kwy" value="_kwy_">
    <input type="hidden" name="startpage" value="_startpage_">
    <input type="hidden" name="propertyLocation" value="_propertyLocation_">
    <input type="hidden" name="PropertyDescription" value="_PropertyDescription_">
    <input type="hidden" name="CreditProfile" value="_CreditProfile_">
    <input type="hidden" name="from_email" value="_from_email_">
    <input type="hidden" name="first_name" value="_first_name_">
    <input type="hidden" name="ltv" value="">
    <input type="hidden" name="entryonly" value="yes">
    <input type="hidden" name="required" value="Loan_or_creditline~Do you prefer a loan or a line of credit?,home_equity_purpose~Purpose of the equity loan,property_use~Property Use (primary residence or second/vacation home or rental/investment property),home_value~ESTIMATED home value,1st_mortgage_balance~1st mortgage balance,1stMortgage_monthly_payment~1st mortgage monthly payment,1stmortgage_type_rate~1st mortgage type rate (fixed or adjustable or don't know),additional_cash_needed~How much additional cash do you wish to borrow?">
            <div style="position:absolute; top:330px; left:79px;">
            <table width="640" height="550" border="0" align="left" cellpadding="0" cellspacing="0" >
                  <tr>
                    <td height="376" background="../../images/box25.gif" style="background-repeat:no-repeat; width:auto;" valign="top">
        
    <br>
    <table width="600" border="0" cellspacing="5" cellpadding="0" class="MarginLeft">
      <tr>
        <td height="80"><span class="style14">Do you prefer a loan or a <a 
          onMouseOver="window.status='Click to see a larger version'; return true" 
          onMouseOut="window.status='';return true" 
          href="javascript:openWin('http://www.mortgageshoppercanada.ca/equitycreditwindow.php','win1','width=500,height=493,top=105,left=330,scrollbars=yes')" class="reg">line of credit</a>?</span></td>
        <td><select name="Loan_or_creditline" size="4">
          <option value="Loan or 2nd mortgage">Loan or 2nd mortgage</option>
          <option value="Line of credit">Line of credit</option>
          <option value="Will consider both options">Will consider both options</option>
          <option value="Do not know">Don't know</option>
        </select></td>
      </tr>
      <tr>
        <td width="266" height="60"><span class="style14">What's the purpose of the home equity loan?
    </span></td>
        <td width="319"><select name="home_equity_purpose" size="3">
          <option value="debt consolidation">Debt consolidation</option>
          <option value="home improvement">Home improvement</option>
          <option value="need cash">Need cash</option>
        </select></td>
      </tr>
      <tr>
        <td height="60"><span class="style14">Select Property use</span></td>
        <td><select name="property_use" size="3">
            <option value="primary residence">Primary residence</option>
            <option value="second or vacation home">Second or vacation home</option>
            <option value="rental or investment property">Rental or investment property</option>
          </select></td>
      </tr>
      <tr>
        <td height="25"><span class="style14">Estimated home value</span><br /></td>
        <td>
            <select name="home_value">
            <option value="">Select One</option>
            <option Value="50000">50,000</option>
            <option Value="55000">55,000</option>
            <option Value="60000">60,000</option>
            <option Value="65000">65,000</option>
            <option Value="70000">70,000</option>
            <option Value="75000">75,000</option>
            <option Value="80000">80,000</option>
            <option Value="85000">85,000</option>
            <option Value="90000">90,000</option>
            <option Value="95000">95,000</option>
            <option Value="100000">100,000</option>
            <option Value="105000">105,000</option>
            <option Value="110000">110,000</option>
            <option Value="115000">115,000</option>
            <option Value="120000">120,000</option>
            <option Value="125000">125,000</option>
            <option Value="130000">130,000</option>
            <option Value="135000">135,000</option>
            <option Value="140000">140,000</option>
            <option Value="145000">145,000</option>
            <option Value="150000">150,000</option>
            <option Value="155000">155,000</option>
            <option Value="160000">160,000</option>
            <option Value="165000">165,000</option>
            <option Value="170000">170,000</option>
            <option Value="175000">175,000</option>
            <option Value="180000">180,000</option>
            <option Value="185000">185,000</option>
            <option Value="190000">190,000</option>
            <option Value="195000">195,000</option>
            <option Value="200000">200,000</option>
            <option Value="210000">210,000</option>
            <option Value="220000">220,000</option>
            <option Value="230000">230,000</option>
            <option Value="240000">240,000</option>
            <option Value="250000">250,000</option>
            <option Value="260000">260,000</option>
            <option Value="270000">270,000</option>
            <option Value="280000">280,000</option>
            <option Value="290000">290,000</option>
            <option Value="300000">300,000</option>
            <option Value="310000">310,000</option>
            <option Value="320000">320,000</option>
            <option Value="330000">330,000</option>
            <option Value="340000">340,000</option>
            <option Value="350000">350,000</option>
            <option Value="360000">360,000</option>
            <option Value="370000">370,000</option>
            <option Value="380000">380,000</option>
            <option Value="390000">390,000</option>
            <option Value="400000">400,000</option>
            <option Value="420000">420,000</option>
            <option Value="440000">440,000</option>
            <option Value="460000">460,000</option>
            <option Value="480000">480,000</option>
            <option Value="500000">500,000</option>
            <option Value="520000">520,000</option>
            <option Value="540000">540,000</option>
            <option Value="560000">560,000</option>
            <option Value="580000">580,000</option>
            <option Value="600000">600,000</option>
            <option Value="620000">620,000</option>
            <option Value="640000">640,000</option>
            <option Value="660000">660,000</option>
            <option Value="680000">680,000</option>
            <option Value="700000">700,000</option>
            <option Value="720000">720,000</option>
            <option Value="740000">740,000</option>
            <option Value="760000">760,000</option>
            <option Value="780000">780,000</option>
            <option Value="800000">800,000</option>
            <option Value="820000">820,000</option>
            <option Value="840000">840,000</option>
            <option Value="860000">860,000</option>
            <option Value="880000">880,000</option>
            <option Value="900000">900,000</option>
            <option Value="920000">920,000</option>
            <option Value="940000">940,000</option>
            <option Value="960000">960,000</option>
            <option Value="980000">980,000</option>
            <option Value="1000001">Over 1,000,000</option>
        </select>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="OKestimation">(ok to estimate)</span> </td>
      </tr>
      <tr>
        <td height="25"><input type="hidden" id="st_mortgage_balance"><span class="style14">1st mortgage balance </span></td>
         
        <td><select name="1st_mortgage_balance" onchange="document.getElementById('st_mortgage_balance').value=this.selectedIndex;">
          <option value="">Select One</option>
         <option Value="0">0</option>
          <option Value="5001">5,000</option>
          <option Value="10000">10,000</option>
          <option Value="15000">15,000</option>
          <option Value="20000">20,000</option>
          <option Value="25000">25,000</option>
          <option Value="30000">30,000</option>
          <option Value="35000">35,000</option>
          <option Value="40000">40,000</option>
          <option Value="45000">45,000</option>
          <option Value="50000">50,000</option>
          <option Value="55000">55,000</option>
          <option Value="60000">60,000</option>
          <option Value="65000">65,000</option>
          <option Value="70000">70,000</option>
          <option Value="75000">75,000</option>
          <option Value="80000">80,000</option>
          <option Value="85000">85,000</option>
          <option Value="90000">90,000</option>
          <option Value="95000">95,000</option>
          <option Value="100000">100,000</option>
          <option Value="105000">105,000</option>
          <option Value="110000">110,000</option>
          <option Value="115000">115,000</option>
          <option Value="120000">120,000</option>
          <option Value="125000">125,000</option>
          <option Value="130000">130,000</option>
          <option Value="135000">135,000</option>
          <option Value="140000">140,000</option>
          <option Value="145000">145,000</option>
          <option Value="150000">150,000</option>
          <option Value="155000">155,000</option>
          <option Value="160000">160,000</option>
          <option Value="165000">165,000</option>
          <option Value="170000">170,000</option>
          <option Value="175000">175,000</option>
          <option Value="180000">180,000</option>
          <option Value="185000">185,000</option>
          <option Value="190000">190,000</option>
          <option Value="195000">195,000</option>
          <option Value="200000">200,000</option>
          <option Value="210000">210,000</option>
          <option Value="220000">220,000</option>
          <option Value="230000">230,000</option>
          <option Value="240000">240,000</option>
          <option Value="250000">250,000</option>
          <option Value="260000">260,000</option>
          <option Value="270000">270,000</option>
          <option Value="280000">280,000</option>
          <option Value="290000">290,000</option>
          <option Value="300000">300,000</option>
          <option Value="310000">310,000</option>
          <option Value="320000">320,000</option>
          <option Value="330000">330,000</option>
          <option Value="340000">340,000</option>
          <option Value="350000">350,000</option>
          <option Value="360000">360,000</option>
          <option Value="370000">370,000</option>
          <option Value="380000">380,000</option>
          <option Value="390000">390,000</option>
          <option Value="400000">400,000</option>
          <option Value="420000">420,000</option>
          <option Value="440000">440,000</option>
          <option Value="460000">460,000</option>
          <option Value="480000">480,000</option>
          <option Value="500000">500,000</option>
          <option Value="520000">520,000</option>
          <option Value="540000">540,000</option>
          <option Value="560000">560,000</option>
          <option Value="580000">580,000</option>
          <option Value="600000">600,000</option>
          <option Value="620000">620,000</option>
          <option Value="640000">640,000</option>
          <option Value="660000">660,000</option>
          <option Value="680000">680,000</option>
          <option Value="700000">700,000</option>
          <option Value="720000">720,000</option>
          <option Value="740000">740,000</option>
          <option Value="760000">760,000</option>
          <option Value="780000">780,000</option>
          <option Value="800000">800,000</option>
          <option Value="820000">820,000</option>
          <option Value="840000">840,000</option>
          <option Value="860000">860,000</option>
          <option Value="880000">880,000</option>
          <option Value="900000">900,000</option>
          <option Value="920000">920,000</option>
          <option Value="940000">940,000</option>
          <option Value="960000">960,000</option>
          <option Value="980000">980,000</option>
          <option Value="1000001">Over 1,000,000</option>
        </select>
          <span class="OKestimation">(ok to estimate)</span> </td>
      </tr>
      <tr>
        <td height="25"><span class="style14">1st mortgage monthly payment</span>   </td>
        <td>$
          <input name="1stMortgage_monthly_payment" id="txt_Mortgage_monthly_payment" type="text" value="" size="5" maxlength="6" onkeypress="return validate(event)" />
          .00</td>
      </tr>
      <tr>
        <td height="60"><span class="style14">Type of rate</span></td>
        <td><select name="1stmortgage_type_rate" id="mortgage_type" size="3">
          <option value="fixed">Fixed</option>
          <option value="adjustable">Adjustable</option>
          <option value="Do not know">don't know</option>
        </select></td>
      </tr>
      <tr>
        <td height="40"><span class="style14">How much additional cash do you wish to borrow? </span>   </td>
        <td>$
         <select name="additional_cash_needed">
          <option value="">Select One</option>
          <option value="0">0</option>
    <option Value="5001">5,001</option>
    <option Value="10001">10,001</option>
    <option Value="15001">15,001</option>
    <option Value="20001">20,001</option>
    <option Value="25001">25,001</option>
    <option Value="30001">30,001</option>
    <option Value="35001">35,001</option>
    <option Value="40001">40,001</option>
    <option Value="45001">45,001</option>
    <option Value="50001">50,001</option>
    <option Value="55001">55,001</option>
    <option Value="60001">60,001</option>
    <option Value="65001">65,001</option>
    <option Value="70001">70,001</option>
    <option Value="75001">75,001</option>
    <option Value="80001">80,001</option>
    <option Value="85001">85,001</option>
    <option Value="90001">90,001</option>
    <option Value="95001">95,001</option>
    <option Value="100001">100,001</option>
    <option Value="105001">105,001</option>
    <option Value="110001">110,001</option>
    <option Value="115001">115,001</option>
    <option Value="120001">120,001</option>
    <option Value="125001">125,001</option>
    <option Value="130001">130,001</option>
    <option Value="135001">135,001</option>
    <option Value="140001">140,001</option>
    <option Value="145001">145,001</option>
    <option Value="150001">150,001</option>
    <option Value="155001">155,001</option>
    <option Value="160001">160,001</option>
    <option Value="165001">165,001</option>
    <option Value="170001">170,001</option>
    <option Value="175001">175,001</option>
    <option Value="180001">180,001</option>
    <option Value="185001">185,001</option>
    <option Value="190001">190,001</option>
    <option Value="195001">195,001</option>
    <option Value="200001">200,001</option>
    <option Value="210001">210,001</option>
    <option Value="220001">220,001</option>
    <option Value="230001">230,001</option>
    <option Value="240001">240,001</option>
    <option Value="250001">250,001</option>
    <option Value="260001">260,001</option>
    <option Value="270001">270,001</option>
    <option Value="280001">280,001</option>
    <option Value="290001">290,001</option>
    <option Value="300001">300,001</option>
    <option Value="310001">310,001</option>
    <option Value="320001">320,001</option>
    <option Value="330001">330,001</option>
    <option Value="340001">340,001</option>
    <option Value="350001">350,001</option>
    <option Value="360001">360,001</option>
    <option Value="370001">370,001</option>
    <option Value="380001">380,001</option>
    <option Value="390001">390,001</option>
    <option Value="400001">400,001</option>
    <option Value="420001">420,001</option>
    <option Value="440001">440,001</option>
    <option Value="460001">460,001</option>
    <option Value="480001">480,001</option>
    <option Value="500001">500,001</option>
    <option Value="520001">520,001</option>
    <option Value="540001">540,001</option>
    <option Value="560001">560,001</option>
    <option Value="580001">580,001</option>
    <option Value="600001">600,001</option>
    <option Value="620001">620,001</option>
    <option Value="640001">640,001</option>
    <option Value="660001">660,001</option>
    <option Value="680001">680,001</option>
    <option Value="700001">700,001</option>
    <option Value="720001">720,001</option>  
    <option Value="740000">740,000</option>
    <option Value="760000">760,000</option>
    <option Value="780000">780,000</option>
    <option Value="800000">800,000</option>
    <option Value="820000">820,000</option>
    <option Value="840000">840,000</option>
    <option Value="860000">860,000</option>
    <option Value="880000">880,000</option>
    <option Value="900000">900,000</option>
    <option Value="920000">920,000</option>
    <option Value="940000">940,000</option>
    <option Value="960000">960,000</option>
    <option Value="980000">980,000</option>
    <option Value="1000001">1,000,001</option>
        </select>
          .00 <span class="OKestimation">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(ok to estimate)</span> </td>
      </tr>
      <tr>
      
        <td height="30"><span class="style14"><input type="hidden" id="mortgageinsurance" />Would you like a mortgage insurance quote?</span></td>
        <td><input type="radio" name="mortgageinsurance" value="MortgageInsurance" onclick="document.getElementById('mortgageinsurance').value=1"/>
    Yes &nbsp;&nbsp;
          <input type="radio" name="mortgageinsurance" value="No" onclick="document.getElementById('mortgageinsurance').value=1"/>
    No</td>
      </tr>
      <tr>
        <td height="30">&nbsp;</td>
        <td valign="bottom"><input type="submit" name="submit" value="Next Page" style="background:#CC6666; color:#660000; font-weight:bold"></td>
      </tr>
    </table>
    
                  </td>
                  </tr>
        </table></div></form><!--FORM CODE ends --></td>
      </tr>
    </table>
    </form>
    <div class="othersteps">Step: 1 <span class="steps">2</span> 3 4</div>
    <p>&nbsp;</p>
    
    
    <p>&nbsp;</p>
    
    <div style="text-align: center; position: absolute; left: 127px; top: 870px; width: 566px; height: 35px;"> &copy;Copyright 2006 - 2008  mortgageshoppercanada.ca   All Rights Reserved.</div>
    <p>&nbsp; </p>
    
    </body>
    </html>

  19. #19
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    Your validateIt function fails to return a value, and so returns undefined when everything passes validation. Place a return true at the end of the function and you'll be right.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •