﻿<!--
    var old_menu = '';
    
    function contentOpen(cellbar)
    {   
        //alert("old_menu : " + old_menu + " cellbar :" + cellbar);
        if(old_menu != cellbar )
        {
            if(old_menu != '')
            {
                old_menu.style.display = 'none';
            }
            
            cellbar.style.display = 'block';
            old_menu = cellbar;
        }
        else
        {
            cellbar.style.display = 'none';
            old_menu = '';
        }
    }
    
    var pId = '';
    
    function contentOpen2(nId)
    {
        var nTr1 = "1tr" + nId;
        var nTr2 = "2tr" + nId;
        var nTr3 = "3tr" + nId;
        var nTr4 = "4tr" + nId;
        
        if(pId != nId )
        {
            if(pId != '')
            {
                var pTr1 = "1tr" + pId;
                var pTr2 = "2tr" + pId;
                var pTr3 = "3tr" + pId;
                var pTr4 = "4tr" + pId;
                
                document.getElementById(pTr1).style.display = 'none';
                document.getElementById(pTr2).style.display = 'none';
                document.getElementById(pTr3).style.display = 'none';
                document.getElementById(pTr4).style.display = 'none';
            }
            
            document.getElementById(nTr1).style.display = 'block';
            document.getElementById(nTr2).style.display = 'block';
            document.getElementById(nTr3).style.display = 'block';
            document.getElementById(nTr4).style.display = 'block';
            
            pId = nId;
        }
        else
        {
            document.getElementById(nTr1).style.display = 'none';
            document.getElementById(nTr2).style.display = 'none';
            document.getElementById(nTr3).style.display = 'none';
            document.getElementById(nTr4).style.display = 'none';
            
            pId = '';
        }
    }
    
    
    function go_Register()
    {
        var myForm = document.forms['aspnetForm'];
        var len = myForm.elements.length;
        
        var isChecked = false;
        
        for(var i = 0; i < len; i++)
        {
            if (myForm.elements[i].type == 'checkbox')
            {
                if(myForm.elements[i].checked)
                {
                    isChecked = true;
                }
                else
                {
                    isChecked = false;
                }
            }
        }
        
        if(isChecked)
        {
            location.href = 'memberInfo.aspx';
        }
        else
        {
            alert('개인정보 취급방침과 회원 약관에 동의하시면 다음단계로 진행이 됩니다.');
        }
    }
    
    function changeImage(imgMainClientID, imageMain)
    {
        document.getElementById(imgMainClientID).src = '/KOR/img/brand/' + imageMain;
    }
    
    function changeImage2(imgMainClientID, imageMain, lang)
    {
        document.getElementById(imgMainClientID).src = '/' + lang + '/img/brand/' + imageMain;
    }
    
    function changeProductImage(imgMainClientID, imageMain)
    {
        document.getElementById(imgMainClientID).src = imageMain;
    }
    
    function showLoginPopup(behaviorID)
    {
        var modalPopupBehavior = $find(behaviorID);
        modalPopupBehavior.show();
        
        if(behaviorID == 'modalBehavior')
        {
            document.getElementById('ctl00_tbDvico').focus();
        }
    }

    function showModalPopupExtender(behaviorID, focusedControl)
    {
        var modalPopupBehavior = $find(behaviorID);
        modalPopupBehavior.show();
        
        if(focusedControl != '')
        {
            document.getElementById(focusedControl).focus();
        }
    }

    function hideLoginPopup(behaviorID) 
    {
        var modalPopupBehavior = $find(behaviorID);
        modalPopupBehavior.hide();
    }

    function popup(serial)
    {
	    window.open('/KOR/cs/asPrint.aspx?serial='+serial, 'Print', 'width=620, height=700,top=0, left=40,top=30, resizable=yes, status=no, menubar=no, toolbar=no, scrollbars=auto', '');
    }

    function windowsPopUp(target)
    { 
	    window.open(target, '', 'width=700, height=700, left=10,top=30, resizable=yes, status=no, menubar=no, toolbar=no, scrollbars=yes');
    }
    
    function windowsPopUpSize(target, width, height)
    { 
	    window.open(target, '', 'width='+ width + ', height=' + height + ', left=10,top=30, resizable=yes, status=yes, menubar=no, toolbar=no, scrollbars=yes');
    }
    
    function setCookie(name, value, expiredays)
    { 
	    var todayDate = new Date(); 
	    todayDate.setDate(todayDate.getDate() + expiredays ); 
	    document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" 
    }
    
    function setCookieWithinToMidnight(name, value)
    { 
	    var todayDate = new Date(); 
	    todayDate.setHours(23, 59, 59, 59);
	    document.cookie = name + "=" + escape(value) + "; path=/; expires=" + todayDate.toGMTString() + ";" 
    } 
    
    function getCookie(name)
    { 
        var nameOfCookie = name + "="; 
	    var x = 0; 
		    while ( x <= document.cookie.length ) 
		    { 
		        var y = (x+nameOfCookie.length); 
		        if (document.cookie.substring(x, y) == nameOfCookie) 
			    {
			        if ((endOfCookie=document.cookie.indexOf(";", y)) == -1) 
				        endOfCookie = document.cookie.length; 
					    return unescape(document.cookie.substring(y, endOfCookie ));
			    }
			    
			    x = document.cookie.indexOf("", x) + 1;
			    
		        if ( x == 0 ) break; 
		    }
	    return "";
    }
    
    function go_PoP2(DIR_serial)
    {
	    window.open('/kor/CS/asPrint.aspx?DIR_serial='+DIR_serial, 'Print', 'width=620, height=700,top=0, left=40,top=30, resizable=yes, status=no, menubar=no, toolbar=no, scrollbars=auto', '');
    }
    
    function copyToClip(copyContents)
    {
        if(window.clipboardData)
        {
            window.clipboardData.setData('Text', copyContents);
            alert('주소가 클립보드에 복사되었습니다.');
            return false;
        }
        else if(window.netscape)
        {
            alert('FireFox에서는 지원하지 않습니다.');
            return false;
        }
    }
    
    function MM_popupMsg(msg) { //v1.0
      alert(msg);
    }
    
    function MM_swapImgRestore() { //v3.0
      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_swapImage() { //v3.0
      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_findObj(n, d) { //v4.01
      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 && d.getElementById) x=d.getElementById(n); return x;
    }

    function MM_preloadImages() { //v3.0
      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 flvFSTI4(){//v1.01
    this.style.filter="";}

    function flvFSTI3(v1,v2){//v1.01
    var v3;if (v1.filters[0]&&v1.filters[0].status==2){v1.filters[0].Stop();}if (v2==0){v3="blendTrans(Duration="+v1.STI8+")";}else {v3="revealTrans(Duration="+v1.STI8+",Transition="+(v2-1)+")";}v1.style.filter=v3;}

    function flvFSTI2(){//v1.01
    var v1,v2=document,v3=v2.STI4,v4;for (v4=0;v3&&v4<v3.length&&(v1=v3[v4])&&v1.STI5;v4++){if (v1.filters&&!v2.STI7){flvFSTI3(v1,v1.STI3);v1.filters[0].Apply();}v1.src=v1.STI5;if (v1.filters&&!v2.STI7){v1.filters[0].Play();}}}

    function flvFSTI1(){//v1.01
    // Copyright 2003, Marja Ribbers-de Vroed, FlevOOware (www.STI1.nl/dreamweaver/)
    var v1=arguments,v2=document,v3;v2.STI4=new Array();v2.STI7=(navigator.userAgent.toLowerCase().indexOf("mac")!=-1);for (var v4=0;v4<v1.length-2;v4+=5){v3=MM_findObj(v1[v4]);if (v3){v3.STI5=v3.src;v3.STI6=v1[v4+1];v3.STI2=v1[v4+2];v3.STI3=v1[v4+3];v3.STI8=v1[v4+4];v2.STI4[v2.STI4.length]=v3;if (v3.filters&&!v2.STI7){flvFSTI3(v3,v3.STI2);v3.onfilterchange=flvFSTI4;v3.filters[0].Apply();}v3.src=v3.STI6;if (v3.filters&&!v2.STI7){v3.filters[0].Play();}}}}

    function MM_showHideLayers() { //v6.0
      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 flevDivPositionValue(sDiv, sProperty) { // v2.1, Marja Ribbers-de Vroed, FlevOOware
	    this.opera = (window.opera); // Opera 5+
	    this.ns4 = (document.layers); // Netscape 4.x
	    this.ns6 = (document.getElementById && !document.all && !this.opera); // Netscape 6+
	    this.ie = (document.all);  // Internet Explorer 4+
        var sValue = ""; docObj = eval("MM_findObj('" + sDiv + "')"); if (docObj == null) {return 0;}
	    if ((sProperty == "left") || (sProperty == "top")) {
		    if (!this.ns4) {docObj = docObj.style;} 
		    sValue = eval("docObj." + sProperty);
		    if ((this.ie) && (sValue == "")) { // IE (on PC) bug with nested layers
			    if (sProperty == "top") { sValue = eval(sDiv + ".offsetTop"); } 
			    else { sValue = eval(sDiv + ".offsetLeft"); } 
		    };
	    }
	    else {
		    if (this.opera) {
			    docObj = docObj.style;
			    if (sProperty == "height") { sValue = docObj.pixelHeight; } 
			    else if (sProperty == "width") { sValue = docObj.pixelWidth; } 
		    }
		    else if (this.ns4) {sValue = eval("docObj.clip." + sProperty);} 
		    else if (this.ns6) {sValue = document.defaultView.getComputedStyle(docObj, "").getPropertyValue(sProperty); } 
	        else if (this.ie) { 
			    if (sProperty == "width") { sValue = eval(sDiv + ".offsetWidth"); } 
			    else if (sProperty == "height") { sValue = eval(sDiv + ".offsetHeight"); } 
		    }
   	    }
	    sValue = (sValue == "") ? 0 : sValue; 
	    if (isNaN(sValue)) { if (sValue.indexOf('px') > 0) { sValue = sValue.substring(0,sValue.indexOf('px')); } } 
	    return parseInt(sValue); 
    }

    function flevPersistentLayer() { // v3.3, Marja Ribbers-de Vroed, FlevOOware
	    var sD = arguments[0], oD = eval("MM_findObj('" + sD + "')"), iWW, iWH, iSX, iSY, iT = 10, sS = "";
	    if (!document.layers) {oD = oD.style;}
	    if (oD.tmpTimeout != null) {clearTimeout(oD.tmpTimeout);}
	    var sXL = arguments[1], sXC = arguments[2], sXR = arguments[3], sYT = arguments[4], sYC = arguments[5], sYB = arguments[6];
	    var iS = (arguments.length > 7) ? parseInt(arguments[7]) : 0, iPx = (arguments.length > 8) ? parseInt(arguments[8]) : 0;
	    if (window.innerWidth) { // NS4, NS6 and Opera
		    var oW = window; iWW = oW.innerWidth; iWH = oW.innerHeight; iSX = oW.pageXOffset; iSY = oW.pageYOffset; }
	    else if (document.documentElement && document.documentElement.clientWidth) { // IE6 in standards compliant mode
		    var oDE = document.documentElement; iWW = oDE.clientWidth; iWH = oDE.clientHeight; iSX = oDE.scrollLeft; iSY = oDE.scrollTop; }
	    else if (document.body) { // IE4+
		    var oDB = document.body; iWW = oDB.clientWidth; iWH = oDB.clientHeight; iSX = oDB.scrollLeft; iSY = oDB.scrollTop; }
	    else {return;}
	    var iCX = iNX = flevDivPositionValue(sD, 'left'), iCY = iNY = flevDivPositionValue(sD, 'top');
	    if (sXL != "") {iNX = iSX + parseInt(sXL);} 
	    else if (sXC != "") {iNX = Math.round(iSX + (iWW/2) - (flevDivPositionValue(sD, 'width')/2));}
	    else if (sXR != "") {iNX = iSX + iWW - (flevDivPositionValue(sD, 'width') + parseInt(sXR));}
	    if (sYT != "") {iNY = iSY + parseInt(sYT);}
	    else if (sYC != "") {iNY = Math.round(iSY + (iWH/2) - (flevDivPositionValue(sD, 'height')/2));}
	    else if (sYB != "") {iNY = iSY + (iWH - flevDivPositionValue(sD, 'height') - parseInt(sYB));}
	    if ((iCX != iNX) || (iCY != iNY)) {
		    if (iS > 0) {
			    if (iPx > 0) { iT = iS;
				    var iPxX = iPx, iPxY = iPx, iMX = Math.abs(iCX - iNX), iMY = Math.abs(iCY - iNY);
				    // take care of diagonal movement
				    if (iMX < iMY) {iPxY = (iMX != 0) ? ((iMY/iMX)*iPx) : iPx;}
				    else {iPxX = (iMY != 0) ? ((iMX/iMY)*iPx) : iPx;}
				    if (iPxX >= iMX) {iPxX = Math.min(Math.ceil(iPxX), iPx);}
				    if (iPxY >= iMY) {iPxY = Math.min(Math.ceil(iPxY), iPx);}
				    // temporary X/Y coordinates
				    if ((iCX < iNX) && (iCX + iPxX < iNX)) {iNX = iCX + iPxX;}
				    if ((iCX > iNX) && (iCX - iPxX > iNX)) {iNX = iCX - iPxX;}
				    if ((iCY < iNY) && (iCY + iPxY < iNY)) {iNY = iCY + iPxY;}
				    if ((iCY > iNY) && (iCY - iPxY > iNY)) {iNY = iCY - iPxY;} }
			    else { 
				    var iMX = ((iNX - iCX) / iS), iMY = ((iNY - iCY) / iS); 
				    iMX = (iMX > 0) ? Math.ceil(iMX) : Math.floor(iMX); iNX = iCX + iMX; 
				    iMY = (iMY > 0) ? Math.ceil(iMY) : Math.floor(iMY); iNY = iCY + iMY; } }
		    if ((parseInt(navigator.appVersion)>4 || navigator.userAgent.indexOf("MSIE")>-1) && (!window.opera)) {sS="px";}
		    if (iMX != 0) {eval("oD.left = '" + iNX + sS + "'");}
		    if (iMY != 0) {eval("oD.top = '" + iNY + sS + "'");} }
	    var sF = "flevPersistentLayer('" + sD + "','" + sXL + "','" + sXC + "','" + sXR + "','" + sYT + "','" + sYC + "','" + sYB + "'," + iS + "," + iPx + ")";
	    oD.tmpTimeout = setTimeout(sF,10);
    }

    function flevInitPersistentLayer() { // v3.3, Marja Ribbers-de Vroed, FlevOOware
	    if (arguments.length < 8) {return;}
	    var sD = arguments[0]; if (sD == "") {return;}
	    var	oD = eval("MM_findObj('" + sD + "')"); if (!oD) {return;}
	    var iCSS = parseInt(arguments[1]);
	    var sXL = arguments[2], sXC = arguments[3], sXR = arguments[4], sYT = arguments[5], sYC = arguments[6], sYB = arguments[7];
	    var iS = (arguments.length > 8) ? parseInt(arguments[8]) : 0, iPx = (arguments.length > 9) ? parseInt(arguments[9]) : 0;
	    if (iCSS != 0) { if (!document.layers) {oD = oD.style;} sXL = parseInt(oD.left), sYT = parseInt(oD.top);}
	    var sF = "flevPersistentLayer('" + sD + "','" + sXL + "','" + sXC + "','" + sXR + "','" + sYT + "','" + sYC + "','" + sYB + "'," + iS + "," + iPx + ")";
	    eval(sF);
    }
    //-->