<!-- 메뉴 start-->
<table width="100%" class= "linesv">
<tr height="30">
<td width=80 bgcolor="c2c2c2">제조사</td>
<td width=300><select name="it_maker" id="combo_0" xxonChange="changess(this)" class=write_input_select >
<option value="">==기본분류==</option>
<?
//1차 분류 제조사 it_maker
$compay_munu = explode("|",$compay);
for ($y=0; $y < count($compay_munu); $y++)
{
$yy = $y*10;
if($it[it_maker] == $compay_munu[$y])
$selectchk = "selected=selected"; else $selectchk="";
$strd_ = "<option value='$compay_munu[$y]' $selectchk>$nbsp$compay_munu[$y]\n";
echo $strd_;
}
?>
</select></td>
<td width=80 bgcolor="c2c2c2">모델</td>
<td>
<!-- 새로운 방식 -->
<?
$de_w1 = explode("|",$default[de_w2]);
$de_w2 = explode("|",$default[de_w3]);
$de_w3 = explode("|",$default[de_w4]);
$de_w4 = explode("|",$default[de_w5]);
$de_w10 = explode("|",$default[de_w10]);
?>
<select name="it_origin" id="combo_1" style="width:90px;" class=write_input_select >
<option value="">=모델선택=</option>
</select>
<? $tempp = $i;?>
<script language="JavaScript" type="text/javascript">
<!--
<?php for($i=0 ; $i < count($de_w1); $i++) { ?>
data_1_<?=$i+1?> = new Option("<?=$de_w1[$i]?>", "<?=$i?>");
<?php } ?>
<?php for($i=0 ; $i < count($de_w2); $i++) { ?>
data_2_<?=$i+1?> = new Option("<?=$de_w2[$i]?>", "<?=$i?>");
<?php } ?>
<?php for($i=0 ; $i < count($de_w3); $i++) { ?>
data_3_<?=$i+1?> = new Option("<?=$de_w3[$i]?>", "<?=$i?>");
<?php } ?>
<?php
for($i=0 ; $i < count($de_w10); $i++) { ?>
data_9_<?=$i+1?> = new Option("<?=$de_w10[$i]?>", "<?=$i?>");
<?php } ?>
displaywhenempty="차명선택"
valuewhenempty=""
displaywhennotempty="차명선택"
valuewhennotempty=""
function changess(currentbox) {
numb = currentbox.id.split("_");
currentbox = numb[1];
i=parseInt(currentbox)+1
while ((eval("typeof(document.getElementById(\"combo_"+i+"\"))!='undefined'")) &&
(document.getElementById("combo_"+i)!=null)) {
son = document.getElementById("combo_"+i);
for (m=son.options.length-1;m>0;m--) son.options[m]=null;
son.options[0]=new Option(displaywhenempty,valuewhenempty)
i=i+1
}
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
}
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 ((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
}
i=1
combostatus=''
cstatus=stringa.split("_")
while (cstatus[i]!=null) {
combostatus=combostatus+cstatus[i]
i=i+1
}
return combostatus;
}
}
//-->
</script>