Posted on 2007. 10. 16. 17:24
Filed Under Javascript

function chkDel() {
 var chkObj = document.getElementsByName("chk");
 var chkDelStr = "";
 
 for(var i=0; i<chkObj.length; i++) {
  var chkObjElement = chkObj[i];
  if(chkObjElement.checked) {
   chkDelStr = chkDelStr + chkObjElement.value + "/";
  }
 }
 
 if(chkDelStr == "") {
  alert("선택된 자연어가 없습니다.");
  return false;
 }
 
 chkDelStr = chkDelStr.substring(0, chkDelStr.length-1);

 if(!confirm("선택삭제를 클릭하셨습니다. \r\n\r\n 정말로 삭제하시겠습니까?"))
    return false;
   
   location.href="NaturalSearchWriteProcess.jsp?isDel=Yes&chkDelStr="+chkDelStr+"&jobCode=<%=jobCode%>&searchName=<%=searchName%>";
}


var chkOnOffFlag = 0;
function chkOnOff() {
 if(chkOnOffFlag == 0) chkOnOffFlag++;
 else chkOnOffFlag--;
 
 var chkObj = document.getElementsByName("chk");
 for(var i=0; i<chkObj.length; i++) {
  var chkObjElement = chkObj[i];
  chkObjElement.checked = chkOnOffFlag;
 }
}

About

by 청지인

Notice

Counter

· Total
:
· Today
:
· Yesterday
: