I have done some playing with the code and got this for you:<html>
<head>
<script type="text/javascript">
function changeselect(va,el){
var arrValue,arrDisplay;
arrValue=new Array();
arrDisplay=new Array();
arrValue[0]=[];
arrDisplay[0]=[""];
arrValue[1]=[0,1,2];
arrDisplay[1]=["zero","one","two"];
arrValue[2]=[3,4,5];
arrDisplay[2]=["three","four","five"];
if(va!=""){
document.getElementById(el).options.length=0;
for(var x=0;x<arrValue[va].length;x++){
document.getElementById(el)[x]=new Option(arrDisplay[va][x],arrValue[va][x]);
}
}
}
</script>
</head>
<body>
<select size="1" name="D0" onchange="changeselect(this.options[this.selectedIndex].value,'D1');">
<option value="">Select</option>
<option value="1">S</option>
<option value="2">C</option>
</select>
<p>
<%
if arrValue = 0 then %>
<select size="1" name="D1" id="D1">
<option value=""></option>
</select>
<% else %>
<select size="1" name="D1" id="D1">
<option value="0">zero</option>
<option value="1" >one</option>
<option value="2">two</option>
<option value="3">three</option>
<option value="4">four</option>
<option value="5">five</option>
</select>
<% end if %>
</body>
<html>
I hope it helps.