document.writeln("<link rel=\"stylesheet\" href=\"search/search.css\" tppabs=\"search/search.css\" type=\"text/css\">");
document.writeln("<form name=\"doublecombo\">");
document.writeln("    <select name=\"example\" size=\"1\" onChange=\"redirect(this.options.selectedIndex)\">");
document.writeln("	  <option>AUDI</option>");
document.writeln("	   <option>BMW</option>");
document.writeln("       <option>MERCEDES</option>");
document.writeln("       <option>OPEL</option>");
document.writeln("	    <option>VOLKSWAGEN</option>");
document.writeln("	    <option>VOLVO</option>");
document.writeln("    </select>");
document.writeln("    <select name=\"stage2\" size=\"1\"><option value=\"#top\">Selectati MODEL</option>");
document.writeln("	<option value=\"http://www.topcar-intermed.ro/vanzari/audi/audi_a4/audi_a4.htm\">AUDI A4</option>");
document.writeln("	<option value=\"http://www.topcar-intermed.ro/vanzari/audi/audi_a6/audi_a6.htm\">AUDI A6</option>"); 
document.writeln("    </select>");
document.writeln("    <input type=\"button\" name=\"test\" value=\"Search\"");
document.writeln("onClick=\"go()\">");
document.writeln("<script>");
document.writeln("var groups=document.doublecombo.example.options.length");
document.writeln("var group=new Array(groups)");
document.writeln("for (i=0; i<groups; i++)");
document.writeln("group[i]=new Array()");
document.writeln("");
document.writeln("group[0][0]=new Option(\"AUDI A4\",\"http://www.topcar-intermed.ro/vanzari/audi/audi_a4/audi_a4.htm\")");
document.writeln("group[0][1]=new Option(\"AUDI A6\",\"http://www.topcar-intermed.ro/vanzari/audi/audi_a6/audi_a6.htm\")");
document.writeln("");
document.writeln("group[1][0]=new Option(\"BMW 316\",\"http://www.topcar-intermed.ro/vanzari/bmw/bmw_316/bmw_316.htm\")");
document.writeln("group[1][1]=new Option(\"BMW 318\",\"http://www.topcar-intermed.ro/vanzari/bmw/bmw_318/bmw_318.htm\")");
document.writeln("group[1][2]=new Option(\"BMW 525 TDS\",\"http://www.topcar-intermed.ro/vanzari/bmw/bmw_525/bmw_525.htm\")");
document.writeln("");
document.writeln("group[2][0]=new Option(\"Clasa C\",\"http://www.topcar-intermed.ro/vanzari/mercedes/clasa_c/clasa_c.htm\")");
document.writeln("group[2][1]=new Option(\"Clasa E\",\"http://www.topcar-intermed.ro/vanzari/mercedes/clasa_e/clasa_e.htm\")");
document.writeln("");
document.writeln("group[3][0]=new Option(\"Astra\",\"http://www.topcar-intermed.ro/vanzari/opel/astra/astra.htm\")");
document.writeln("group[3][1]=new Option(\"Vectra\",\"http://www.topcar-intermed.ro/vanzari/opel/vectra/vectra.htm\")");
document.writeln("group[3][2]=new Option(\"Frontera\",\"http://www.topcar-intermed.ro/vanzari/opel/frontera/frontera.htm\")");
document.writeln("");
document.writeln("group[4][0]=new Option(\"Golf\",\"http://www.topcar-intermed.ro/vanzari/volkswagen/golf/golf.htm\")");
document.writeln("group[4][1]=new Option(\"Passat\",\"http://www.topcar-intermed.ro/vanzari/volkswagen/passat/passat.htm\")");
document.writeln("");
document.writeln("group[5][0]=new Option(\"VOLVO V70\",\"http://www.topcar-intermed.ro/vanzari/volvo/v70/v70.htm\")");
document.writeln("");
document.writeln("var temp=document.doublecombo.stage2");
document.writeln("");
document.writeln("function redirect(x){");
document.writeln("for (m=temp.options.length-1;m>0;m--)");
document.writeln("temp.options[m]=null");
document.writeln("for (i=0;i<group[x].length;i++){");
document.writeln("temp.options[i]=new Option(group[x][i].text,group[x][i].value)");
document.writeln("}");
document.writeln("temp.options[0].selected=true");
document.writeln("}");
document.writeln("");
document.writeln("function go(){");
document.writeln("location=temp.options[temp.selectedIndex].value");
document.writeln("}");
document.writeln("//-->");
document.writeln("</script\>");
document.writeln("</form>");

