function selectAll(){
var ck = $("input[name=ck]");
var currSelect = $("input[name=allSelect][checked]").val();
$.each(ck,function(i){
//alert(ck[i].disabled)
if(!ck[i].disabled){
ck[i].checked = currSelect;
}
});
}
function cancelCKSelect(){
var ck = $("input[name=ck]");
var r = true;
$.each(ck,function(i){
if(!ck[i].checked && !ck[i].disabled){
r=false;
return false;
}
});
$('#allSelect').attr('checked', r);
}
function deletes(){
var delId ="";
var ck = $("input[name=ck]");
$.each(ck,function(i){
if(ck[i].checked && !ck[i].disabled){
delId += "'"+$("#ckvalue"+i).val()+"',";
}
});
delId = delId.substring(0,delId.lastIndexOf(","));
if(delId != ""){
var flag = window.confirm("您确定删除吗?");
if(!flag){
return;
}
window.location= "wlan!hotDelete.do?hotWlanId="+delId;
}else{
alert('请选择需要删除的数据!');
}
}
</script>