<html>
<body>
<script>
function xiangyou()
{
var s=document.getElementById("biaodan2");
var obj=document.getElementById("biaodan1");
var length=obj.options.length;
for(var i=length-1;i>=0;i--)
{
if(obj.options[i].selected&&length>7)
{
obj.options.add(s.options[i]);
}
}
}
function xiangzuo(){
var s=document.getElementById("biaodan2")
var obj=document.getElementById("biaodan1");
var length=s.options.length;
for(var m=length-1;m>=0;m--){
if(s.options[m].selected)
{
obj.options.add(s.options[m]);
}
}
}
</script>
<form name="form">
<p>
<select name="biaodan1" size="10" multiple id="biaodan1">
<option value="v1">软件技术专业</option>
<option value="v2">动漫技术专业</option>
<option value="v3">会计电算化</option>
<option value="v4">市场营销</option>
<option value="v5">嵌入式软件</option>
<option value="v6">Java软件</option>
<option value="v7">.net软件开发</option>
<option value="v8">移动通信软件开</option>
<option value="v9">Php软件开发</option>
<option value="v10">建筑技术专业</option>
</select>
<input type="button" value="》" onClick="xiangyou()">
<input type="button" value="↑" onClick="shang()">
<input type="button" value="↓" onClick="xia()">
<input name="button" type="button" onclick="xiangzuo()"
value="《" />
<select name="biaodan2" size="10" multiple id="biaodan2" >
</select>
</p>
</form>
</body>
</html>