var gsf;
var sel_make = new String("Select Make");
var sel_model = new String("Select Model");

function cdd(theForm) {
	gsf = document.getElementsByName(theForm).item(0);
}
function cma(sma) {
	gsf.selmake.value = ma[sma];
}
function cmo(smo) {
	gsf.selmodel.value = mo[smo][1];
}
function malist(ma_yes) {
	for (i=0;i<ma.length;i++) {
		gsf.masel.options[i]=new Option(ma[i], i);
		if (ma[i] == ma_yes){
			gsf.masel.options[i].selected = true;
		}
	}
}
function molist(mo_yes) {
	for (i=(gsf.mosel.options.length-1); i>=0; i--) { 
		gsf.mosel.options[i] = null; 
	}
	gsf.mosel.selectedIndex = -1; x=0;
	for (i=0;i<mo.length;i++) {
		if (mo[i][0] == gsf.masel.value) {
			gsf.mosel.options[x]=new Option(mo[i][1], i);
			if (mo[i][1] == mo_yes){
				gsf.mosel.options[x].selected = true;
			}
			x++;
		}
	}
	cmo(0);
}

