
var preloadStack = new Array();

function addToOnload(js)
{
	preloadStack[preloadStack.length] = js;
}

function preloader()
{
	for(j=0; j < preloadStack.length; j++)
	{
		eval(preloadStack[j]);
	}
}

var salePrices = {
		"75000":"75,000",
		"100000":"100,000",
		"150000":"150,000",
		"250000":"250,000",
		"250000":"250,000",
		"350000":"350,000",
		"500000":"500,000"
		};


var rentPrices = {
		"300": "300",
		"400": "400",
		"500": "500",
		"750": "750",
		"1000": "1000",
		"1250": "1250",
		"1500": "1500"
};

function UpdatePrices()
{
	var pricesArray = ( document.getElementById( 'for-sale' ).checked ) ? salePrices : rentPrices;

	document.getElementById( "MaxPrice" ).options.length = 0;

	var i = 0;

	var newOption = new Option( "Any Price", "" );
	document.getElementById( "MaxPrice" ).options[ 0 ] = newOption;

	i++;

	for( var itemKey in pricesArray )
	{
		var itemValue = pricesArray[ itemKey ];
		newOption = new Option( itemValue, itemKey );
		document.getElementById( "MaxPrice" ).options[ i ] = newOption;
		i++;
	}


}