var objPriceRents = new Object();
objPriceRents["1"] = new Array("0", "50,000", "75,000", "100,000", "110,000", "120,000", "130,000", "140,000", "150,000", "160,000", "170,000", "180,000", "190,000", "200,000", "210,000", "220,000", "230,000", "240,000", "250,000", "260,000", "270,000", "280,000", "290,000", "300,000", "325,000", "350,000", "375,000", "400,000", "450,000", "500,000", "750,000", "1,000,000", "no maximum");
objPriceRents["2"] = new Array("0", "350", "400", "450", "500", "550", "600", "650", "700", "750", "800", "850", "900", "950", "1,000", "no maximum");

function contractChanged(oContract, oMinPrice, oMaxPrice){
clearCombo(oMinPrice); // clear the downstream list
clearCombo(oMaxPrice); // clear the downstream list
fillCombos(oContract, oMinPrice, oMaxPrice); // fill the downstream list
}
function clearCombo(oList){
for (var i = oList.options.length - 1; i >= 0; i--){
  oList.options[i] = null;
}
oList.selectedIndex = -1;
}
function fillCombos(oContract, oMinPrice, oMaxPrice){
if (objPriceRents[oContract.options[oContract.selectedIndex].value]){
  var arrX = objPriceRents[oContract.options[oContract.selectedIndex].value];
  for (var i = 0; i <arrX.length; i = i + 1){
	oMinPrice.options[oMinPrice.options.length] = new Option(arrX[i]);
	oMaxPrice.options[oMaxPrice.options.length] = new Option(arrX[i]);
  }
  oMaxPrice.selectedIndex =  oMaxPrice.options.length - 1;
  oMinPrice.selectedIndex =  0;
}
else{
  oMinPrice.options[0] = new Option("Error", "");
  oMaxPrice.options[0] = new Option("Error", "");
}
}
