function getObj(name) {
	if (document.getElementById) {
		this.obj = document.getElementById(name);
	}
	else if (document.all) {
		this.obj = document.all[name];
	}
	else if (document.layers) {
		this.obj = document.layers[name];
	}
}


function requestPrices(year, id) {
	var oX = zXmlHttp.createRequest();
	oX.open("get", "/atv_reviews/browse_atvs/prices/?id=" + id + "&year=" + year, true);
	oX.onreadystatechange = function() {
		if(oX.readyState == 4) {
			changePrices(oX.responseText);
		}
	};
	oX.send(null);
}

function changePrices(aVal) {
		var oSub = eval("(" + aVal + ")");
		var option;
		var price = document.getElementById("price");
		var x = 1;

		for(var i=price.options.length-1; i>=1 ;i--)
		{
			price.remove(i);
		}

		for (var i in oSub) {
			option = new Option(oSub[i], i);
			price.options[x++] = option;			
		}
}
