<script>
function SelectAll() {
var checkboxs=document.getElementsByName("checkboxid");
for (var i=0;i<checkboxs.length;i++) {
var e=checkboxs[i];
e.checked=!e.checked;
}
}
</script>
<a href="#" onclick="SelectAll()">全选/反选</a>
<form name="checkboxform">
<input type="checkbox" name="checkboxid" id="checkboxid" value="<%=rst("fo_id")%>" />
</form>