function validar() {
var marca1 = document.marca.marca.options[document.marca.marca.selectedIndex].value;
if (marca1==" "){
	alert("Seleccione una marca y opcionalmente un modelo para realizar su consulta.");
	return false;	
} 	
return true;
}

function BumpUp(box)  {
	for(var i=0; i<box.options.length; i++) {
		if(box.options[i].value == "")  {
			for(var j=i; j<box.options.length; j++)  {
				box.options[j].value = box.options[j+1].value;
				box.options[j].text = box.options[j+1].text;
			}
			var ln = i;
			break;
		}
	}
	if(ln < box.options.length)  {
		box.options.length -= 1;
		BumpUp(box);
	}
}

function combo() {

	var fbox = document.marca.modelo;
	var tbox = document.marca.marca;
	var m = 0;

	for(var i=0; i<fbox.options.length; i++) {
		fbox.options[i].value = "";
		fbox.options[i].text = "";
		fbox.length=0;
	}
	var no = new Option();
	no.value = "";
	no.text = "Modelo";
	fbox.options[fbox.length] = no;

	for(i=0; i<mardescrip.length; i++) {
		if(tbox.options[tbox.selectedIndex].value == mardescrip[i]) {
			var no = new Option();
			no.value = moddescrip[i];
			//alert(no.value);
			no.text = moddescrip[i];
			fbox.options[fbox.length] = no;
	   }
	}
	if (fbox.length > 0)
		fbox.options[0].selected = true;
//	document.marca.submit(true);
}
