function search ( form )
{

 
         if (form.LoanAmount.value == "") {
     alert( "Please select the amount you want to borrow." );
       form.LoanAmount.focus();
        return false ;
    }
       
       
    else if (form.Type.value == "") {
     alert( "Please select whether or not you are a homeowner." );
       form.Type.focus();
        return false ;
    }
       

       


    
    // ** END **
	return true ;
}




       
function validated(string) {
    for (var i=0, output='', valid="1234567890"; i<string.length; i++)
       if (valid.indexOf(string.charAt(i)) != -1)
          output += string.charAt(i)
    return output;
} 

function Search(){
document.compare.MaxLoan.value = '>='+document.compare.LoanAmount.value;
document.compare.MinLoan.value = '<='+document.compare.LoanAmount.value;
}
