<script language="javascript" type="text/javascript"> // 得到已选择chedcbox的值 function GetSelectedValues() ...{ var checkBoxSelectedObjList = window.document.getElementsByName("CheckBoxSelected"); if (checkBoxSelectedObjList == undefined) returntrue; var selectedCount = checkBoxSelectedObjList.length; var idList =""; for (var i =0; i < selectedCount; i++) ...{ if (checkBoxSelectedObjList[i].checked) ...{ if (idList =="") idList = checkBoxSelectedObjList[i].value; else idList +=","+ checkBoxSelectedObjList[i].value; } } return idList; } // 全选或不选 function SelectAllCase(selectAllObj) ...{ var checkBoxSelectedObjList = window.document.getElementsByName("CheckBoxSelected"); if (checkBoxSelectedObjList == undefined) return; for (var i =0; i < checkBoxSelectedObjList.length; i++) ...{ if (selectAllObj.checked) checkBoxSelectedObjList[i].checked =true; else checkBoxSelectedObjList[i].checked =false; } } </script>