js 代码
- //==================================================================================
- // Copyright (c) 1998-2007 by www.bizservice.com.cn, All rights reserved.
- // Email:contact@bizservice.com.cn, HangZhou, China
- //
- // This software is the confidential and proprietary information of
- // Bizservice.Com.Cn. ("Confidential Information"). You shall not disclose
- // such Confidential Information and shall use it only in accordance
- // with the terms of the license agreement you entered into with Bizservice.Com.Cn.
- //==================================================================================
- // Author: Wilson Lin
- // Date: 2004-6-15 14:19:50
- // Description:
- // 无
- // Function List:
- // 1. 无
- // History:
- // 1. 无
- //==================================================================================
- // 全选
- function checkAll(form) {
- for (var i=0; i
- var e = form.elements[i];
- if (e.type=="checkbox")
- e.checked = true ;
- }
- }
- // 全不选
- function checkNotAll(form) {
- for (var i=0; i
- var e = form.elements[i];
- if (e.type=="checkbox")
- e.checked = false ;
- }
- }
- // 是否有选中的项
- function isChecked(form){
- for (var i=0; i
- var e = form.elements[i];
- if (e.type=="checkbox"){
- if(e.checked){
- return true;
- }
- }
- }
- return false;
- }