// JavaScript Document

function update() {
		new Ajax.Updater('models', 'includes/models.php', {
	  parameters: { make_id: $F('make_id') }
	});
	}

function setModels() {
	$('models').innerHTML = "<div id='loader'><img src='/images/loader.gif' alt='' /></div>";
	update();

	
	/*var markeselect = document.getElementById("make_id");
	var modellselect = document.getElementById("model_id");
	if (markeselect.options[markeselect.selectedIndex].value == "noValue") {
			modellselect.selectedIndex = 0;
			modellselect.disabled = 'disabled';
		} else {
			var modelloptions = modellselect.getElementsByTagName("option");
			for(i=0;i<modelloptions.length;i++) {
					if (modelloptions[i].title == "rel"+markeselect.options[markeselect.selectedIndex].value) {
							modelloptions[i].style.display = 'block';
						} else {
							modelloptions[i].style.display = 'none';
							}
					if (modelloptions[i].title == "relALL") {
							modelloptions[i].style.display = 'block';
						}
				}
			modellselect.selectedIndex = 0;
			modellselect.disabled = '';	
		}*/
	}