// À¯È¿¼º üũ function checkValue(arg){ if(checkField(arg.ssno1,"ÁֹιøÈ£¸¦") || checkField(arg.ssno2,"ÁֹιøÈ£¸¦")){ return false; } return true; } function goLink(arg){ //var win = window.open('SUITE_INFO.jsp'); var win = window.open('./suite_info.jsp','SUITE_INFO'); document.frm.target="SUITE_INFO"; document.frm.submit(); window.close(); } function goLinkTest(arg){ //var win = window.open('SUITE_INFO.jsp'); var win = window.open('./suite_info_test.jsp','SUITE_INFO',''); document.frm.target="SUITE_INFO"; document.frm.submit(); window.close(); } /* * ´Þ·Â */ var dateObj; function openCalendar(obj) { dateObj = obj; if (document.getElementById("calendar") == null) { var loc = setPointLocation(); var cal = document.createElement("DIV"); cal.id = "calendar"; cal.style.position = "absolute"; cal.style.border = "solid 2px"; cal.style.borderColor = "#ebebeb"; cal.style.left = loc[0]; cal.style.top = loc[1]; cal.style.width = "182"; cal.style.height = "191"; cal.innerHTML = ""; document.body.appendChild(cal); } } function getDate() { return dateObj; } function setDate(str) { dateObj.value = str; dateObj.focus(); } function dateReset() { dateObj.value = ""; } function closeCalendar() { var cal = document.getElementById("calendar"); document.body.removeChild(cal); } function resizeHeight(height) { var frm = document.getElementById("cal"); var cal = document.getElementById("calendar"); frm.style.height = height; cal.style.height = height; } function setPointLocation() { var xPoint = event.clientX; var yPoint = event.clientY; var coord = new Array(xPoint, yPoint); return coord; } function search(){ document.frm.target=""; document.frm.submit(); } function goRefresh(){ document.frm.reqGbn.value = ''; document.frm.regDtFrm.value = ''; document.frm.regDtTo.value = ''; document.frm.target=""; document.frm.submit(); } function goRequest(){ //var win = window.open('SUITE_INFO.jsp'); var win = window.open('./suite_request.jsp','SUITE_REQUEST','width=500,height=340'); document.frm1.target="SUITE_REQUEST"; document.frm1.submit(); } function goRequestTest(){ //var win = window.open('SUITE_INFO.jsp'); var win = window.open('./suite_request_test.jsp','SUITE_REQUEST','width=500,height=320'); document.frm1.target="SUITE_REQUEST"; document.frm1.submit(); } function changeGbn(arg){ if(arg =="10"){ document.getElementById('money').style.display = 'block'; document.getElementById('gift').style.display = 'none'; document.f1.remark.value = ""; } else { document.getElementById('gift').style.display = 'block'; document.getElementById('money').style.display = 'none'; document.f1.bankNm.value = ""; document.f1.acnutNo.value = ""; } } function onlyNum() { var keycode = event.keyCode; // 48->0 57->9 if (keycode >= 48 && keycode <= 57) { return true; } return false; } function onlyNumWithDash() { var keycode = event.keyCode; // 48->0 57->9 if(keycode==189 || keycode==8|| keycode==45 || keycode==41) // - Æ÷ÇÔ ¹× backspace,del Å° Æ÷ÇÔ return true; if (keycode >= 48 && keycode <= 57) { return true; } return false; } /* ±Ý¾× ÀԷ½à 3ÀÚ¸® ¸¶´Ù Äĸ¶ ÀÚµ¿À¸·Î ÂïÈ÷µµ·Ï */ String.prototype.setComma = function() { var temp_str = String(this); for(var i = 0 , retValue = String() , stop = temp_str.length; i < stop ; i++) retValue = ((i%3) == 0) && i != 0 ? temp_str.charAt((stop - i) -1) + "," + retValue : temp_str.charAt((stop - i) -1) + retValue; return retValue; } function vComma(obj){ var nocomma = obj.value.replace(/,/gi,''); // ºÒ·¯¿Â °ªÁß¿¡¼­ Äĸ¶¸¦ Á¦°Å var s = nocomma; if (s == 0) { // ùÀÚ¸®ÀÇ ¼ýÀÚ°¡ 0Àΰæ¿ì ÀԷ°ªÀ» Ãë¼Ò ½ÃÅ´ obj.value = ''; return; }else { obj.value = s.setComma(); } } // ¼º½Ç³³¼¼ÀÚ ¸ñ·Ï ÆäÀÌÁö ¸®·Îµù function refreshPage(){ document.frm.target=""; document.frm.submit(); } function onlyNum() { var keycode = event.keyCode; // 48->0 57->9 if (keycode >= 48 && keycode <= 57) { return true; } return false; } function cancelRequest(){ self.close(); } //ÇØ´çÁö±Þ³»¿ªÀÇ »ó¼¼Á¤º¸ Á¶È¸ function goDetailInfo(arg){ var win = window.open('','SUITE_DETAIL','width=500,height=300'); document.frm2.seq.value = arg; document.frm2.target="SUITE_DETAIL"; document.frm2.submit(); } //À©µµ¿ì Å©±â ¼³Á¤ function windowReset(win){ // »õâÀÇ Å©±â¿Í À§Ä¡ Àç¼³Á¤ var winBody = win.document.body; // // »õâÀÇ »çÀÌÁî¿¡ ´õÇØÁÙ marginWidth¿Í marginHeight // var marginHeight = parseInt(winBody.topMargin)+parseInt(winBody.bottomMargin); var marginWidth = parseInt(winBody.leftMargin)+parseInt(winBody.rightMargin); // // »õâÀÇ »çÀÌÁî ¼³Á¤ // var wid = winBody.scrollWidth + (winBody.offsetWidth - winBody.clientWidth) + marginWidth-15; var hei = winBody.scrollHeight + (winBody.offsetHeight - winBody.clientHeight) + marginHeight+40; // // »çÀÌÁî ÀçÁ¶Á¤ // win.resizeTo(wid, hei); }