/*@cc_on _d=document; eval('var document=_d; var getEl=_d.getElementById;')@*/
var _d = document;
var _getId= _d.getElementById;

// 브라우저 체크
var unitPixel="px";

var isIE=false;
var isIE6=false;
var isIE7=false;
var isChrome=false;
var isFF=false;
var isSafari=false;
var agt = navigator.userAgent.toLowerCase();
if (agt.indexOf("msie")>-1) {
    isIE=true;
    if (agt.indexOf("msie 7")>-1) isIE7=true;
    else isIE6=true;
} else {
    if (agt.indexOf("chrome")>-1) isChrome=true;
    else {
        if (agt.indexOf("safari")>-1) isSafari=true;
        else {
            if (agt.indexOf("firefox")>-1) isFF=true;
        }
    }
}

//
// 체크 관련 함수들
//
function isImage (n) {
    if (n.match(/(.jpg|.jpeg|.gif|.png|.bmp)$/i)) return true;
    else return false;
}

function isMedia (n) {
    if (n.match(/(.wma|.wmv|.avi|.mpg|.mpeg|.mp2|.mp3|.asf)$/i)) return true;
    else return false;
}

function isFile(n) {
    if (!n.match(/[\\\:\*\?\|<>]/)) return true;
    else return false;
}

function isBlank (s) {
	var len;
	s = s.replace(" ", "");
	len=s.length;
	if (len>0) { return false; } else { return true; }
}

function isUrl (url) {
    var p = /^(?:(?:ftp|https?):\/\/)?(?:[a-z0-9](?:[-a-z0-9]*[a-z0-9])?\.)+(?:com|edu|biz|org|gov|int|info|mil|net|name|museum|coop|aero|[a-z][a-z])\b(?:\d+)?(?:\/[^;"'<>()\[\]{}\s\x7f-\xff]*(?:[.,?]+[^;"'<>()\[\]{}\s\x7f-\xff]+)*)?/;
    return p.test(url.toLowerCase());
}

function isEmail(v) {
    return v.search(/^\s*[\w\-]+\@[\w\~\-]+(\.[\w\~\-]+)+\s*$/g)>=0;
}

function isEng (s) {
    var p = /[^(a-zA-Z)]/;
    if ( p.test (s) ) { return false; } else { return true; }
}

function isNum (s) {
    var p = /[^(0-9)]/;
    if ( p.test (s) ) { return false; } else { return true; }
}

function isId (s) {
    var p = /[^(a-z0-9)]/;
    if ( p.test (s) ) { return false; } else { return true; }
}

function isPwd (s) {
    var p = /[^(a-zA-Z0-9)]/;
    if ( p.test (str) ) { return false; }
    else {
		if (s.length< 4) {return false;} else {return true;}
	}
}
function isColor(s) {
    var p = /[^(0-9a-fA-F)]/;
    if ( p.test (s) ) { return false; } else { return true; }
}

function isDate(str) {
    var arr=str.split("-");
    if (arr.length!=3) {
        return false;
    } else {
        if (!isNum(arr[0]) || !isNum(arr[1]) || !isNum(arr[2]) ) {
            return false;
        } else {
            var iyear=parseInt(arr[0]);
            var imonth=parseInt(arr[1]);
            if (imonth<0||imonth>13 ) {
                return false;
            } else {
                iday=parseInt(arr[2]);
                if (imonth==1 || imonth==3 || imonth==5 || imonth==7 || imonth==8 || imonth==10 || imonth==12 ) {
                    iend=31;
                } else if (imonth==4 || imonth==6 || imonth==9 || imonth==11 ){
                    iend=30;
                } else {
                    iend=(iyear%4==0)?29:28;
                }
                if(iday<0||iday>iend)return false;
                else return true;
            }
        }
    }
}

function isComNo(str) {
	var chkRule = "137137135";
	var step1, step2, step3, step4, step5, step6, step7;
	step1 = 0;
	for (i=0; i<7; i++)	{step1 = step1 + (str.substring(i, i+1) *chkRule.substring(i, i+1));}
	step2 = step1 % 10;
	step3 = (str.substring(7, 8) * chkRule.substring(7, 8))% 10;
	step4 = str.substring(8, 9) * chkRule.substring(8, 9);
	step5 = Math.round(step4 / 10 - 0.5);
	step6 = step4 - (step5 * 10);
	step7 = (10 - ((step2 + step3 + step5 + step6) % 10)) % 10;
	if (str.substring(9, 10) != step7) {return false;}
	return true;
}

function isRegNo(str)	{
	var ilastid,imod,iminus,ilast;
	var value0,value1,value2,value3,value4,value5,value6;
	var value7,value8,value9,value10,value11,value12;

	if (!isNaN(str)) {
		ilastid = parseFloat(str.substring(12,13));
		value0  = parseFloat(str.substring(0,1)) * 2;
		value1  = parseFloat(str.substring(1,2)) * 3;
		value2  = parseFloat(str.substring(2,3)) * 4;
		value3  = parseFloat(str.substring(3,4)) * 5;
		value4  = parseFloat(str.substring(4,5)) * 6;
		value5  = parseFloat(str.substring(5,6)) * 7;
		value6  = parseFloat(str.substring(6,7)) * 8;
		value7  = parseFloat(str.substring(7,8)) * 9;
		value8  = parseFloat(str.substring(8,9)) * 2;
		value9  = parseFloat(str.substring(9,10)) * 3;
		value10 = parseFloat(str.substring(10,11)) * 4;
		value11 = parseFloat(str.substring(11,12)) * 5;
		value12 = value0 + value1 + value2 + value3 + value4 + value5 + value6 + value7 + value8 + value9 + value10 + value11;
		imod = value12 % 11;
		iminus = 11 - imod;
		ilast = iminus % 10;
		if (ilast != ilastid) return false;
		else return true;
	}
	else return false;
}

/* string 관련 함수 */
String.prototype.ltrim=function(){return this.replace(/^\\s+/,'');}
String.prototype.rtrim=function(){return this.replace(/\\s+$/,'');}
String.prototype.trim=function(){return this.replace(/^\\s+|\\s+$/g,'');}
String.prototype.korLen=function(){var ret=0;for(var i=0; i<this.length;i++){var c=this.charAt(i);var enc=encodeURIComponent(c);ret++;if(enc.length>3) ret++;}return ret;}
String.prototype.stripTag=function(){var ret=this;var i=ret.indexOf("<");if(i>-1){ret=(ret.substring(0,i)+ret.substring(ret.indexOf(">",i)+1)).stripTag();}return ret;}
String.prototype.replaceAll=function(from, to){var ret=this;var tmp=this.toLowerCase();var fromStr=from.toLowerCase();var count=fromStr.length;while(tmp.indexOf(fromStr)>=0){var word=ret.substr(tmp.indexOf(fromStr),count);tmp=tmp.replace( from, to );ret = ret.replace( word, to );}return ret;}
function cutStr(str,limit) {
    var ret = str;
    var byte_count = 0;
    var len = str.length;
    var dot = "";

    for (i = 0 ; i < len ; i++ ) {
        byte_count += chrByte(str.charAt(i));
        if(byte_count == limit-1){
            if(chrByte(str.charAt(i+1)) == 2){
                ret = str.substring(0,i+1);
                dot="...";
            }else {
                if(i+2 != len) dot = "..";
                ret=str.substring(0,i+2);
            }
            break;
        }else if(byte_count == limit){
            if(i+1 != len) dot = "..";
            ret=str.substring(0,i+1);
            break;
        }
    }
    return ret;
}
function chrByte(c){if(escape(c).length > 4){return 2;}else{return 1;}}

//
// Flash
//
function flashObject(file_name,flashVar,width,height){
  document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + width + '" height="' + height + '">');
  document.write('<param name="movie" value="' + file_name + '">');
  document.write('<param name=FlashVars value="' + flashVar + '">');
  document.write('<param name="scale" value="noscale">');
  document.write('<param name="salign" value="lt" >');
  document.write('<param name="quality" value="high">');
  document.write('<param name="wmode" value="transparent">');
  document.write('<param name="allowScriptAccess" value="always">');
  document.write('<param name="allowNetworking" value="all">');
  document.write('<embed src="' + file_name +'" FlashVars="' + flashVar +'" scale="noscale" salign="lt" width="' + width + '" height="' + height + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" allowScriptAccess="always" allowNetworking="all"></embed>');
  document.write('</object>');
}


/* AJAX 사용시 폼값 넘기기 */
function getPars ( f ) {
	var loop=f.elements.length;
	var pars="";
	if ( loop>0 ) {
		for (var x=0; x<loop; x++) {
			var el=f.elements;
			if ( el[x].name!=undefined && el[x].name!="" && el[x].name!="FCKeditor" ) {
                switch (el[x].type.toLowerCase()) {
                    case "text":
                    case "hidden":
                    case "button":
                    case "password":
                    case "select-one":
                    case "textarea":
                        if ( pars!= "" ) pars+="&";
                        pars+=el[x].name+"="+encodeURIComponent(el[x].value);
                        break;
                    case "checkbox":
                    case "radio":
                        if ( el[x].checked ) {
                            if ( pars!= "" ) pars+="&";
                            pars+=el[x].name+"="+encodeURIComponent(el[x].value);
                        }
                        break;
                }
			}
		}
	}
	return pars;
}

//
// 파싱
//
function getTagValue ( tag, txt ) {
    var ret="";
    txt=txt.rtrim().ltrim();
    var p1=txt.indexOf("<"+tag+">");
    var p2=txt.indexOf("</"+tag+">");
    if ( p1>-1 && p2>p1 ) {
       ret=txt.substring(p1+tag.length+2, p2);
    }
    return ret;
}


/* select Option 관련 */
function changeOption ( obj, p1, p2 ) {var p1Txt=obj.options[p1].text;var p1Val=obj.options[p1].value;var p2Txt=obj.options[p2].text;var p2Val=obj.options[p2].value;obj.options[p2]=new Option(p1Txt,p1Val,false,false);obj.options[p1]=new Option(p2Txt,p2Val,false,true);}
function addOption(obj,txt,val) {obj.options[obj.length]=new Option (txt, val, false, false);}
function moveOption(obj,i){if(obj.selectedIndex>-1) {if(i<0){if(obj.selectedIndex==0){return;}}else{if(obj.selectedIndex==obj.length-1){return;}}changeOption(obj,obj.selectedIndex,obj.selectedIndex+i);obj.options[obj.selectedIndex+i].selected=true;}}
function moveMultiOption (obj, mv) {if (mv>0) {for(i=obj.length-1;i>=0;i--) {if(obj.options[i].selected){if(i<obj.length-1) {changeOption(obj,i+1,i);}else{return;}}}}else{for(i=0;i<obj.length;i++){if(obj.options[i].selected){if(i>0){changeOption(obj,i-1,i);}else{return;}}}}}
function removeOption(obj){var i;for (i = obj.length - 1; i>=0; i--) {if (obj.options[i].selected) {obj.remove(i);}}}

/* checkbox 관련 함수 */
function checkingAll(f, elName, ischeck) {for (var i=0;i<f.elements.length;i++){var e = f.elements[i];if ((e.name==elName)&&(e.type=='checkbox')&&(!e.disabled)){e.checked=ischeck;}}}
function checkingVal(f, elName, val) {for (i=0; i<f.elements.length; i++) {var e=f.elements[i];if (e.type=="checkbox" && e.name==elName && e.value==val) {e.checked=true;return;}}}
function isChecked (f, elName) {for (var i=0;i<f.elements.length;i++){var e = f.elements[i];if ((e.name==elName)&&(e.type=='checkbox')&&(!e.disabled)){if(e.checked) return true;}}}
function checkedValue (f, elName) {var ret="";for (var i=0;i<f.elements.length;i++){var e = f.elements[i];if ((e.name==elName)&&(e.type=='checkbox')&&(!e.disabled)){if(e.checked) {if (!isBlank(ret)) ret+=",";ret+=e.value;}}}return ret;}
function checking(val,el,separator){if(!isBlank(val)){var arr=val.split(separator);for(var i=0;i<arr.length;i++){for(var j=0;j<el.length;j++){if(el[j].value==arr[i].replace(" ",""))el[j].checked=true;}}}}

var isProc=0;
function proc(procFile,pars,func) {
    if (isProc==1) return;
    isProc=1;
    var myAjax=new Ajax.Request (
        procFile,
        {
            asynchronous:true,
            method:"post",
            parameters:pars,
            onSuccess:function(request)
            {
               isProc=0;
               var xmlDoc=request.responseXML;
               var err=xmlDoc.getElementsByTagName("Err")[0].childNodes[0].nodeValue;
               var msg = xmlDoc.getElementsByTagName("Msg")[0].childNodes[0].nodeValue;
               if(err=="0"){eval(func);}
               else if(err=="1"){alert(msg);}
               else if(err=="9"){alert(msg);location.reload();}
               else{alert("Request Failure");}

           },
           onFailure:function()
           {
               isProc=0;
               alert("에러가 발생했습니다.\n\n잠시후에 다시 이용해주세요.");

           }
       });
}

var isProcGet=0;
function procGet(procFile,pars,func) {
    if (isProcGet==1) return;
    isProcGet=1;
    var myAjax=new Ajax.Request (
        procFile,
        {
            asynchronous:true,
            method:"get",
            parameters:pars,
            onSuccess:function(request)
            {
               isProcGet=0;
               var xmlDoc=request.responseXML;
               var err=xmlDoc.getElementsByTagName("Err")[0].childNodes[0].nodeValue;
               var msg = xmlDoc.getElementsByTagName("Msg")[0].childNodes[0].nodeValue;
               if(err=="0"){eval(func);}
               else if(err=="1"){alert(msg);}
               else if(err=="9"){alert(msg);location.reload();}
               else{alert("Request Failure");}
           },
           onFailure:function()
           {
               isProcGet=0;
               alert("에러가 발생했습니다.\n\n잠시후에 다시 이용해주세요.");

           }
       });
}
function sizeShowArea() {var oDoc=document[document.compatMode=='CSS1Compat'?'documentElement':'body'];if(/Opera/.test(navigator.userAgent)) oDoc=document.body;return [oDoc.clientWidth, oDoc.clientHeight];}
function sizePageArea() {var oDoc=document[document.compatMode=='CSS1Compat'?'documentElement':'body'];if(/Opera|Safari/.test(navigator.userAgent)) oDoc = document.body;if(/MSIE\s([0-9]+(\.[0-9]+)*)/.test(navigator.userAgent)&&parseFloat(RegExp.$1)<6) {var aOld=[oDoc.scrollLeft,oDoc.scrollTop];var aClient=getClientSize();oDoc.scrollLeft=999999;oDoc.scrollTop=999999;var aRet=[oDoc.scrollLeft+aClient[0],oDoc.scrollTop+aClient[1]];oDoc.scrollLeft=aOld[0];oDoc.scrollTop=aOld[1];return aRet;}return [oDoc.scrollWidth,oDoc.scrollHeight];}

/* Date 관련 함수 */
function dateAdd(date, move) {var arr=date.split("-");var src=new Date(arr[0],arr[1]-1,arr[2]);src.setDate(src.getDate()+move);var ret=src.getYear()+"-"+(src.getMonth()+1+100+"").substring(1,3)+"-"+(src.getDate()+100+"").substring(1,3);return ret;}

/* Data Format 관련 함수 */
function fillZero (n) {var ret="";n=n+""; if (n.length<2) {ret="0"+n;} else {ret=n;}return ret;}
function fillChar(n, l, c) {
    var ret="";
    var s=n+"";
    for (var i=0; i<l-s.length; i++) {
        ret=c+ret;
    }
    ret+=s;
    return ret;
}
function formatFileSize(siz){
    if ( isNaN(siz) ) return "";
    var sz=parseInt(siz);
    var i=sz/1024;if(i>1024){i=i/1024;ret=round(i,2)+" MB";} else {ret=(i<0.01)?"0.01 KB":round(i,2)+" KB";}return ret;
}
function round(n, digits){if(digits>=0) return parseFloat(n.toFixed(digits));digits = Math.pow(10, digits);var t=Math.round(n*digits)/digits;return parseFloat(t.toFixed(0));}

function loadEvent(func) {var oldonload = window.onload;if (typeof window.onload != 'function') {window.onload = func;} else {window.onload = function() {if (oldonload) {oldonload();}func();}}}

var iLoop=0;
function iframeResize() {
    var obj=parent.document.getElementById(window.name);
    minHeight = 300;
    var height=0;
    if (iLoop==0) obj.style.height=minHeight+unitPixel;
    try {
        if (iLoop>5){ iLoop=1; return; }
        iLoop++;
        var doc = obj.contentDocument || obj.contentWindow.document;

        if (isIE) {
            height = doc.body.scrollHeight;
            width = doc.body.scrollWidth;
        } else {
            var spaer = doc.body.appendChild(document.createElement('DIV'))
            spaer.style.clear = 'both';
            height=spaer.offsetTop;
            width =spaer.offsetWidth;
            spaer.parentNode.removeChild(spaer);
        }
        if (height < minHeight) height = minHeight;

        //obj.style.width  = width+unitPixel;
        obj.style.height = height+unitPixel;
        setTimeout(function(){ iframeResize() }, 200);

    } catch (e) {

    }
}

function fileBrowser(dir) {
	dir="/file/"+dir;
	window.open("/modules/file/fileBrowser.asp?dir="+dir,"POPUP_FILE","width=750,height=300");
}

function popup(uri, n, w, h, t, l, etc) {var attr="width="+w+",height="+h+",top="+t+",left="+l;if(!isBlank(etc)){attr+=","+etc;}var win=window.open(uri,n,attr);win.focus();}
function loc(uri){ location.replace(uri);}
function encode(val) {return encodeURIComponent(val);}
function trOver(tr) {tr.style.backgroundColor="#EEEEEE";}
function trOut(tr) {tr.style.backgroundColor="#FFFFFF";}

/* IE 6에서 png사용을 위함 함수 */
function setPng24(obj){
    obj.width=obj.height=1;
    obj.className=obj.className.replace(/\bpng24\b/i,'');
    obj.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+obj.src+"',sizeMethod='image');"
    obj.src='';
    return '';
}



    /*
        레이어창 보이기/감추기
    */
function sizeShowArea() {var oDoc=document[document.compatMode=='CSS1Compat'?'documentElement':'body'];if(/Opera/.test(navigator.userAgent)) oDoc=document.body;return [oDoc.clientWidth, oDoc.clientHeight];}
function fnPageAreaSize() {var oDoc=document[document.compatMode=='CSS1Compat'?'documentElement':'body'];if(/Opera|Safari/.test(navigator.userAgent)) oDoc = document.body;if(/MSIE\s([0-9]+(\.[0-9]+)*)/.test(navigator.userAgent)&&parseFloat(RegExp.$1)<6) {var aOld=[oDoc.scrollLeft,oDoc.scrollTop];var aClient=getClientSize();oDoc.scrollLeft=999999;oDoc.scrollTop=999999;var aRet=[oDoc.scrollLeft+aClient[0],oDoc.scrollTop+aClient[1]];oDoc.scrollLeft=aOld[0];oDoc.scrollTop=aOld[1];return aRet;}return [oDoc.scrollWidth,oDoc.scrollHeight];}

    var btnObject = null;
    function fnPopShow(pop) {

        if ( isIE6 ) {
            if ( document.all ) {
                for( var i=0; i<document.all.tags("select").length; i++ ) {
                    if (document.all.tags("select")[i].getAttribute("isShow")!="1")
                        document.all.tags("select")[i].style.visibility="hidden";
                }
            }
        }

        fnPopBg(pop);
        pop.style.display="";
        var pos=sizeShowArea();
        var toX=(pos[0]-parseInt(pop.offsetWidth))/2
        var toY=(pos[1]-parseInt(pop.offsetHeight))/2
        if ( toX<10 ) toX=10;
        if ( toY<10 ) toY=10;
        pop.style.left=toX+"px";
        pop.style.top =toY+"px";
    }

    function fnPopHide(pop) {
        if ( isIE6 ) {
            if ( document.all ) {
                for( var i=0; i<document.all.tags("select").length; i++ )
                    document.all.tags("select")[i].style.visibility="visible";
            }
        }
        fnPopBg(pop);
        pop.style.display="none";
    }

    function fnPopBg(bg) {
        var bg=$("overlay");
        bg.style.visibility = (bg.style.visibility == "visible") ? "hidden" : "visible";
    }
	document.write ("<div id='overlay' class='overlay'></div>");

    function fnPopModal(parent_pop, pop) {
        parent_pop.style.visibility="hidden";
        pop.style.display="block";
        if ( isIE6 ) {
            if ( document.all ) {
                for( var i=0; i<document.all.tags("select").length; i++ ) {
                    if (document.all.tags("select")[i].getAttribute("isModal")=="1")
                        document.all.tags("select")[i].style.visibility="visible";
                    else
                        document.all.tags("select")[i].style.visibility="hidden";
                }
            }
        }
        pop.style.display="block";
        var pos=sizeShowArea();
        var toX=(pos[0]-parseInt(pop.offsetWidth))/2
        var toY=(pos[1]-parseInt(pop.offsetHeight))/2
        if ( toX<10 ) toX=10;
        if ( toY<10 ) toY=10;
        pop.style.left=toX+"px";
        pop.style.top =toY+"px";
    }

    function fnPopModalHide(parent_pop,pop) {
        parent_pop.style.visibility="visible";
        pop.style.display="none";
        if ( isIE6 ) {
            if ( document.all ) {
                for( var i=0; i<document.all.tags("select").length; i++ ) {
                    if (document.all.tags("select")[i].getAttribute("isShow")=="1")
                        document.all.tags("select")[i].style.visibility="visible";
                }
            }
        }
    }
    /*
        레이어창 이동하기
    */

    if ( isIE ) {
        _d.onmousemove = mouseMove;
        _d.onmouseup   = mouseUp;
    } else {
        _d.addEventListener("mousemove",mouseMove,false);
        _d.addEventListener("mouseup",mouseUp,false);
    }

    var dragObject  = null;
    var mouseOffset = null;

    function getMouseOffset(target, ev){
        ev = ev || window.event;

        var docPos    = getPosition(target);
        var mousePos  = mouseCoords(ev);
        return {x:mousePos.x - docPos.x, y:mousePos.y - docPos.y};
    }

    function getPosition(e){
        var left = 0;
        var top  = 0;

        while (e.offsetParent){
            left += e.offsetLeft;
            top  += e.offsetTop;
            e     = e.offsetParent;
        }

        left += e.offsetLeft;
        top  += e.offsetTop;

        return {x:left, y:top};
    }

    function mouseMove(ev){
        ev           = ev || window.event;
        if(dragObject){
            var mousePos = mouseCoords(ev);
            dragObject.style.position = 'absolute';
            dragObject.style.top      = mousePos.y - mouseOffset.y;
            dragObject.style.left     = mousePos.x - mouseOffset.x;

            return false;
        }
    }

    function mouseCoords(ev){
        if(dragObject) {
            if(ev.pageX || ev.pageY){
                return {x:ev.pageX, y:ev.pageY};
            }
            return {
                x:ev.clientX + document.body.scrollLeft - document.body.clientLeft,
                y:ev.clientY + document.body.scrollTop  - document.body.clientTop
            };
        }
    }

    function mouseUp(){
        dragObject = null;
    }

    function makeDraggable(item){
        if(!item) return;
        item.onmousedown = function(ev){
            dragObject  = this;
            mouseOffset = getMouseOffset(this, ev);
            return false;
        }
    }

    function getImgSize(f) {
        var newImg = new Image();
        newImg.src = f;
        var h = newImg.height;
        var w = newImg.width;
        return {width:w,height:h};
    }
    function imgResize (img, fitSiz) {
        var imgSiz=getImgSize(img.src);
        var w=imgSiz.width;
        var h=imgSiz.height;
        if ( w>h ) {
            if ( w>fitSiz ) {
                img.width=fitSiz;
                img.height=h*(fitSiz/w);
            } else {
                img.width=w;
                img.height=h;
            }
        } else {
            if ( h>fitSiz ) {
                img.width=w*(fitSiz/h);
                img.height=fitSiz;
            } else {
                img.width=w;
                img.height=h;
            }

        }
    }

    /*
        클릭한 태그의 좌표 가져오기
    */
    function findPosY(obj) {
        var posTop = 0;
        while (obj.offsetParent) {posTop += obj.offsetTop; obj = obj.offsetParent;}
        return posTop;
    }

    function findPosX(obj) {
        var posLeft = 0;
        while (obj.offsetParent) {posLeft += obj.offsetLeft; obj = obj.offsetParent;}
        return posLeft;
    }


    function fnLogout() {
        proc("/member/login_proc.asp","act=logout","fnLogout_Success(msg)");
    }
    function fnLogout_Success(msg) {
        location.reload();
    }
    function fnMember() {
        document.location="/html/html.asp?f=member";
    }
    function fnJoin() {
        document.location="/html/html.asp?f=join";
    }
    function fnFindId() {
        document.location="/html/html.asp?f=find";
    }
    function goDefault() {
        document.location="/html";
    }

    function popupBlank(url) {
        var f=document.frmBlankUrl;
        f.action=url;
        f.submit();
    }
