<html>
<head>
<script>
function move(s1,s2){
 for(i=(s1.options.length-1);i>=0;i--){
  if(s1.options[i].selected){
  alert(s1.options[i].text);
  s2.options[s2.length]=s1.options[i];
  s1.options[i]=null;
  }
  }
}
</script>
<body>
<form action="localhost" method=post>
<table align=center>
<tr>
<td rowspan=2><select id=id1 multiple="true">
<option>张三</option>
<option>李四</option>
<option>王五</option> 
</select></td>  <td><input type=button value="-->" onclick="move(id1,id2)"></td>  <td rowspan=2><select id=id2 multiple="true">
</select></td>
</tr>
<tr>
<td colspan=3><input type=button value="<--" onclick="move(id2,id1)" ></td>
</tr>
</table>
</form>
</body>
</head>
</html>