var searchType
searchType = "Square Footage";

function chgTitle(p) 
{
chg.innerHTML=(p);
}
function chgSq(s) 
{
squareornot.innerHTML=(s);
}
function setOptions(o) 
{ 
var sqft = document.searchf.sqft; 
sqft.options.length = 0; 
if (o == "7") 
{ 
sqft.options[sqft.options.length] = new Option('Bachelor'); 
sqft.options[sqft.options.length] = new Option('1 Bedroom'); 
sqft.options[sqft.options.length] = new Option('2 Bedroom'); 
sqft.options[sqft.options.length] = new Option('House'); 
chgTitle("Size:");
chgSq("");
} 
if (o != "7") 
{ 
sqft.options[sqft.options.length] = new Option('Less than 1500', "&lt; 1500"); 
sqft.options[sqft.options.length] = new Option('1500 to 3000', "BETWEEN 1500 and 3000"); 
sqft.options[sqft.options.length] = new Option('Over 3000', "&gt; 3000"); 
sqft.options[sqft.options.length] = new Option('All', "all"); 
chgTitle("Square Footage:");
chgSq("sq. ft.");
} 
} 
