function judge(form)
{
var chkbox = form.checkbox;
if(chkbox){
var chkLength = chkbox.length;
if (chkLength) {
for (var i = chkLength-1; i >=0; i--) {
if (chkbox[i].checked) {
var cid = chkbox[i].value;
var row = -1;
try {
row = chkbox[i].parentElement.parentElement.rowIndex;
}
catch (e) {
}
if (row > 0) {
var tableobj = document.getElementById("CTTable");
if (tableobj != null) {
tableobj.deleteRow(row);
}
}
}
}
}else{
//row = chkbox.parentElement.parentElement.rowIndex;
}
}
}