function checkVals() { if(document.rates.Amount.value.length==0) { alert("Please enter a loan amount."); return false; } if(document.getElementById('state').selectedIndex == 0){ alert("Please select a state to continue.");return false;} else if(isNaN(document.rates.Amount.value.replace(',',''))==true) { alert("Please enter a numeric loan amount.");return false; } else { return true; } } document.write("");document.write("
");document.write("");document.write("
| |||||||||||||||||||