function getNavigatorType(){if(navigator.appName=="Microsoft Internet Explorer"){return 1}else if(navigator.appName=="Netscape"){return 2}else{return 0}};function MM_swapImgRestore(){ var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++){x.src=x.oSrc}};function MM_preloadImages(){ var d=document;if(d.images){if(!d.MM_p){d.MM_p=new Array()};var i,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0;i<a.length;i++){if(a[i].indexOf("#")!=0){d.MM_p[j]=new Image;d.MM_p[j++].src=a[i]}}}};function MM_findObj(n,d){ var p,i,x;if(!d){d=document};if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p)};if(!(x=d[n])&&d.all){x=d.all[n]};for(i=0;!x&&i<d.forms.length;i++){x=d.forms[i][n]};for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=MM_findObj(n,d.layers[i].document);if(!x&&document.getElementById)x=document.getElementById(n);return x};function MM_swapImage(){ var i,j=0,x,a=MM_swapImage.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3)if((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc)x.oSrc=x.src;x.src=a[i+2]}};function MM_showHideLayers(){ var i,p,v,obj,args=MM_showHideLayers.arguments;for(i=0;i<(args.length-2);i+=3)if((obj=MM_findObj(args[i]))!=null){v=args[i+2];if(obj.style){obj=obj.style;v=(v=='show')?'visible':(v='hide')?'hidden':v};obj.visibility=v}};function na_restore_img_src(name,nsdoc){var img=eval((navigator.appName.indexOf('Netscape',0)!=-1)? nsdoc+'.'+name:'document.all.'+name);if(name=='')return;if(img&&img.altsrc){img.src=img.altsrc;img.altsrc=null}};function na_change_img_src(name,nsdoc,rpath,preload){var img=eval((navigator.appName.indexOf('Netscape',0)!=-1)? nsdoc+'.'+name:'document.all.'+name);if(name=='')return;if(img){img.altsrc=img.src;img.src=rpath}};clientInfo=function(){var ua=navigator.userAgent.toLowerCase();var uinfo={};if(ua.indexOf('msie')>-1){if(ua.indexOf('msie 7.0')>-1){var isBrowser="MSIE 7.0"}else if(ua.indexOf('msie 6.0')>-1){var isBrowser="MSIE 6.0"}else if(ua.indexOf('msie 5.5')>-1){var isBrowser="MSIE 5.5"}else{var isBrowser="MSIE ׿"}}else if(ua.indexOf('firefox')>-1){if(ua.indexOf('firefox/2.0')>-1){var isBrowser="FireFox 2.0"}else if(ua.indexOf('firefox/1.5')>-1){var isBrowser="FireFox 1.5"}else{var isBrowser="FireFox ׿"}}else if(ua.indexOf('safari')>-1){var isBrowser="Safari"}else if(ua.indexOf('opera')>-1){var isBrowser="Opera"}else{var isBrowser="Ÿ"};uinfo["b"]=isBrowser;if((ua.indexOf('windows xp')>-1)||(ua.indexOf('windows nt 5.1')>-1)){var isOS="Windows XP"}else if(ua.indexOf('windows 98')>-1){var isOS="Windows 98"}else if(ua.indexOf('windows nt 5.0')>-1){var isOS="Windows 2000"}else if(ua.indexOf('linux')>-1){var isOS="Linux"}else if(ua.indexOf('windows nt 5.2')>-1){var isOS="Windows 2003"}else{var isOS="Ÿ"};uinfo["o"]=isOS;var screen=window.screen;uinfo["s"]=screen.width+"*"+screen.height;return uinfo};var cInfo=clientInfo();function bizfun_login(){frm=document.login;if(frm.cp_id.value==""){alert("̵ Էϼ");frm.cp_id.focus();return};if(frm.cp_pw.value==""){alert("йȣ Էϼ");frm.cp_pw.focus();return};frm.submit()};function popup(url,width,height,New1){window.open(url,New1,'Width='+width+',Height='+height+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0')};function search_goods(){form=document.search;if(form.search_w.value==""){alert("˻ Էϼ.");form.search_w.focus()}else{form.action="../shop/goods_list.php";form.submit()}};function showONCForm(obj){document.all.myorder.style.display="";document.myorder_form.ONC.focus()};function order_check(){frm=document.myorder_form;if(frm.ONC.value==""){alert("ֹȣ Էϼ");frm.ONC.focus()}else{frm.action="../shop/myorder.php";frm.submit()}};function popup1(check,page,name,w,h,scroll){var win=null;var winl=(screen.width-w)/2;var wint=(screen.height-h)/3;var settings='';if(check=='modal'){settings='dialogHeight: '+h+'px;';settings+='dialogWidth: '+w+'px;';settings+='dialogTop: '+wint+'px;';settings+='dialogLeft: '+winl+'px;';settings+='scrollbars: '+scroll+';';settings+='resizable: no;';settings+='status: no; help: no';showModalDialog(page,name,settings)}else{settings='height='+h+',';settings+='width='+w+',';settings+='top='+wint+',';settings+='left='+winl+',';settings+='scrollbars='+scroll+',';settings+='resizable=no,';settings+='status=no';win=window.open(page,name,settings);if(parseInt(navigator.appVersion)>=4)win.window.focus()}};function all_ckbox(obj,ele){var frm=obj.form.name;var form="document."+frm;var chkBox=eval(form).elements[ele];if(chkBox==undefined){return};var chkLen=chkBox.length;if(chkLen==undefined){if(obj.checked==true){if(chkBox.disabled==false){chkBox.checked=true}}else{chkBox.checked=false}}else{if(obj.checked==true){for(i=0;i<chkLen;i++){if(chkBox[i].disabled==false){chkBox[i].checked=true}}}else{for(i=0;i<chkLen;i++){chkBox[i].checked=false}}}};function viewObj(ftype,width,height,src){if(ftype=='flash'){document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\""+width+"\" height=\""+height+"\">");document.writeln("<param name=\"movie\" value=\""+src+"\">");document.writeln("<param name=\"quality\" value=\"high\" />");document.writeln("<param name=\"wmode\" value=\"transparent\">");document.writeln("<embed src=\""+src+"\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+width+"\"  height=\""+height+"\">");document.writeln("</object>")}};function YesNo(url,msg){if(confirm(msg)){document.location=url}};function CheckNum(num){if(isNaN(num.value)){alert('ڸ Էϼ.');num.value="";num.focus();num.select();return}};function checknum(val,exe){var comp="0123456789"+exe;var Len=val.value.length;for(i=0;i<Len;i++){if(comp.indexOf(val.value.substring(i,i+1))<0){alert(" ڰ ƴմϴ. ٽ Է ֽʽÿ");val.value="";val.focus();return}}};reSize=function(obj){var iframe=obj.name;var objBody=eval(iframe).document.body;var objFrame=document.getElementsByName(iframe)[0];ifrmHeight=objBody.scrollHeight;BIZFUN.util.Dom.setStyle(iframe,'height',ifrmHeight+'px');ckTime=function(){reSize(obj)};setTimeout(ckTime,1000)};function clean_word(sel){sel.value="";sel.focus();return};function sel_board(sel,val){var fr=document.sb;if(sel=='main1'){fr.sel_board1.value=val;document.board_main1.location.href="./main_board.php?table="+val}else if(sel=='main2'){fr.sel_board2.value=val;document.news_board1.location.href="./news_board.php?table="+val}else if(sel=='main3'){fr.sel_board3.value=val;document.news_board2.location.href="./news_board.php?table="+val}};function board_link(frm){if(frm=='main1'){top.main.location.href="../board/list.php3?table="+document.sb.sel_board1.value}else if(frm=='main2'){if(document.sb.sel_board2.value!='total1'){top.main.location.href="../board/list.php3?table="+document.sb.sel_board2.value}}else if(frm=='main3'){if(document.sb.sel_board3.value!='total2'){top.main.location.href="../board/list.php3?table="+document.sb.sel_board3.value}}};function changeImg(target,path){var prevImg=document.sb.chgImg.value;var prevPath=document.sb.chgPath.value;document.getElementById(target).src=path;document.getElementById(prevImg).src=prevPath;document.sb.chgImg.value=target;document.sb.chgPath.value=path.replace("_s","")};function changeImg1(target,path){var prevImg=document.sb.chgImg1.value;var prevPath=document.sb.chgPath1.value;document.getElementById(target).src=path;document.getElementById(prevImg).src=prevPath;document.sb.chgImg1.value=target;document.sb.chgPath1.value=path.replace("_s","")};function changeImg2(target,path){var prevImg=document.sb.chgImg2.value;var prevPath=document.sb.chgPath2.value;document.getElementById(target).src=path;document.getElementById(prevImg).src=prevPath;document.sb.chgImg2.value=target;document.sb.chgPath2.value=path.replace("_s","")};function copyto(){var form=document.regi;if(form.isequal.checked){form.r_name.value=form.o_name.value;form.r_phone1.value=form.o_phone1.value;form.r_phone2.value=form.o_phone2.value;form.r_phone3.value=form.o_phone3.value;form.r_hp1.value=form.o_hp1.value;form.r_hp2.value=form.o_hp2.value;form.r_hp3.value=form.o_hp3.value;form.zipcode.value=form.o_post1.value;form.zipcode1.value=form.o_post2.value;form.add.value=form.o_address.value}else{form.r_name.value="";form.r_phone1.value="";form.r_phone2.value="";form.r_phone3.value="";form.r_hp1.value="";form.r_hp2.value="";form.r_hp3.value="";form.zipcode.value="";form.zipcode1.value="";form.add.value=""}};function fill_pay_name(){var form=document.regi;if(form.chk_name.checked){form.paid_into.value=form.o_name.value}else{form.paid_into.value=""}};function show_online(){if(online.style.display=='none'){online.style.display='block';card.style.display='none'}else{online.style.display='block'}};function show_pg(v){if(v=='o'){document.getElementById('online').style.display='block';document.getElementById('card').style.display='none'}else{document.getElementById('online').style.display='none';document.getElementById('card').style.display='block'};document.getElementById('ptype').value=v;if(v=='c'){var msg="ſī ÿ [ϱ] ư Ŭ  â(pop up) ߴ â ݵ  Է ּž <u>ֹ  ˴ϴ.</u>"}else if(v=='b'){var msg="ǽð ü ÿ [ϱ] ư Ŭ  â(pop up) ߴ â ݵ  Է ּž <u>ֹ  ˴ϴ.</u>"}else if(v=='v'){var msg="· ÿ [ϱ] ư Ŭ  â(pop up) ߴ â ݵ  Է ּž <u>ֹ  ˴ϴ.</u>"}else{var msg="ſī ÿ [ϱ] ư Ŭ  â(pop up) ߴ â ݵ  Է ּž <u>ֹ  ˴ϴ.</u>"};document.getElementById('ptype_msg').innerHTML=msg};function fncZipSearch(mode){var url="../zip_code/zipcode_search.php?mode="+mode;popup1('',url,'zipcode_search',388,290,'1')};function bt(id,after){var brw=getNavigatorType();if(brw==1){document.getElementById(id).filters.blendTrans.stop();document.getElementById(id).filters.blendTrans.Apply();document.getElementById(id).src=after;document.getElementById(id).filters.blendTrans.Play()}};function showGoods(obj){var sg_layer=document.getElementById('side_goods').style;if(sg_layer.display==""){sg_layer.display="none"}else{sg_layer.display=""}};function showBank(obj){var sg_layer=document.getElementById('side_bank').style;if(sg_layer.display==""){sg_layer.display="none"}else{sg_layer.display=""}};function ckGoCoupon(i){var key=document.getElementById('cpkey_'+i).value;var gid=document.getElementById('gid_'+i).value;if(key==""){alert('ȣ Է ּ');document.getElementById('cpkey_'+i).focus();return};document.location.href="../lib/ck_coupon.php?cpkey="+key+"&gid="+gid};tgcorpBill=function(mxid,mxissueno,smode,billtype){var url="https://npg.tgcorp.com/dlp/tgcorpbill.jsp?MxID="+mxid+"&MxIssueNO="+mxissueno+"&Smode="+smode+"&BillType="+billtype;var win=window.open(url,"tgcorp","width=400,height=640,menubar=no,resizable=yes");if(win.focus)win.focus()};searchEduspa=function(){var f=document.search_frm;if(f.sday.value==""){alert('˻  Է ּ');return false};if(f.eday.value==""){alert('˻  Է ּ');return false};var sday=f.sday.value.replace(/\-/gi,"");var eday=f.eday.value.replace(/\-/gi,"");if(sday>eday){alert('˻  Ϻ   ϴ.\nٽ  ּ');return false};if(f.vtype.value=="excel"){f.action="adjust_eduspa_dn.php";f.target="hframe"}else{f.action="adjustEduspa.php";f.target="_self"};f.submit()};ckSearch=function(){var f=document.search_form;if(f.s_word.value=='˻ Է ּ.^^*'||f.s_word.value==""){alert('˻ Է ּ.^^*');return false};f.submit()};mgrMOrder=function(pNum,pStr){popup1('','order_movie_memo.php?oid='+pNum+'&name='+pStr,'nwmovie','500','350','0')};function delete_order(){var check_confirm=confirm(" Ͻðڽϱ?");document.order_admin.mode.value="del";if(check_confirm==true){document.order_admin.submit()}};function print_order(){var check_confirm=confirm(" Ʈ ϽÁٽϱ?");if(check_confirm==true){var winPrint=popup1('','','wPrint',800,600,'1');document.order_admin.target="wPrint";document.order_admin.action="order_admin_print.php";document.order_admin.submit();document.order_admin.target="h_frame";document.order_admin.action="order_admin_ok.php"}};function down_order(){var check_confirm=confirm(" ٿε ϽÁٽϱ?");if(check_confirm==true){document.order_admin.action="order_admin_excel.php";document.order_admin.submit()}};function down_bill(){var check_confirm=confirm(" ٿε ϽÁٽϱ?");if(check_confirm==true){document.order_admin.action="order_admin_bill.php";document.order_admin.submit()}};function edit_order(){var check_confirm=confirm(" Ͻðڽϱ?");document.order_admin.mode.value="edit";if(check_confirm==true){document.order_admin.submit()}};function edit_line(obj){var chkBox1=document.order_admin.elements['ckBox[]'];if(chkBox1.length==undefined){chkBox1.checked=true}else{chkBox1[obj].checked=true}};function ViewImage(ix,iy,index){var win;var sWidth;var sHeight;iyy=iy+130;ixx=ix+150;url="view_img.php?img_no="+index;window.open(url,"imageviewer","width="+ixx+",height="+iyy+",menubar=no,toolbar=no,scrollbars=0")};function in_cart(gid,ccode){document.getElementById('dynamic').src="../shop/shop_cart.php?gid="+gid+"&ccode="+ccode};function CheckOption(sel){var f=document.cart_all;var chkBox=f.elements['goods_idx[]'];var chkLen=chkBox.length;f.all_gid.value="";f.all_gcate.value="";f.PRICEPRINT.value=0;if(chkLen==undefined){if(chkBox.checked==true){var val=chkBox.value.split("|");f.all_gid.value="|"+val[1];f.all_gcate.value="|"+val[2];f.PRICEPRINT.value=parseInt(val[0])}}else{for(var i=0;i<chkLen;i++){if(chkBox[i].checked==true){var val=chkBox[i].value.split("|");f.all_gid.value=f.all_gid.value+"|"+val[1];f.all_gcate.value=f.all_gcate.value+"|"+val[2];f.PRICEPRINT.value=parseInt(f.PRICEPRINT.value)+parseInt(val[0])}}}};function goCart(){var f=document.cart_all;var chkBox=f.elements['goods_idx[]'];var chkLen=chkBox.length;var cnt=0;if(chkLen==undefined){if(chkBox.checked==false){alert('Ͻ ǰ ϴ.\nϽ ǰ  ּ');return}}else{for(var i=0;i<chkLen;i++){if(chkBox[i].checked==true){cnt++}};if(cnt==0){alert('Ͻ ǰ ϴ.\nϽ ǰ  ּ');return}};f.submit()};function ck_jaego(uid){form=eval("document.shop_pack_edit"+uid);orgVal=form.quality.value;if(form.quality.value>form.jaego.value){alert(" ̻ ֹϽǼ ϴ.");form.quality.value=orgVal};if(form.quality.value<=orgVal){alert(" 0   ϴ.");form.quality.value='1'}};function count_change(uid,val){form=eval("document.shop_pack_edit"+uid);orgVal=form.quality.value;if(val==0){form.quality.value=orgVal-1;if(form.quality.value<=0){alert(' 0   ϴ.');form.quality.value=orgVal}};if(val==1){form.quality.value=parseInt(orgVal)+1}};function chk_checkbox(){var form = document.getElementById('memList');form.target = "";form.action = "form_mailing.php";var chkBox=form.elements['chk[]'];var k=0;if(chkBox==undefined){return};var chkLen=chkBox.length;if(chkLen==undefined){if(chkBox.checked==true){k++}}else{for(i=0;i<chkLen;i++){if(chkBox[i].checked==true){k++}}};if(k>0){ form.submit()}else{alert("Ϻ ȸ ּ.");return}};function imgCbox(N,tabstop){var objs,cboxes,Img,Span,A;objs=document.getElementsByTagName("INPUT");if(N==undefined)return false;if(tabstop==undefined)tabstop=true;for(var i=0;i<objs.length;i++){if(objs[i].type!="checkbox"||objs[i].name!=N)continue;if(imgCbox.Objs[N]==undefined){imgCbox.Objs[N]=[];imgCbox.Imgs[N]=[];imgCbox.ImgObjs[N]=[]};var len=imgCbox.Objs[N].length;imgCbox.Objs[N][len]=objs[i];imgCbox.Imgs[N][len]={};(Img=new Image()).src=objs[i].getAttribute("onsrc");imgCbox.Imgs[N][len]["on"]=Img;(Img=new Image()).src=objs[i].getAttribute("offsrc");imgCbox.Imgs[N][len]["off"]=Img; Img=document.createElement("IMG");Img.src=objs[i].checked?objs[i].getAttribute("onsrc"):objs[i].getAttribute("offsrc");Img.style.borderWidth="0px";Img.onclick=new Function("imgCbox.onclick('"+N+"','"+len+"')");imgCbox.ImgObjs[N][len]=Img; A=document.createElement("A");if(tabstop){A.href="javascript:;";A.onkeypress=new Function("evt","if(evt==undefined)evt=event;if(evt.keyCode==13){ imgCbox.onclick('"+N+"','"+len+"'); }")};A.style.borderWidth="0px";A.appendChild(Img); Span=objs[i].parentNode;Span.style.display="none";Span.parentNode.insertBefore(A,Span)}};imgCbox.onclick=function(N,idx){var C=imgCbox.Objs[N][idx];var I=imgCbox.ImgObjs[N][idx];C.checked=!C.checked;I.src=imgCbox.Imgs[N][idx][C.checked?"on":"off"].src; if(C.onclick!=undefined||C.onclick!=null)C.onclick()};imgCbox.Objs={};imgCbox.Imgs={};imgCbox.ImgObjs={};function chg_txt(sel){if(sel.value==1){document.getElementById('gt_txt').innerText="ټ";document.getElementById('gc_txt').innerText="ǻ";document.getElementById('gd_txt').innerText="";document.getElementById('gp_txt').innerText="ڸ";document.getElementById('mov').style.display="none"}else if(sel.value==3){document.getElementById('gt_txt').innerText="¼";document.getElementById('gc_txt').innerText="Կп";document.getElementById('gd_txt').innerText="ϼ";document.getElementById('gp_txt').innerText="";document.getElementById('mov').style.display="block"}else if(sel.value==4){document.getElementById('gt_txt').innerText="";document.getElementById('gc_txt').innerText="";document.getElementById('gd_txt').innerText="";document.getElementById('gp_txt').innerText=" ";document.getElementById('mov').style.display="none"}else{document.getElementById('gt_txt').innerText="";document.getElementById('gc_txt').innerText="ǻ";document.getElementById('gd_txt').innerText="";document.getElementById('gp_txt').innerText="ڸ";document.getElementById('mov').style.display="none"}};clickDateInput=function(e){if(document.getElementById('gd_txt').innerText!="ϼ"){Calendar(e)}};function ViewImage1(ifile,ix,iy,ititle){var win;var sWidth;var sHeight;win=window.open("","imageviewer","width="+ix+",height="+iy+",menubar=no,toolbar=no");win.document.open();win.document.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">");win.document.write("<!-- Ӹ   --> ");win.document.write("<html>");win.document.write("<head>");win.document.write("<meta http-equiv=\"content-type\" content=\"text/html; charset=euc-kr\">");win.document.write("<title>"+ititle+"</title>");win.document.write("</head>");win.document.write("<body leftmargin=\"0\" topmargin=\"0\">");win.document.write("<div style=\"position:absolute;width:"+ix+"px;height:"+iy+"px;left:0px;top:0px\">");win.document.write("<A HREF=\"javascript:self.close()\"><img src=\""+ifile+"\" border=\"0\"></A>");win.document.write("</div>");win.document.write("</body>");win.document.write("</html>");win.document.close()};function insert_goods(){form=document.WriteMail;form.com_uid.value=form.hts_company.options(form.hts_company.selectedIndex).value};function r_del(){if_rgoods.ckBoxf.mode.value="_del";if_rgoods.ckBoxf.submit()};click_bt_chg=function(e,bt){document.getElementById(e.id).src="/img/"+bt};