    var m_honda  = [['unselected','Select Engine'],['s2000','F20C/F22C'],['nsx','C30A/C32B'],['civic','B16A/B16B/B18C'],['typer','K20A/K20Z'],['accord-odyssey','K24A']];
    var m_toyota = [['unselected','Select Engine'],['trueno','4AG'],['altezza','3SG'],['mrs','1ZZ'],['celica','2ZZ'],['supra','7MG/2JZ-GE/2JZ-GTE']];
    var m_nissan = [['unselected','Select Engine'],['skyline','RB20DET/RB26DETT'],['silvia','CA18/SR20']];
	var m_mazda = [['unselected','Select Engine'],['b6','B6'],['bp','BP'],['lfve','LF-VE']];
	var m_mitsubishi = [['unselected','Select Engine'],['lancerevo','4G63'],['evo10','4B11']];
	var m_subaru = [['unselected','Select Engine'],['impreza','EJ20T/EJ25T']];
	var m_suzuki = [['unselected','Select Engine'],['swift','M16A']];
	var m_none = [['unselected','Select Engine']];

    function changeMenu1() {
        var menu1val = document.getElementById('menu1').value;
        if( menu1val == 'honda' ) {
            createMenu2(m_honda);
        }
        else if ( menu1val == 'toyota' ) {
            createMenu2(m_toyota);
        }
        else if( menu1val == 'nissan' ) {
            createMenu2(m_nissan);
        }
		else if ( menu1val == 'mazda' ) {
            createMenu2(m_mazda);
        }
        else if( menu1val == 'mitsubishi' ) {
            createMenu2(m_mitsubishi);
        }
		else if( menu1val == 'subaru' ) {
            createMenu2(m_subaru);
        }
		else if( menu1val == 'suzuki' ) {
            createMenu2(m_suzuki);
        }
        else {
            createMenu2(m_none);
        }
    }
    function createMenu2( vals ) {
        var menu2 = document.getElementById('menu2');


        while( (menu2.options.length>0) || (menu2.options[0] != null) ) {
            menu2.options[0] = null;
        }
        if( vals == null ) return;

        for( var i = 0; i < vals.length; i++ ) {
            menu2.options[i] = new Option(vals[i][1], vals[i][0]);
			
        }

		if(menu1.value=="none")
			menu2.disabled=true;
		else
			menu2.disabled=false;
    }
	function modelSelect(){
		var temp=menu2.value;
		if(temp=="s2000")
			window.open("model/f20c-f22c.html", "_self");
		else if (temp=="nsx")
			window.open("model/c30a-c32b.html", "_self");
		else if (temp=="civic")
			window.open("model/b16-b18.html", "_self");
		else if (temp=="typer")
			window.open("model/k20a.html", "_self");
		else if (temp=="accord-odyssey")
			window.open("model/k24a.html", "_self");
		else if (temp=="trueno")
			window.open("model/4ag.html", "_self");
		else if (temp=="altezza")
			window.open("model/3sg.html", "_self");
		else if (temp=="mrs")
			window.open("model/1zz.html", "_self");
		else if (temp=="celica")
			window.open("model/2zz.html", "_self");
		else if (temp=="supra")
			window.open("model/7mg-2jzge-2jzgte.html", "_self");	
		else if (temp=="silvia")
			window.open("model/ca18-sr20.html", "_self");
		else if (temp=="skyline")
			window.open("model/rb20det-rb20dett.html", "_self");
		else if (temp=="b6")
			window.open("model/b6.html", "_self");
		else if (temp=="bp")
			window.open("model/bp.html", "_self");
		else if (temp=="lfve")
			window.open("model/lfve.html", "_self");
		else if (temp=="lancerevo")
			window.open("model/4g63.html", "_self");
		else if (temp=="evo10")
			window.open("model/4b11.html", "_self");
		else if (temp=="impreza")
			window.open("model/ej20t-ej25t.html", "_self");
		else if (temp=="swift")
			window.open("model/m16a.html", "_self");

	}
