<script language="JavaScript" type="text/javascript"> <!--
// first combo box
data_1 = new Option("´ë¿ì", "´ë¿ì"); data_2 = new Option("Çö´ë", "Çö´ë"); data_3 = new Option("±â¾Æ", "±â¾Æ"); data_4 = new Option("½Ö¿ë", "½Ö¿ë"); data_5 = new Option("¾Æ¿ìµð", "¾Æ¿ìµð"); data_6 = new Option("뻰Ã÷", "º¥Ã÷");
// second combo box
data_1_1 = new Option("´ë¿ìÂ÷", "´ë¿ìÂ÷"); data_1_2 = new Option("´ë¿ìÂ÷2", "´ë¿ìÂ÷2"); data_1_3 = new Option("´ë¿ìÂ÷3", "´ë¿ìÂ÷3"); data_2_1 = new Option("Çö´ëÂ÷", "Çö´ëÂ÷"); data_2_2 = new Option("Çö´ëÂ÷2", "Çö´ëÂ÷"); data_2_3 = new Option("23", "--"); data_2_4 = new Option("24", "--"); data_2_5 = new Option("25", "--");
// third combo box
data_1_1_1 = new Option("½Â¿ë", "½Â¿ë"); data_1_2_1 = new Option("SUV", "SUV"); data_1_3_1 = new Option("±âŸ1", "±âŸ1"); data_1_3_2 = new Option("±âŸ2", "±âŸ2"); data_1_4_1 = new Option("±âŸ", "±âŸ"); data_1_4_2 = new Option("±âŸ2", "±âŸ2");
data_2_1_1 = new Option("211", "**"); data_2_1_2 = new Option("212", "**"); data_2_2_1 = new Option("221", "**"); data_2_2_2 = new Option("222", "**"); data_2_3_1 = new Option("231", "***"); data_2_3_2 = new Option("232", "***");
// fourth combo box
data_1_1_1_1 = new Option("1111","1111") data_1_2_1_1 = new Option("1211","1211")
data_1_3_1_1 = new Option("1311","1311") data_1_3_2_1 = new Option("1321","1321") data_1_3_3_1 = new Option("1331","1331") data_1_3_4_1 = new Option("1341","1341")
data_1_4_1_1 = new Option("1411","1411") data_1_4_2_1 = new Option("1421","1421") data_1_4_3_1 = new Option("1431","1431") data_1_4_4_1 = new Option("1441","1441")
data_1_5_1_1 = new Option("1511","1511") data_1_5_2_1 = new Option("1521","1521") data_1_5_3_1 = new Option("1531","1531") data_1_5_4_1 = new Option("1541","1541")
data_1_6_1_1 = new Option("1611","1621") data_1_6_2_1 = new Option("1621","1621") data_1_6_3_1 = new Option("1631","1631") data_1_6_4_1 = new Option("1641","1641")
data_2_2_1_1 = new Option("2211","%") data_2_2_1_1 = new Option("2211","%") data_2_2_1_2 = new Option("2212","2212")
// other parameters
displaywhenempty="-¼±ÅþøÀ½-" valuewhenempty=""
displaywhennotempty="- Ç׸ñ¼±Åáé -" valuewhennotempty=""
function change(currentbox) { numb = currentbox.id.split("_"); currentbox = numb[1];
i=parseInt(currentbox)+1
// I empty all combo boxes following the current one
while ((eval("typeof(document.getElementById(\"combo_"+i+"\"))!='undefined'")) && (document.getElementById("combo_"+i)!=null)) { son = document.getElementById("combo_"+i); // I empty all options except the first one (it isn't allowed) for (m=son.options.length-1;m>0;m--) son.options[m]=null; // I reset the first option son.options[0]=new Option(displaywhenempty,valuewhenempty) i=i+1 }
// now I create the string with the "base" name ("stringa"), ie. "data_1_0" // to which I'll add _0,_1,_2,_3 etc to obtain the name of the combo box to fill
stringa='data' i=0 while ((eval("typeof(document.getElementById(\"combo_"+i+"\"))!='undefined'")) && (document.getElementById("combo_"+i)!=null)) { eval("stringa=stringa+'_'+document.getElementById(\"combo_"+i+"\").selectedIndex") if (i==currentbox) break; i=i+1 }
// filling the "son" combo (if exists)
following=parseInt(currentbox)+1
if ((eval("typeof(document.getElementById(\"combo_"+following+"\"))!='undefined'")) && (document.getElementById("combo_"+following)!=null)) { son = document.getElementById("combo_"+following); stringa=stringa+"_" i=0 while ((eval("typeof("+stringa+i+")!='undefined'")) || (i==0)) {
// if there are no options, I empty the first option of the "son" combo // otherwise I put "-select-" in it
if ((i==0) && eval("typeof("+stringa+"0)=='undefined'")) if (eval("typeof("+stringa+"1)=='undefined'")) eval("son.options[0]=new Option(displaywhenempty,valuewhenempty)") else eval("son.options[0]=new Option(displaywhennotempty,valuewhennotempty)") else eval("son.options["+i+"]=new Option("+stringa+i+".text,"+stringa+i+".value)") i=i+1 } //son.focus() i=1 combostatus='' cstatus=stringa.split("_") while (cstatus[i]!=null) { combostatus=combostatus+cstatus[i] i=i+1 } return combostatus; } }
//--> </script>