//2008-04-14 오후 1:48:36 강지훈 최초 작성 //컴포넌트 명, 인스턴스명, 체크박스 순서 function SetVisible(comp_id, inst_id, chkbox_no){ //alert("1 : " + model.getValue("/root/main/cond/diagcd")); var Obj = document.all(comp_id); //alert("2 : " + model.getValue("/root/main/cond/diagcd")); var stat = model.getValue(inst_id); if(chkbox_no == null){ if(stat == "Y"){ Obj.visible = true; }else{ Obj.deselect(); Obj.visible = false; } } else if(chkbox_no != null){ var arr = stat.search(chkbox_no); if(arr > -1){ Obj.visible = true; }else{ if(Obj.attribute("ref") != ""){ model.setValue(Obj.attribute("ref"), ""); } Obj.visible = false; } } } /** * @--------------------------------------------------- * @desc : 콘트롤의 값의 길이를 체크 * @param : String controlID1, String controlID2 컨트롤아이디 * @return : Boolean true or false * @author : 강지훈 * @exam : fCheckLength("ipt_01", "sct_02", "tar_03"); * @etc : 입력 컨트롤이 아이디가 "ipt_01"일 경우 messageBox pMessage는 "cap_01" 캡션 컨트롤을 참조 함. * @--------------------------------------------------- */ function fCheckLength() { var controlCnt = fCheckLength.arguments.length; var controlID, captionID; var controlObj, captionObj; var controlValue; var maxlength; for(var i=0; i