function wcash_chg (){ var ws=830; var hs=1000; var winpos = "left=" + ((window.screen.width-ws)/2) + ",top=" + ((window.screen.height-hs)/2); var visitview = window.open("/wcash/wcash_chg.asp", "wcash_chg", "toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,width="+ws+",height="+hs+",resizable=0,"+winpos); } function chkInteger(Form1) { for( i=0 ; i < Form1.value.length ; i++ ) { if((Form1.value.charAt(i)<"0") || (Form1.value.charAt(i)>"9")) { alert("¼ýÀÚ¸¸ ÀԷ°¡´ÉÇÕ´Ï´Ù."); Form1.value="" Form1.focus(); return false; } } // end for return true; } function onlyNumber(){ if (event.keyCode<48 || event.keyCode>57) event.returnValue=false //À̺¥Æ® ¹ß»ýÀ» Ãë¼Ò½ÃÅ´. } function loadswf(src,w,h){ html = ''; html += ''; html += ''; html += ''; html += ''; //html += ''; html += ''; html += ''; html += '<\/embed>'; html += '<\/object>'; document.write(html); } function layerswf(src,w,h){ html = ''; html += ''; html += ''; html += ''; html += ''; //html += ''; html += ''; html += ''; html += '<\/embed>'; html += '<\/object>'; document.write(html); } function eIn(o) { if (document.all && document.all[o]!=null) document.all[o].style.visibility='visible'; } function eOut(o) { if (document.all && document.all[o]!=null) document.all[o].style.visibility='hidden'; } function fmailsend(recname,mailgubun,title,content) { var winpos = "left=" + ((window.screen.width-950)/2) + ",top=" + ((window.screen.height-1000)/2); var fmailsend = window.open('/htm/fmailsend.asp?recname='+recname+'&mailgubun='+mailgubun+'&title='+title+'&content='+content, 'fmailsend', 'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,width=950,height=1000,resizable=0,'+winpos); } //function smssend(ouserid, oname, ophone) { // var winpos = "left=" + ((window.screen.width-350)/2) + ",top=" + ((window.screen.height-330)/2); // var mailview = window.open('/htm/smsform.asp?ouserid='+ouserid+'&oname='+oname+'&ophone='+ophone, 'smsform', 'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,width=200,height=480,resizable=0,'+winpos); // mailview.focus(); //} function smssend(ouserid, oname, ophone) { var winpos = "left=" + ((window.screen.width-350)/2) + ",top=" + ((window.screen.height-330)/2); var mailview = window.open('/htm/smsforml.asp?ophone='+ophone, 'smsform', 'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,width=270,height=600,resizable=0,'+winpos); mailview.focus(); } function smsorder(opt) { var winpos = "left=" + ((window.screen.width-350)/2) + ",top=" + ((window.screen.height-330)/2); var mailview = window.open('/htm/smsforml.asp?opt='+opt, 'smsorder', 'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,width=270,height=600,resizable=0,'+winpos); mailview.focus(); } function smsform(recphone) { var winpos = "left=" + ((window.screen.width-350)/2) + ",top=" + ((window.screen.height-330)/2); var mailview = window.open('/htm/smsform.asp?recphone='+recphone, 'smsform', 'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,width=350,height=330,resizable=0,'+winpos); mailview.focus(); } function smsforml(recphone) { var winpos = "left=" + ((window.screen.width-350)/2) + ",top=" + ((window.screen.height-330)/2); var mailview = window.open('/htm/smsforml.asp?ophone='+recphone, 'smsform', 'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,width=270,height=600,resizable=0,'+winpos); mailview.focus(); } function helpme() { var winpos = "left=" + ((window.screen.width-700)/2) + ",top=" + ((window.screen.height-800)/2); var mailview = window.open('/whb_support/superpawel.asp', 'helpme', 'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,width=700,height=800,resizable=0,'+winpos); helpme.focus(); } function popmeminfo(userid) { alert("ȸ¿øÀü¿ë¿µ¿ªÀÔ´Ï´Ù.\n\nȸ¿ø°¡ÀÔÀ» ÇϽðųª ·Î±×ÀÎÈÄ ÀÌ¿ëÇϼ¼¿ä!! "); return; } function memobox() { alert("ȸ¿øÀü¿ë¿µ¿ªÀÔ´Ï´Ù.\n\nȸ¿ø°¡ÀÔÀ» ÇϽðųª ·Î±×ÀÎÈÄ ÀÌ¿ëÇϼ¼¿ä!! "); return; } function sendmemo(userid) { alert("ȸ¿øÀü¿ë¿µ¿ªÀÔ´Ï´Ù.\n\nȸ¿ø°¡ÀÔÀ» ÇϽðųª ·Î±×ÀÎÈÄ ÀÌ¿ëÇϼ¼¿ä!! "); return; } function sendmail(userid) { alert("ȸ¿øÀü¿ë¿µ¿ªÀÔ´Ï´Ù.\n\nȸ¿ø°¡ÀÔÀ» ÇϽðųª ·Î±×ÀÎÈÄ ÀÌ¿ëÇϼ¼¿ä!! "); return; } function viewuser(userid) { alert("ȸ¿øÀü¿ë¿µ¿ªÀÔ´Ï´Ù.\n\nȸ¿ø°¡ÀÔÀ» ÇϽðųª ·Î±×ÀÎÈÄ ÀÌ¿ëÇϼ¼¿ä!! "); return; } function finduser() { alert("ȸ¿øÀü¿ë¿µ¿ªÀÔ´Ï´Ù.\n\nȸ¿ø°¡ÀÔÀ» ÇϽðųª ·Î±×ÀÎÈÄ ÀÌ¿ëÇϼ¼¿ä!! "); return; } function userinfo(userid) { var winpos = "left=" + ((window.screen.width-650)/2) + ",top=" + ((window.screen.height-610)/2); var modiWin = window.open('/htm/userinfo.asp?userid='+userid, "newwin", "toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,width=500,height=640 resizable=0,"+winpos); modiWin.focus(); } function searchcity (userid) { alert("ȸ¿øÀü¿ë¿µ¿ªÀÔ´Ï´Ù.\n\nȸ¿ø°¡ÀÔÀ» ÇϽðųª ·Î±×ÀÎÈÄ ÀÌ¿ëÇϼ¼¿ä!! "); return; } function searchmb (userid) { alert("ȸ¿øÀü¿ë¿µ¿ªÀÔ´Ï´Ù.\n\nȸ¿ø°¡ÀÔÀ» ÇϽðųª ·Î±×ÀÎÈÄ ÀÌ¿ëÇϼ¼¿ä!! "); return; } function selectre (userid) { alert("ȸ¿øÀü¿ë¿µ¿ªÀÔ´Ï´Ù.\n\nȸ¿ø°¡ÀÔÀ» ÇϽðųª ·Î±×ÀÎÈÄ ÀÌ¿ëÇϼ¼¿ä!! "); return; } function simplere (userid) { alert("ȸ¿øÀü¿ë¿µ¿ªÀÔ´Ï´Ù.\n\nȸ¿ø°¡ÀÔÀ» ÇϽðųª ·Î±×ÀÎÈÄ ÀÌ¿ëÇϼ¼¿ä!! "); return; } function simpleread (userid, quid) { if (quid==null){ quid=0; } var modiWin = window.open('/admin/mbbk/reformreserve.asp?userid='+userid+'&quid='+quid, "simpleread", "toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1"); modiWin.focus(); } function selectwhb (userid) { alert("ȸ¿øÀü¿ë¿µ¿ªÀÔ´Ï´Ù.\n\nȸ¿ø°¡ÀÔÀ» ÇϽðųª ·Î±×ÀÎÈÄ ÀÌ¿ëÇϼ¼¿ä!! "); return; } //reformlist.asp reformmake.asp reformpost.asp reformread.asp reformdel.asp function goqna (tbrurl) { var modiWin=window.open('http://'+tbrurl+'/reserve/pform.asp', "selectre", "toolbar=1,location=0,directories=0,status=1,menubar=1,scrollbars=1,width=1100,height=900 resizable=1,left=150,top=100"); modiWin.focus(); } function goshop (tbrbrcode) { location.href="/0_back/whb_tm/goods/list.asp?tmcate=&brcode="+tbrbrcode; } function gosite (tbrurl) { var modiWin=window.open('http://'+tbrurl, "selectre", "toolbar=1,location=0,directories=0,status=1,menubar=1,scrollbars=1,width=1100,height=900 resizable=1,left=150,top=100"); modiWin.focus(); } var select_obj; function MMLayerAction(name,status) { var obj=document.all[name]; var _tmpx,_tmpy, marginx, marginy; _tmpx = event.clientX + parseInt(obj.offsetWidth); _tmpy = event.clientY + parseInt(obj.offsetHeight); _marginx = document.body.clientWidth - _tmpx; _marginy = document.body.clientHeight - _tmpy ; if(_marginx < 0) _tmpx = event.clientX + document.body.scrollLeft + _marginx ; else _tmpx = event.clientX + document.body.scrollLeft ; if(_marginy < 0) _tmpy = event.clientY + document.body.scrollTop + _marginy +20; else _tmpy = event.clientY + document.body.scrollTop ; obj.style.posLeft=_tmpx-16; obj.style.posTop=_tmpy-18; if(status=='visible') { if(select_obj) { select_obj.style.visibility='hidden'; select_obj=null; } select_obj=obj; }else{ select_obj=null; } obj.style.visibility=status; } function ShowTMLayer(name,area,tbrurl,tbrbrcode) { var printMain =""+area+" Áö»ç ȨÆäÀÌÁö   "; printMain +="»óÇ°¹®ÀÇ   "; printMain +="»óÇ°º¸±â   "; var printHeader = ""; document.writeln(printHeader+printMain+printFooter); } function ShowReLayer(name,userid) { var printMain ="µµ½Ã & ¹Î¹Ú °Ë»ö  "; //printMain +="¹Î¹Ú °Ë»ö  "; //printMain +="¿¹¾àÇ¥ »ý¼º & ÀÏ°ý¿¹¾à  "; printMain +="¿¹¾àÇ¥ »ý¼º & ÀÏ°ý¿¹¾à  "; printMain +="°£Æí ÀÏ°ý¿¹¾à  "; var printHeader = ""; document.writeln(printHeader+printMain+printFooter); } function ShowMMLayer(name,userid) { var printMain ="   ÂÊÁöº¸³»±â  "; var printHeader = ""; document.writeln(printHeader+printMain+printFooter); } function Del_Comma( thisCtrl ) { var x, ch; var i=0; var newVal=""; var oCtrl; if(thisCtrl) oCtrl = thisCtrl; else oCtrl = this.ctl; for(x = 0; x < oCtrl.value.length ; x++) { ch= oCtrl.value.substring(x,x+1) if( ch != ",") newVal += ch; } oCtrl.value = newVal; return true; } //±Ý¾×¿¡ , Âï±â.. function numchk(num){ num=new String(num); num=num.replace(/,/gi,""); return numchk1(num); } function numchk1(num){ var sign=""; if(isNaN(num)) { alert("¼ýÀÚ¸¸ ÀÔ·ÂÇÒ ¼ö ÀÖ½À´Ï´Ù."); return 0; } if(num==0) { return num; } if(num<0){ num=num*(-1); sign="-"; } else{ num=num*1; } num = new String(num) var temp=""; var pos=3; num_len=num.length; while (num_len>0){ num_len=num_len-pos; if(num_len<0) { pos=num_len+pos; num_len=0; } temp=","+num.substr(num_len,pos)+temp; } return sign+temp.substr(1); } // ±Ý¾× ¼ýÀÚ¸¦ Çѱ۷Î.. : num_han, ciphers_han, NUM_HAN function num_han(num) { if ( num == "1" ) return "ÀÏ"; else if ( num == "2" ) return "ÀÌ"; else if ( num == "3" ) return "»ï"; else if ( num == "4" ) return "»ç"; else if ( num == "5" ) return "¿À"; else if ( num == "6" ) return "À°"; else if ( num == "7" ) return "Ä¥"; else if ( num == "8" ) return "ÆÈ"; else if ( num == "9" ) return "±¸"; else if ( num == "½Ê" ) return "½Ê"; else if ( num == "¹é" ) return "¹é"; else if ( num == "õ" ) return "õ"; else if ( num == "¸¸" ) return "¸¸ "; else if ( num == "¾ï" ) return "¾ï "; else if ( num == "Á¶" ) return "Á¶ "; else if ( num == "0" ) return ""; } function NUM_HAN(num,mode,return_input) { /* fnc(num,1):alert fnc(num,2):°°ÀºÈ­¸é fnc(num,3,return_input):´Ù¸¥ input¿¡ ¹Ýȯ */ if ( num == "" || num == "0" ) { if ( mode == "3" ) { return_input.value = ""; } return; } num=new String(num); num=num.replace(/,/gi,""); var len = num.length; var temp1 = ""; var temp2 = ""; if ( len/4 > 3 && len/4 <= 4 ) { if ( len%4 == 0 ) { temp1 = ciphers_han(num.substring(0,4)) + "Á¶" + ciphers_han(num.substring(4,8)) + "¾ï" + ciphers_han(num.substring(8,12)) + "¸¸" + ciphers_han(num.substring(12,16)); } else { temp1 = ciphers_han(num.substring(0,len%4)) + "Á¶" + ciphers_han(num.substring(len%4,len%4+4)) + "¾ï" + ciphers_han(num.substring(len%4+4,len%4+8)) + "¸¸" + ciphers_han(num.substring(len%4+8,len%4+12)); } } else if ( len/4 > 2 && len/4 <= 3 ) { if ( len%4 == 0 ) { temp1 = ciphers_han(num.substring(0,4)) + "¾ï" + ciphers_han(num.substring(4,8)) + "¸¸" + ciphers_han(num.substring(8,12)); } else { temp1 = ciphers_han(num.substring(0,len%4)) + "¾ï" + ciphers_han(num.substring(len%4,len%4+4)) + "¸¸" + ciphers_han(num.substring(len%4+4,len%4+8)); } } else if ( len/4 > 1 && len/4 <= 2 ) { if ( len%4 == 0 ) { temp1 = ciphers_han(num.substring(0,4)) + "¸¸" + ciphers_han(num.substring(4,len)); } else { temp1 = ciphers_han(num.substring(0,len%4)) + "¸¸" + ciphers_han(num.substring(len%4,len)); } } else if ( len/4 <= 1 ) { temp1 = ciphers_han(num.substring(0,len)); } for (var i=0; i"9")) { alert("¼ýÀÚ¸¸ ÀԷ°¡´ÉÇÕ´Ï´Ù."); Form1.value="" Form1.focus(); return false; } } // end for return true; } function sendFacebook(sTitle,sUrl) { var titl = encodeURIComponent(sTitle); var link = encodeURIComponent(sUrl); var url = "http://www.facebook.com/sharer.php?u=" + link + "&t=" + titl; var popwidth=600; var popheight=400; var winpos="left="+((window.screen.width-popwidth)/2) + ",top=" + ((window.screen.height-popheight)/2); winopen=window.open(url, 'pbml_win', 'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,width='+popwidth+',height='+popheight+',resizable=0,'+winpos); } function sendTwitter(sTitle,sUrl){ var shref ="http://twitter.com/home?status="+encodeURIComponent(sTitle)+" "+encodeURIComponent(sUrl); var sWindow=window.open(shref); if (sWindow){ sWindow.focus(); } } function sendM2Day(sTitle,sUrl) { var titl = encodeURIComponent(sTitle); var link = encodeURIComponent(sUrl); var shref = "http://me2day.net/posts/new?new_post[body]=\"" + titl + "\":" + link; var sWindow=window.open(shref); if (sWindow){ sWindow.focus(); } } function sendDaum(sTitle,sUrl){ var shref ="http://yozm.daum.net/api/popup/prePost?link="+encodeURIComponent(sUrl)+"&prefix="+encodeURIComponent(sTitle); var sWindow=window.open(shref, 'yozmSend', 'width=466, height=356'); if (sWindow){ sWindow.focus(); } } function mbdetail(uid) { location="/house/view.asp?uid="+uid; // var popwidth=844; // var popheight=900; // var winpos="left="+((window.screen.width-popwidth)/2) + ",top=" + ((window.screen.height-popheight)/2); // var mbdetail=window.open('/whb_minbak/detail.asp?uid='+uid, 'mbdetail', 'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,width='+popwidth+',height='+popheight+',resizable=0,'+winpos); } function kmbdetail(uid) { location="/house/view.asp?uid="+uid; // var popwidth=844; // var popheight=900; // var winpos="left="+((window.screen.width-popwidth)/2) + ",top=" + ((window.screen.height-popheight)/2); // var mbdetail=window.open('/whb_minbak/kdetail.asp?uid='+uid, 'kmbdetail', 'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,width='+popwidth+',height='+popheight+',resizable=0,'+winpos); } function tmdetail(uid) { location="/tourmall/view.asp?uid="+uid; // var popwidth=844; // var popheight=900; // var winpos="left="+((window.screen.width-popwidth)/2) + ",top=" + ((window.screen.height-popheight)/2); // var mbdetail=window.open('/0_back/whb_tm/goods/detail.asp?uid='+uid, 'tmdetail', 'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,width='+popwidth+',height='+popheight+',resizable=0,'+winpos); } function goWhb(uid, gotype) { if(gotype=="mb"){ window.open('/house/view.asp?uid='+uid) } else if (gotype=="tm") { window.open('/tourmall/view.asp?uid='+uid) } } function mbcopy(uid) { var popwidth=772; var popheight=900; var winpos="left="+((window.screen.width-popwidth)/2) + ",top=" + ((window.screen.height-popheight)/2); var mbcopy=window.open('/0_back/whb_new/minbak/detail_copy.asp?uid='+uid, 'mbcopy', 'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,width='+popwidth+',height='+popheight+',resizable=0,'+winpos); } function eIn(o) { if (document.all && document.all[o]!=null) document.all[o].style.visibility='visible'; } function mbmodify(mbmod) { if (typeof mbmod == "undefined") { mbmod="main"; } var popwidth=1000; var popheight=800; var winpos="left="+((window.screen.width-popwidth)/2) + ",top=" + ((window.screen.height-popheight)/2); var mbmodify=window.open('/whb_mypage/pop_mb_modify.asp?mbmod='+mbmod, 'mbmodify', 'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,width='+popwidth+',height='+popheight+',resizable=0,'+winpos); } function mbadminmodify(muid) { //var popwidth=1100; //var popheight=800; //var winpos="left="+((window.screen.width-popwidth)/2) + ",top=" + ((window.screen.height-popheight)/2); //var mbmodify=window.open('/admin/minbak/pop_mb_modify.asp?mbmod=mbinfo&infotype=basic&muid='+muid, 'mbadmin'+muid, 'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,width='+popwidth+',height='+popheight+',resizable=0,'+winpos); //var mbmodify=window.open('/admin/minbak/pop_mb_modify.asp?mbmod=main&muid='+muid, 'mbadmin'+muid, 'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,width='+popwidth+',height='+popheight+',resizable=0,'+winpos); var popwidth=1100; var popheight=900; var winpos="left="+((window.screen.width-popwidth)/2) + ",top=" + ((window.screen.height-popheight)/2); var mbmodify=window.open('/mbadmin/main.asp?muid='+muid, 'mbadmin', 'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,width='+popwidth+',height='+popheight+',resizable=0,'+winpos); } function goPage(url) { document.location.href = url; } function fncCopy (contents){ if (window.clipboardData) { window.clipboardData.setData("Text", contents); alert("¸ð¹ÙÀÏ ¸µÅ© ¿Ï·á!"); //window.clipboardData.setData('Text', document.body.innerHTML); } else if (window.netscape) { if(navigator.userAgent.indexOf('Firefox')>0) { netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect'); var clip = Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard); if (!clip) return; var trans = Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable); if (!trans) return; trans.addDataFlavor('text/unicode'); var str = new Object(); var len = new Object(); var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString); //var copytext = 'Fire Fox ·Î º¹»ç '+document.body.innerHTML; var copytext = contents; str.data=copytext; trans.setTransferData("text/unicode",str,copytext.length*2); var clipid=Components.interfaces.nsIClipboard; if (!clip) return false; clip.setData(trans,null,clipid.kGlobalClipboard); } alert("¸ð¹ÙÀÏ ¸µÅ© ¿Ï·á!"); } } var strT = false; function text_blink(speed) { if (speed) { if (document.all); setInterval("text_blink()",speed*200); return; } var blink = document.all.tags("BLINK"); for (var i=0; i