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 malist(ma_yes) {
	for (i=0;i<ma.length;i++) {
		gsf.make.options[i]=new Option(ma[i][1], ma[i][0]);
		if (ma[i][0] == ma_yes){
			gsf.make.options[i].selected = true;
		}
	}
}
function molist(mo_yes) {
	for (i=(gsf.model.options.length-1); i>=0; i--) { 
		gsf.model.options[i] = null; 
	}
	gsf.model.selectedIndex = -1; x=0;
	for (i=0;i<mo.length;i++) {
		if (mo[i][1] == gsf.make.value) {
			gsf.model.options[x]=new Option(mo[i][2], mo[i][0]);
			if (mo[i][0] == mo_yes){
				gsf.model.options[x].selected = true;
			}
			x++;
		}
	}
}
function mblist(mb_yes) {
	for (i=(gsf.area.options.length-1); i>=0; i--) { 
		gsf.area.options[i] = null; 
	}
	gsf.area.selectedIndex = -1; x=0;
	for (i=0;i<mb.length;i++) {
		if (mb[i][1] == gsf.model.value) {
			gsf.area.options[x]=new Option(mb[i][2], mb[i][0]);
			if (mb[i][0] == mb_yes){
				gsf.area.options[x].selected = true;
			}
			x++;
		}
	}
}