Hello, and thanks in advance.
I have the following problem. I have a validation script as such (the function is actually longer, however, I have only included the part of script and form that is giving me the problem)
<script language="JavaScript">
function validateForm(thisform){
if(thisform.SecondMortgage[0].checked==true){
{
if(thisform.SecondMortgageBalance.value=='')
alert('You must enter your current second mortgage balance.');
return false;
}
}
if(thisform.SecondMortgage[0].checked==true){
{
if(thisform.SecondMortgagePayment.value=='')
alert('You must enter your current second mortgage payment.');
return false;
}
}
}
</script>
<form method="POST" action="refinanceform_action.cfm" name="newhome_form" onSubmit="return validateForm(this)">
<table width="98%" cellpadding="0" cellspacing="1" bgcolor="000066">
<tr>
<td><table width="100%" cellpadding="6" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="253" align="right" class="darkBlue8pt">Do
you have a second mortgage?</td>
<td width="1"> </td>
<td width="210"><table border="0" cellpadding="0" cellspacing="0" class="darkBlue10pt">
<tr>
<td width="55"><input type="radio" value="1" name="SecondMortgage" CHECKED>
Yes</td>
<td><input type="radio" value="0" name="SecondMortgage">
No</td>
</tr>
</table></td>
</tr>
<tr>
<td align="right" class="darkBlue8pt">If you
have a 2nd mortgage, what is the current
balance?</td>
<td> </td>
<td><span class="darkBlue8pt">$</span>
<input type="text" size="8" maxlength="8" name="SecondMortgageBalance" value="">
</td>
</tr>
<tr>
<td align="right" class="darkBlue8pt">If you
have a 2nd mortgage, how much is the monthly
payment?</td>
<td> </td>
<td><span class="darkBlue8pt">$</span>
<input type="text" size="8" maxlength="8" name="SecondMortgagePayment" value="">
</td>
</tr>
<tr align="center">
<td colspan="3" bgcolor="#000066" class="darkBlue8pt"><font color="#FFFFFF">The
following questions must be answered by
all applicants.</font></td>
</tr>
<tr>
<td colspan="3" align="right" class="darkBlue8pt"><img src="images/blue_rule.gif" width="100%" height="1"></td>
</tr>
<tr>
<td colspan="3" align="right" class="darkBlue8pt"> </td>
</tr>
<tr>
<td colspan="3" align="right" class="darkBlue8pt"><img src="images/blue_rule.gif" width="100%" height="1"></td>
</tr>
<tr align="center">
<td colspan="3" class="darkBlue8pt"> <input name="Submit" type="submit" class="Button2" value="Submit">
<input name="Submit2" type="reset" class="Button2" value="Reset"></td>
</tr>
<tr>
<td align="right" class="darkBlue8pt"> </td>
<td> </td>
<td> </td>
</tr>
</table></td>
</tr>
</table>
</form>
When I run this, I get no error. However, if I fill in the value in the first form field and try to submit, the page WILL NOT submit... just hangs there. Any ideas?
Thanks!
RR
