事件用的不对<select   id="chainItems"   name="chainItems"   multiple="true"   size="15"   style="width:160px"   onchange="setPercentIndex(this,   'itemPercents')"> 
        <option> A1 </option> 
        <option> A2 </option> 
        <option> A3 </option> 
</select> <select   id="itemPercents"   name="itemPercents"   multiple="true"   size="15"   style="width:160px"   onchange="setPercentIndex(this,   'chainItems')"> 
        <option> 1 </option> 
        <option> 2 </option> 
        <option> 3 </option> 
</select> 
<script language=javascript>
    function   setPercentIndex(obj,   toItems) 
      { 
       var changeObj=document.getElementById(toItems)
          for(var i=0;i<obj.options.length;i++)
          {
           changeObj.options[i].selected=obj.options[i].selected
          }
      }       
</script>