html {
font-family:’Trebuchet MS’, sans-serif;
font-size:12px;
}
body {margin:0;padding:0}

function search() {
if (isValidSearch()) {
// “/flx_test.html” is an example file name and path.
// Please replace with the path and name of the file containing the
// Advanced Embed Code on your site.
var url = ‘/flx_test.html?id=481bc74a1bb02&Location=’+ge(‘Location’).value;
if (ge(‘MinBeds’).value != “”) url += ‘&MinBeds=’+ge(‘MinBeds’).value;
if (ge(‘MinBaths’).value != “”) url += ‘&MinBaths=’+ge(‘MinBaths’).value;
if (ge(‘MinAVM’).value != “”) url += ‘&MinAVM=’+ge(‘MinAVM’).value;
if (ge(‘MaxAVM’).value != “”) url += ‘&MaxAVM=’+ge(‘MaxAVM’).value;
if (ge(‘MinSF’).value != “”) url += ‘&MinSF=’+ge(‘MinSF’).value;
url += “&Type=”;
var add_comma = false;

if(ge(‘bo-filter’).checked) url += “Bank Owned,”;
if(ge(‘au-filter’).checked) url += “Auction,”;
if(ge(‘pf-filter’).checked) url += “Preforeclosure”;

window.open(url);
} else {
searchError();
}
}
function isZipCode(code){
var r = /^d{5}([-+])*(d{4})?$/
var zip = code.search(r);
return (zip == -1) ? false : true;
}

function isAlphanumeric(s)
{
var r = /^[a-zA-Z0-9]+$/
return r.test(s);
}

function isAlphabetic(s)
{
var r = /^[a-zA-Z ]+$/
return r.test(s);
}

function isInteger(s)
{
var r = /^d+$/
return r.test(s)
}

function hasComma(s)
{
var r = /,/;
return r.test(s);
}

function ge(el) {return document.getElementById(el)}

function isValidSearch()
{
var s = ge(‘Location’).value;
if (s == ‘California city or zip’ || s == ”)
return false;
if (isInteger(s)) {
if (isZipCode(s))
return true;
return false;
}
if (isAlphabetic(s))
return true;
if (isAlphanumeric(s))
return false;
if (hasComma(s)) {
var c = s.split(‘,’);
if (isZipCode($.trim(c[1])))
return true;
return false;
}

return false;
}
function searchError()
{
return alert(“Invalid search location. Please try again.”);
}
function resetSearch()
{
if (ge(‘Location’).value == “California city or zip”)
ge(‘Location’).value = “”;
}

Foreclosure Search

Type:

Value:

Min 50K 100K 150K 200K 250K 300K 400K 500K 750K 1M Max 100K 150K 200K 250K 300K 400K 500K 750K 1M 2M

Beds:

Any 1+ 2+ 3+ 4+

Baths:

Any 1+ 2+ 3+ 4+

Sq. Ft.:

Any 250+ 500+ 1000+ 1250+ 1500+ 1750+ 2000+ 2500+ 3000+ 4000+

Powered by ForeclosureRadar