<html>
<head>
<title>List</title>
<meta   http-equiv="Content-Type"   content="text/html;   charset=gb2312">
<script   LANGUAGE="javascript">   
  
<!--      
 
var C01=[["001","苹果"],["002","哈密瓜"]];
 
var C02=[["006","茄子"]];
 
function change(id,selected,t){
        
var sel=document.getElementById(selected);
        sel.length
=0;
        
if(t)sel.options[0]=new Option('---请选择---');
        
var opts=window[id];
        
if(opts){
            
for(var i=0;i<opts.length;i++
                sel.options[sel.length] 
= new Option(opts[i][1],opts[i][0]);
        }

 }
  
    
  
//-->   
  
</script>
</head>
<body>
<form>
  
<select   name="biglocation"   onChange="change('C'+this.value,'smalllocation')">
    
<option   value="01"   selected>水果</option>
    
<option   value="02">蔬菜</option>
  
</select>
  
<select   name="smalllocation">
    
<option   selected   value="">---请选择---</option>
  
</select>
</form>
</body>
</html>