
var temp=document.quicksearch.model

/* drop down Makes box */
for (j=0; j < makes.length; j++){

	document.quicksearch.make.options[j+1] = new Option(makes[j], makes[j]);

	document.quicksearch.make.options[0].selected=true;

	/* drop down Models box */
	temp.options[0] = new Option("Model", "")

}

function redirect(x){

	/* clear models drop down */
	for (m=temp.options.length-1; m>0; m--) {
		temp.options[m]=null
		temp.options[0] = new Option("Model", "")
	}

	/* if "Make" option selected */
	if(x==0){
		temp.disabled = true;
		return;
	}

	for (i=1; i<models[x-1].length+1; i++){
		temp.options[i]=new Option(models[x-1][i-1],models[x-1][i-1])
	}

	temp.options[0].selected=true
	temp.disabled = false

	appendurl(models[x-1].length);
}
