var _centerWnd=null;function __getBrowserType()
{
var A=navigator.userAgent;if (A.indexOf('Opera')>0) return "OPERA";else if (A.indexOf('Firefox')>0) return "FIREFOX";else return "MSIE";};function __mgOpenPopup(A,B,C,D)
{
var E=navigator.appName;var F=parseInt(navigator.appVersion);if (E=="Microsoft Internet Explorer"&&F>=4) {
OpenModalDialog(A,B,C+6,D+28);} else {
WndCenterOpen(A,"_WndPopup",C,D,scroll,B);}};function WndCenterOpen(A,B,w,h,C,D)
{
var E=(screen.width)?(screen.width-w)/2:0;var F=(screen.height)?(screen.height-h)/2:0;var G='height='+h+',width='+w+',top='+F+',left='+E+',scrollbars='+C+D;_centerWnd=window.open(A,B,G);return _centerWnd;};function OpenModalDialog(A,B,C,D)
{
var E=__getBrowserType();var F=window.open(A,B,"Width="+C+", Height="+D+", top=100,left=100,toolbar=no,location=no,help=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");return F;};function wintest (A) {window.open(A,'',"width=100,height=100");};function getDigit(A)
{
var	 x,B;var	 C="";for(x=0;x<A.value.length;x++)
{
B=A.value.substring(x,x+1);if(B!=",")	C+=B;};return C;};function MakePayValue(A)
{
var B=new String(A);var C="";if (B.indexOf(".")) {
var D=B.split(".");if (D.length>1)  {
var B=new String(D[0]);if (D[1].substring(2,3)!="") D[1]=new String (parseInt(Math.round(D[1].substring(0,2)+"."+D[1].substring(2,3))));C="."+D[1].substring(0,2);}};var F=B.length;var G="";var H="";if (F<3) return (B+C);var I=0;for (var i=F;i>0;i--) {G=G+B.substring(i-1,i);if (++I==3&&i>1) {
G=G+',';I=0;}};var J=new String(G);for (i=J.length;i>0;i--) {
H=H+J.substring(i-1,i);};return (H+C);};function number_format(A)
{
return MakePayValue(A);};function isDigit(A,B)
{
var	C=true;var	D="0123456789"+B;for	(var i=0;i<A.length;i++) {
if (D.indexOf(A.charAt(i))<0)	{
C=false;break;}};return C;};function strTrim(A)
{
var B=/\s+/g;return A.replace(B,"");};function getNumber(A)
{
var	B="0123456789.";var C="";if (A.length<4) return A;for	(var i=0;i<A.length;i++) {
if (B.indexOf(A.charAt(i))<0)	{
continue;} else {
C=C+A.charAt(i);}};if (C.length<1) return 0;return parseInt(C);};function OnChangedNumText(A)
{
A.value=MakePayValue(parseInt(getNumber(A.value)));};function OnCheckNumber(A)
{
var B='';for (i=0;i<A.value.length;i++) if (!isNaN(parseInt(A.value.charAt(i)))) {
B=B+A.value.charAt(i);};A.value=parseInt(B.length?B:0);};function __mg_email_valid_check(A,B)
{var C=document.domain.substr(document.domain.indexOf('.')+1);if (A.search(/(^\..*)|(.*\.$)/)!=-1||A.search(/\S+@(\S+)\.(\S+)/)==-1) {
alert("ÀüÀÚ¿ìÆíÁÖ¼ÒÀÇ Çü½ÄÀº '°èÁ¤@[È£½ºÆ®|µµ¸ÞÀÎ]'°ú °°ÀÌ ±¸¼ºµÇ¾î¾ß ÇÏ¸ç,\r\n¾çÂÊ¿¡ '.'ÀÌ ±âÀçµÇ¾î¼­´Â ¾ÈµË´Ï´Ù.\r\n\r\n¿¹) webmaster@"+C);return false;};if (B) {ar_email=A.split("@");if (B.charAt(";")) {ar_denymail=B.split(";");for (var i=0;i<ar_denymail.length;i++) {if (ar_email[1].toLowerCase()==ar_denymail[i]) {
alert(ar_denymail[i]+" ÀÌ¸ÞÀÏ ÁÖ¼Ò´Â ¸ÞÀÏ¼ö½ÅÀÌ µÇÁö ¾Ê½À´Ï´Ù. ´Ù¸¥ ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");return false;}}} else {if (ar_email[1].toLowerCase()==B) {
alert(B+" ÀÌ¸ÞÀÏ ÁÖ¼Ò´Â ¸ÞÀÏ¼ö½ÅÀÌ µÇÁö ¾Ê½À´Ï´Ù. ´Ù¸¥ ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");return false;}
}};return true;};function __mg_string_length_check(A,B,C)
{
var D=__mg_string_trim(A.value);if (D.length<B) {
alert(C);A.focus();return false;};return true;};function __mg_string_trim(A)
{
var B=/\s+/g;return A.replace(B,"");};function __mgSystemErrorAlert(A)
{
objWindow=WndCenterOpen("/src/system/error_window.php?error_msg="+A,"error_win",440,365,0,'');objWindow.focus();};function __mg_get_password(A,B)
{
if (parseInt(A)<350) A=350;if (parseInt(B)<250) B=250;var C="dialogWidth:"+A+"px;dialogHeight:"+B+"px;status:no;scroll:no;resizable:yes;";var D=window.showModalDialog("/src/user/popup/get_password.php?iWndMode=dlg","",C);if (D==undefined||D=="")
{
return "";};return D;};function getCookieVal (A){
var B=document.cookie.indexOf (";",A);if (B==-1) B=document.cookie.length;return unescape(document.cookie.substring(A,B));};function GetCookie (A){
var B=A+"=";var C=B.length;var D=document.cookie.length;var i=0;while (i<D){
var j=i+C;if (document.cookie.substring(i,j)==B) return getCookieVal (j);i=document.cookie.indexOf(" ",i)+1;if (i==0) break;};return null;};function __mgStartPopup(A,B,C,D,E,F,G)
{
var H="/src/main/popup/indexpage_popup.php?popid="+A;var I=__getBrowserType();if (GetCookie("__ar_popup_"+A)) {
return;};if (F==-1&&G==-1) {if (E==0) {WndCenterOpen(H,'indexpage_popup_'+A,B,C,D,'');} else {if (I=="OPERA"||I=="FIREFOX") {WndCenterOpen(H,'indexpage_popup_'+A,B,C,D,'');} else {var J='dialogWidth='+B+'px;dialogHeight='+C+'px;help=no;status=no;scroll='+D+';resizable=no;';window.showModalDialog(H,'',J);}
}
} else {if (E==0) {var K='height='+C+',width='+B+',top='+G+',left='+F+',scrollbars='+D;_centerWnd=window.open(H,'indexpage_popup_'+A,K);} else {if (I=="OPERA"||I=="FIREFOX") {var K='height='+C+',width='+B+',top='+F+',left='+G+',scrollbars='+D;_centerWnd=window.open(H,'indexpage_popup_'+A,K);}
else {var J='dialogLeft='+F+'px;dialogTop='+G+'px;dialogWidth='+B+'px;dialogHeight='+C+'px;help=no;status=no;scroll='+D+';resizable=no;';window.showModalDialog(H,"",J);}
}
}};function __sys_coupon_view(A)
{
var B=WndCenterOpen("/src/user/popup/user_coupon_view.php?opentype=issue&coupon_mst_id="+A,'WndCouponView',420,330,0,'');B.focus();};function __sys_emb_img_detail_viewer(A)
{
var B=630;var C=515;OpenModalDialog("/src/products/popup/products_image_view.php?product_mst_id="+A,"",B+6,C+28);};function __email_reject()
{
var A=420;var B=313;OpenModalDialog("/src/user/popup/email_reject.php?close=modal","",A,B);};function is_valid_image(A)
{
var B=A.substr(A.length-3,3).toLowerCase();switch (B) {
case "gif":case "jpg":case "png":case "jpeg":case "jpe":return true;break;default:if (A.substr(0,4).toLowerCase()=='http') return true;break;};return false;};function __sys_get_multibyte_length(A,B){
var C=A.value;var D=parseInt(B,10);var E=0;var F=0;if (A.value=="")
{
return 1;};for (i=0;i<C.length;i++)
{
var E=C.charCodeAt(i);var H=C.substr(i,1).toUpperCase();E=parseInt(E);if ((H<"0"||H>"9")&&(H<"A"||H>"Z")&&((E>255)||(E<0)))
{
F=F+2;}
else
{
F=F+1;}};if(F>D)
{alert("°ø¹éÆ÷ÇÔ "+D+"ÀÚ(ÇÑ±Û:"+(D/2)+"ÀÚ)ÀÌ³»·Î ÀÔ·Â ÇÏ½Ã±â ¹Ù¶ø´Ï´Ù.\n\nÇöÀç "+F+"ÀÚ(¿µ¹®/¼ýÀÚ±âÁØ) ÀÔ·ÂµÇ¾ú½À´Ï´Ù.");A.select();return 0;};return F;};function __ar_document_write(A)
{
document.write(A);};function resize_popup(){
var A=__getBrowserType();if(A=="MSIE"&&window.dialogWidth) {
window.dialogWidth=100+'px';window.dialogHeight=100+'px';}
else {window.resizeTo(100,100);};var B=parseInt(document.body.scrollWidth);var C=parseInt(document.body.scrollHeight);var D=screen.width-50;var E=screen.height-50;var F=0;if (navigator.userAgent.indexOf("MSIE")>0) {
F=80;if(navigator.userAgent.indexOf("MSIE 6")>0) F=60;}
else if(navigator.userAgent.indexOf("Firefox")>0) F=50;else if(navigator.userAgent.indexOf("Opera")>0) F=30;else if(navigator.userAgent.indexOf("Netscape")>0) F=-2;if (B>D) {
window.document.body.scroll="yes";B=D;};if (C>E-F) {
window.document.body.scroll="yes";B+=19;C=E-F;};if(A=="MSIE"&&window.dialogWidth) {
window.dialogWidth=(B+5)+'px';window.dialogHeight=(C+F)+'px';}
else {window.resizeTo(B+10,C+F);}};var _centerWnd=null;function __getBrowserType()
{
var A=navigator.userAgent;if (A.indexOf('Opera')>0) return "OPERA";else if (A.indexOf('Firefox')>0) return "FIREFOX";else return "MSIE";};function __mgOpenPopup(A,B,C,D)
{
var E=navigator.appName;var F=parseInt(navigator.appVersion);if (E=="Microsoft Internet Explorer"&&F>=4) {
OpenModalDialog(A,B,C+6,D+28);} else {
WndCenterOpen(A,"_WndPopup",C,D,scroll,B);}};function WndCenterOpen(A,B,w,h,C,D)
{
var E=(screen.width)?(screen.width-w)/2:0;var F=(screen.height)?(screen.height-h)/2:0;var G='height='+h+',width='+w+',top='+F+',left='+E+',scrollbars='+C+D;_centerWnd=window.open(A,B,G);return _centerWnd;};function OpenModalDialog(A,B,C,D)
{
var E=__getBrowserType();var F=window.open(A,B,"Width="+C+", Height="+D+", top=100,left=100,toolbar=no,location=no,help=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");return F;};function wintest (A) {window.open(A,'',"width=100,height=100");};function getDigit(A)
{
var	 x,B;var	 C="";for(x=0;x<A.value.length;x++)
{
B=A.value.substring(x,x+1);if(B!=",")	C+=B;};return C;};function MakePayValue(A)
{
var B=new String(A);var C="";if (B.indexOf(".")) {
var D=B.split(".");if (D.length>1)  {
var B=new String(D[0]);if (D[1].substring(2,3)!="") D[1]=new String (parseInt(Math.round(D[1].substring(0,2)+"."+D[1].substring(2,3))));C="."+D[1].substring(0,2);}};var F=B.length;var G="";var H="";if (F<3) return (B+C);var I=0;for (var i=F;i>0;i--) {G=G+B.substring(i-1,i);if (++I==3&&i>1) {
G=G+',';I=0;}};var J=new String(G);for (i=J.length;i>0;i--) {
H=H+J.substring(i-1,i);};return (H+C);};function number_format(A)
{
return MakePayValue(A);};function isDigit(A,B)
{
var	C=true;var	D="0123456789"+B;for	(var i=0;i<A.length;i++) {
if (D.indexOf(A.charAt(i))<0)	{
C=false;break;}};return C;};function strTrim(A)
{
var B=/\s+/g;return A.replace(B,"");};function getNumber(A)
{
var	B="0123456789.";var C="";if (A.length<4) return A;for	(var i=0;i<A.length;i++) {
if (B.indexOf(A.charAt(i))<0)	{
continue;} else {
C=C+A.charAt(i);}};if (C.length<1) return 0;return parseInt(C);};function OnChangedNumText(A)
{
A.value=MakePayValue(parseInt(getNumber(A.value)));};function OnCheckNumber(A)
{
var B='';for (i=0;i<A.value.length;i++) if (!isNaN(parseInt(A.value.charAt(i)))) {
B=B+A.value.charAt(i);};A.value=parseInt(B.length?B:0);};function __mg_email_valid_check(A,B)
{var C=document.domain.substr(document.domain.indexOf('.')+1);if (A.search(/(^\..*)|(.*\.$)/)!=-1||A.search(/\S+@(\S+)\.(\S+)/)==-1) {
alert("ÀüÀÚ¿ìÆíÁÖ¼ÒÀÇ Çü½ÄÀº '°èÁ¤@[È£½ºÆ®|µµ¸ÞÀÎ]'°ú °°ÀÌ ±¸¼ºµÇ¾î¾ß ÇÏ¸ç,\r\n¾çÂÊ¿¡ '.'ÀÌ ±âÀçµÇ¾î¼­´Â ¾ÈµË´Ï´Ù.\r\n\r\n¿¹) webmaster@"+C);return false;};if (B) {ar_email=A.split("@");if (B.charAt(";")) {ar_denymail=B.split(";");for (var i=0;i<ar_denymail.length;i++) {if (ar_email[1].toLowerCase()==ar_denymail[i]) {
alert(ar_denymail[i]+" ÀÌ¸ÞÀÏ ÁÖ¼Ò´Â ¸ÞÀÏ¼ö½ÅÀÌ µÇÁö ¾Ê½À´Ï´Ù. ´Ù¸¥ ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");return false;}}} else {if (ar_email[1].toLowerCase()==B) {
alert(B+" ÀÌ¸ÞÀÏ ÁÖ¼Ò´Â ¸ÞÀÏ¼ö½ÅÀÌ µÇÁö ¾Ê½À´Ï´Ù. ´Ù¸¥ ¸ÞÀÏÁÖ¼Ò¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");return false;}
}};return true;};function __mg_string_length_check(A,B,C)
{
var D=__mg_string_trim(A.value);if (D.length<B) {
alert(C);A.focus();return false;};return true;};function __mg_string_trim(A)
{
var B=/\s+/g;return A.replace(B,"");};function __mgSystemErrorAlert(A)
{
objWindow=WndCenterOpen("/src/system/error_window.php?error_msg="+A,"error_win",440,365,0,'');objWindow.focus();};function __mg_get_password(A,B)
{
if (parseInt(A)<350) A=350;if (parseInt(B)<250) B=250;var C="dialogWidth:"+A+"px;dialogHeight:"+B+"px;status:no;scroll:no;resizable:yes;";var D=window.showModalDialog("/src/user/popup/get_password.php?iWndMode=dlg","",C);if (D==undefined||D=="")
{
return "";};return D;};function getCookieVal (A){
var B=document.cookie.indexOf (";",A);if (B==-1) B=document.cookie.length;return unescape(document.cookie.substring(A,B));};function GetCookie (A){
var B=A+"=";var C=B.length;var D=document.cookie.length;var i=0;while (i<D){
var j=i+C;if (document.cookie.substring(i,j)==B) return getCookieVal (j);i=document.cookie.indexOf(" ",i)+1;if (i==0) break;};return null;};function __mgStartPopup(A,B,C,D,E,F,G)
{
var H="/src/main/popup/indexpage_popup.php?popid="+A;var I=__getBrowserType();if (GetCookie("__ar_popup_"+A)) {
return;};if (F==-1&&G==-1) {if (E==0) {WndCenterOpen(H,'indexpage_popup_'+A,B,C,D,'');} else {if (I=="OPERA"||I=="FIREFOX") {WndCenterOpen(H,'indexpage_popup_'+A,B,C,D,'');} else {var J='dialogWidth='+B+'px;dialogHeight='+C+'px;help=no;status=no;scroll='+D+';resizable=no;';window.showModalDialog(H,'',J);}
}
} else {if (E==0) {var K='height='+C+',width='+B+',top='+G+',left='+F+',scrollbars='+D;_centerWnd=window.open(H,'indexpage_popup_'+A,K);} else {if (I=="OPERA"||I=="FIREFOX") {var K='height='+C+',width='+B+',top='+F+',left='+G+',scrollbars='+D;_centerWnd=window.open(H,'indexpage_popup_'+A,K);}
else {var J='dialogLeft='+F+'px;dialogTop='+G+'px;dialogWidth='+B+'px;dialogHeight='+C+'px;help=no;status=no;scroll='+D+';resizable=no;';window.showModalDialog(H,"",J);}
}
}};function __sys_coupon_view(A)
{
var B=WndCenterOpen("/src/user/popup/user_coupon_view.php?opentype=issue&coupon_mst_id="+A,'WndCouponView',420,330,0,'');B.focus();};function __sys_emb_img_detail_viewer(A)
{
var B=630;var C=515;OpenModalDialog("/src/products/popup/products_image_view.php?product_mst_id="+A,"",B+6,C+28);};function __email_reject()
{
var A=420;var B=313;OpenModalDialog("/src/user/popup/email_reject.php?close=modal","",A,B);};function is_valid_image(A)
{
var B=A.substr(A.length-3,3).toLowerCase();switch (B) {
case "gif":case "jpg":case "png":case "jpeg":case "jpe":return true;break;default:if (A.substr(0,4).toLowerCase()=='http') return true;break;};return false;};function __sys_get_multibyte_length(A,B){
var C=A.value;var D=parseInt(B,10);var E=0;var F=0;if (A.value=="")
{
return 1;};for (i=0;i<C.length;i++)
{
var E=C.charCodeAt(i);var H=C.substr(i,1).toUpperCase();E=parseInt(E);if ((H<"0"||H>"9")&&(H<"A"||H>"Z")&&((E>255)||(E<0)))
{
F=F+2;}
else
{
F=F+1;}};if(F>D)
{alert("°ø¹éÆ÷ÇÔ "+D+"ÀÚ(ÇÑ±Û:"+(D/2)+"ÀÚ)ÀÌ³»·Î ÀÔ·Â ÇÏ½Ã±â ¹Ù¶ø´Ï´Ù.\n\nÇöÀç "+F+"ÀÚ(¿µ¹®/¼ýÀÚ±âÁØ) ÀÔ·ÂµÇ¾ú½À´Ï´Ù.");A.select();return 0;};return F;};function __ar_document_write(A)
{
document.write(A);};function resize_popup(){
var A=__getBrowserType();if(A=="MSIE"&&window.dialogWidth) {
window.dialogWidth=100+'px';window.dialogHeight=100+'px';}
else {window.resizeTo(100,100);};var B=parseInt(document.body.scrollWidth);var C=parseInt(document.body.scrollHeight);var D=screen.width-50;var E=screen.height-50;var F=0;if (navigator.userAgent.indexOf("MSIE")>0) {
F=80;if(navigator.userAgent.indexOf("MSIE 6")>0) F=60;}
else if(navigator.userAgent.indexOf("Firefox")>0) F=50;else if(navigator.userAgent.indexOf("Opera")>0) F=30;else if(navigator.userAgent.indexOf("Netscape")>0) F=-2;if (B>D) {
window.document.body.scroll="yes";B=D;};if (C>E-F) {
window.document.body.scroll="yes";B+=19;C=E-F;};if(A=="MSIE"&&window.dialogWidth) {
window.dialogWidth=(B+5)+'px';window.dialogHeight=(C+F)+'px';}
else {window.resizeTo(B+10,C+F);}};function setAutoTab(A,B,e)
{
var C=(navigator.appName.indexOf("Netscape")!=-1);var D=(C)?e.which:e.keyCode;var E=(C)?[0,8,9]:[0,8,9,16,17,18,37,38,39,40,46];if(A.value.length>=B&&!containsElement(E,D))
{
A.value=A.value.slice(0,B);A.form[(getIndex(A)+1) % A.form.length].focus();};function containsElement(J,K)
{
var F=false,G=0;while(!F&&G<J.length) {if(J[G]==K) F=true;else G++;};return F;};function getIndex(A)
{
var G=-1,i=0,F=false;while (i<A.form.length&&G==-1) {if (A.form[i]==A) G=i;else i++;};return G;};return true;};function __ps_documentwrite(A){
document.write(A);}