<!--
String.prototype.trim = function() {
  return this.replace(/(^\s*)|(\s*$)/gi, "");
}

String.prototype.popupView = function() {
    var img_view = this;
    var x = x + 20 ;
    var y = y + 30 ;
    htmlz = "<html><head><title>ÀÌ¹ÌÁöÅ©°Ôº¸±â</title><style>body{margin:0;cursor:pointer;}</style></head><body scroll=auto onload='width1=document.getElementById(\"Timage\").width;if(width1>1024)width1=1024;height1=document.getElementById(\"Timage\").height;if(height1>768)height1=768;top.window.resizeTo(width1+30,height1+54);' onclick='top.window.close();'><img src='"+img_view+"' title='Å¬¸¯ÇÏ½Ã¸é ´ÝÈü´Ï´Ù.' name='Timage' id='Timage'></body></html>";
    imagez = window.open('', "image", "width="+ 100 +", height="+ 100 +", top=0,left=0,scrollbars=auto,resizable=1,toolbar=0,menubar=0,location=0,directories=0,status=1");
    imagez.document.open();
    imagez.document.write(htmlz);
    imagez.document.close();
}

String.prototype.strip = function() {
	var str = this;
	var p1 = str.indexOf('<');
	if (p1 == -1) return str;
	else {
		var p2 = str.indexOf('>', p1);
		if (p2 == -1) return str;
		return (str.substr(0, p1) + str.substr(p2+1)).strip();
	}
}


// Äü¸Þ´º ½½¶óÀÌµù ¼Ò½º
function CheckUIElements(startPoint) {
	var yMenu1From, yMenu1To, yOffset, timeoutNextCheck;
	var wndWidth = parseInt(document.body.clientWidth);

	yMenu1From   = parseInt (D1.style.top, 10);
	yMenu1To     = document.body.scrollTop + eval(startPoint);

	//ÃÊ±âÀ§Ä¡ ÀÌÇÏ·Î ³»·Á°¡¸é »ó´Ü ¿©¹éÀ» 10À¸·Î °íÁ¤
	if(yMenu1To > eval(startPoint)) {
		yMenu1To = document.body.scrollTop + 600;
	}

	timeoutNextCheck = 500;

	if ( yMenu1From != yMenu1To ) {
		yOffset = Math.ceil( Math.abs( yMenu1To - yMenu1From ) / 20 );
		if ( yMenu1To < yMenu1From )
			yOffset = -yOffset;

		D1.style.top = parseInt (D1.style.top, 10) + yOffset;
		timeoutNextCheck = 10;
	}
	setTimeout ("CheckUIElements('"+startPoint+"')", timeoutNextCheck);
}

function MovePosition(startPoint, leftPoint) {
	var wndWidth = parseInt(document.body.clientWidth);

	D1.style.top = document.body.scrollTop + eval(startPoint) + 50;
	D1.style.left = eval(leftPoint);
	D1.style.visibility = "visible";

	// initializing UI update timer
	CheckUIElements(startPoint);

	return true;
}

var Alpha = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
var Num   = '0123456789';
var AlphaNum = Alpha+Num;

function getBrowserName() {
	if (navigator.appName == 'Microsoft Internet Explorer') return 1;
	else if (navigator.appName == 'Netscape') return 2;
	return 0;
}


function isMIE() {
	if (navigator.appName == 'Microsoft Internet Explorer') return true;
	else false;
}

function isMIE7() {
	var agent = navigator.userAgent;
	if (navigator.appName == 'Microsoft Internet Explorer' &&
		agent.indexOf("MSIE 7") > -1) return true;
	else false;
}

function isMIE6() {
	var agent = navigator.userAgent;
	if (navigator.appName == 'Microsoft Internet Explorer' &&
		agent.indexOf("MSIE 6") > -1) return true;
	else false;
}

function exists(objectName) {
	var obj = eval('document.'+objectName);
	if (obj.value.trim().length > 0)
		return true;
	else
		return false;
}
function chkSelect(objectName, initIndex, msg, isSet) {
	var obj = eval('document.'+objectName);
	var isselect = false;

	for (var i = initIndex; i < obj.options.length; i++) {
		if (obj.options[i].selected == true) {
			isselect = true;
			break;
		}
	}

	if (isselect) return true;
	else {
		alert(msg);
		if (isSet) obj.focus();
		return false;
	}
}

function chkEmail(objectName, limitByte, isSet) {
	var val = eval('document.'+objectName+'.value');

	if (!chkLength(objectName, 'ÀÌ¸ÞÀÏ', limitByte, isSet)) return false;
	if (val.length > 0) {
		var arrMatch = val.match(/^(\".*\"|[A-Za-z0-9_-]([A-Za-z0-9_-]|[\+\.])*)@(\[\d{1,3}(\.\d{1,3}){3}]|[A-Za-z0-9][A-Za-z0-9_-]*(\.[A-Za-z0-9][A-Za-z0-9_-]*)+)$/);
    		if (arrMatch == null) {
			alert('ÀÌ¸ÞÀÏÁÖ¼Ò°¡ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù.\n´Ù½Ã È®ÀÎÇØÁÖ¼¼¿ä!');
			if (isSet) eval('document.'+objectName+'.focus();');
        		return false;
	    	}
	}

	return true;
}

function chkChar(objectName, msg, isSet) {
	var val = eval('document.'+objectName+'.value');

	for (i=0; i<val.length; i++) {
		if(Alpha.indexOf(val.substring(i,i+1))<0) {
			alert(msg+'Àß¸øµÈ ¹®ÀÚ°¡ ÀÖ½À´Ï´Ù\nÆ¯¼ö¹®ÀÚ´Â ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù');
			if (isSet) eval('document.'+objectName+'.focus();');
			return false;
		}
	}

	return true;
}

function chkCharNum(objectName, msg, isSet) {
	var val = eval('document.'+objectName+'.value');

	for (i=0; i<val.length; i++) {
		if(AlphaNum.indexOf(val.substring(i,i+1))<0) {
			alert(msg+'Àß¸øµÈ ¹®ÀÚ°¡ ÀÖ½À´Ï´Ù\nÆ¯¼ö¹®ÀÚ´Â ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù');
			if (isSet) eval('document.'+objectName+'.focus();');
			return false;
		}
	}

	return true;
}

function chkNum(objectName, msg, isSet) {
	var val = eval('document.'+objectName+'.value');

	for (i=0; i<val.length; i++) {
		if(Num.indexOf(val.substring(i,i+1))<0) {
			alert(msg+'Àß¸øµÈ ¼ýÀÚ°¡ ÀÖ½À´Ï´Ù\n¼ýÀÚ ÀÌ¿Ü ¹®ÀÚ´Â ÀÔ·ÂÇÒ¼ö ¾ø½À´Ï´Ù');
			if (isSet) eval('document.'+objectName+'.focus();');
			return false;
		}
	}

	return true;
}

// ¼ýÀÚ¸¦ Ã¼Å©ÇÏ´Â ÇÔ¼ö
function IsNumeric(checkStr){
	 var strLength = 0;
	 for (i=0; i<checkStr.length; i++)
	 {
	  		ch = checkStr.charAt(i);
	  if (ch < "0" || ch > "9")
	   		return (false);
	 }
	 return(true);
}

/******************************
*  ±â´É :  NumberCheck
*  ¼öÁ¤ÀÏ : 2002-03-29(denial)
*  parameter : field, pErrorMsg
*******************************/
function isNotNumber(field, pErrorMsg)//NumberCheck
{
	var val = field.value;

	if(isNaN(val)) {
		if(pErrorMsg.length > 0) {
			alert(pErrorMsg);
			field.focus();
			field.select();
		}
		return true;
	} else {
		return false;
	}
}


/****************************************
*  ±â´É : ¹®ÀÚ¿­ ±æÀÌÃ¼Å©
*  ¼öÁ¤ÀÏ : 2004-04-12
*  parameter : field, len, pErrorMsg
*****************************************/
function isNotExactLength(field, len, pErrorMsg)//¹®ÀÚ¿­ ±æÀÌÃ¼Å©
{
	if(strLength(field) != len) {
		alert(pErrorMsg);
		field.focus();
		field.select();
		return true;
	}
	return false;
}


/***************************************
*  ±â´É : ÇÊµå(String) ±æÀÌ °ü·Ã
*  ¼öÁ¤ÀÏ : 2004-04-12
*  parameter : field
****************************************/
function strLength(field)//ÇÊµå(String) ±æÀÌ °ü·Ã
{

	var Length = 0;

	var Nav = navigator.appName;
	var Ver = navigator.appVersion;

	var IsExplorer = false;

	var ch;

	if ( (Nav == 'Microsoft Internet Explorer') && (Ver.charAt(0) >= 4) ) {
		IsExplorer = true;
	}

	if(IsExplorer) {

		for(var i = 0 ; i < field.value.length; i++) {

			ch = field.value.charAt(i);

			if ((ch == "\n") || ((ch >= "¤¿") && (ch <= "È÷")) ||
					((ch >="¤¡") && (ch <="¤¾"))) { //ÇÑ±ÛÀÏ°æ¿ì 2byte¾¿ °è»ê
				Length += 2;
			} else {
				Length += 1;
			}
		}
	} else {
		Length = field.value.length ;
	}

	return Length;
}



/******************************
*  ±â´É : »ç¾÷ÀÚµî·Ï¹øÈ£ Check
*  ¼öÁ¤ÀÏ : 2002-01-25
*  parameter : Form
*******************************/
function isNotValidBID(fBid1, fBid2, fBid3)
{

//	if(isEmpty(fBid1,"»ç¾÷ÀÚµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä!")) return true;
//	if(isEmpty(fBid2,"»ç¾÷ÀÚµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä!")) return true;
//	if(isEmpty(fBid3,"»ç¾÷ÀÚµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä!")) return true;
	if(isNotNumber(fBid1,"»ç¾÷ÀÚµî·Ï¹øÈ£ ¾ÕÀÚ¸®´Â ¼ýÀÚ·Î¸¸ ±âÀÔÇØ ÁÖ¼¼¿ä!")) return true;
	if(isNotNumber(fBid2,"»ç¾÷ÀÚµî·Ï¹øÈ£ °¡¿îµ¥ÀÚ¸®´Â ¼ýÀÚ·Î¸¸ ±âÀÔÇØ ÁÖ¼¼¿ä!")) return true;
	if(isNotNumber(fBid3,"»ç¾÷ÀÚµî·Ï¹øÈ£ µÞÀÚ¸®´Â ¼ýÀÚ·Î¸¸ ±âÀÔÇØ ÁÖ¼¼¿ä!")) return true;
	if(isNotExactLength(fBid1, 3, "»ç¾÷ÀÚµî·Ï¹øÈ£ ¾ÕÀÚ¸®´Â 3ÀÚ¸®ÀÔ´Ï´Ù!")) return true;
	if(isNotExactLength(fBid2, 2, "»ç¾÷ÀÚµî·Ï¹øÈ£ µÞÀÚ¸®´Â 2ÀÚ¸®ÀÔ´Ï´Ù!")) return true;
	if(isNotExactLength(fBid3, 5, "»ç¾÷ÀÚµî·Ï¹øÈ£ µÞÀÚ¸®´Â 5ÀÚ¸®ÀÔ´Ï´Ù!")) return true;

	strchr = fBid1.value.concat(fBid2.value.concat(fBid3.value));

	var num1 = strchr.charAt(0);
	var num2 = strchr.charAt(1);
	var num3 = strchr.charAt(2);
	var num4 = strchr.charAt(3);
	var num5 = strchr.charAt(4);
	var num6 = strchr.charAt(5);
	var num7 = strchr.charAt(6);
	var num8 = strchr.charAt(7);
	var num9 = strchr.charAt(8);
	var num10 = strchr.charAt(9);

	var total = (num1*1)+(num2*3)+(num3*7)+(num4*1)+(num5*3)+(num6*7)+(num7*1)+(num8*3)+(num9*5);
	total = total + parseInt((num9 * 5) / 10);

	var tmp = total % 10;
	var num_chk = 0;

	if(tmp != 0) var num_chk = 10 - tmp;

	if(num_chk != num10) {
		alert("»ç¾÷ÀÚµî·Ï¹øÈ£°¡ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù. \n´Ù½Ã ÀÔ·ÂÇØ ÁÖ¼¼¿ä!");
		fBid1.focus();
		return true;
	}
	return false;
}


function chkKor(objectName, msg, isSet) {
	var val = eval('document.'+objectName+'.value');
	var len = val.length;
	var codeLen = 0;
	for (i=0; i<len; i++)
		(val.charCodeAt(i) > 255)? codeLen+=2:codeLen++;
	if (len != codeLen) {
		alert(msg + ' ÇÑ±ÛÀº ÀÔ·ÂÇÒ ¼ö ¾ø½À´Ï´Ù');
		if (isSet) eval('document.'+objectName+'.focus();');
		return false;
	}
	return true;
}

function chkBlank(objectName, msg, isSet) {

	var val = eval('document.'+objectName+'.value');
	if (val.indexOf(' ') >= 0) {
		alert(msg+ ' °ø¹éÀÌ ¿Ã¼ö ¾ø½À´Ï´Ù');
		if (isSet) eval('document.'+objectName+'.focus();');
		return false;
	}
	return true;
}

function chkLengthExact(objectName, msg, limitByte, isSet) {

	var b = 0;
	var val = eval('document.'+objectName+'.value');
	var len = eval('document.'+objectName+'.value.length');
    for (i=0; i<len; i++) b = (val.charCodeAt(i) > 255) ? b+2:b+1;

	if (b != limitByte) {
		alert(msg+' ÀÔ·ÂÀº Á¤È®È÷ '+limitByte+'byte¸¦ ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù');
		if (isSet) eval('document.'+objectName+'.focus();');
		return false;
	}
	return true;
}

function chkLengthShorter(objectName, msg, limitByte, isSet) {

	var b = 0;
	var val = eval('document.'+objectName+'.value');
	var len = eval('document.'+objectName+'.value.length');
    for (i=0; i<len; i++) b = (val.charCodeAt(i) > 255) ? b+2:b+1;

	if (b < limitByte) {
		alert(msg+' ÀÔ·ÂÀº '+limitByte+'byte ÀÌ»ó ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù');
		if (isSet) eval('document.'+objectName+'.focus();');
		return false;
	}
	return true;
}

function chkLengthExact(objectName, msg, limitByte, isSet) {

	var b = 0;
	var val = eval('document.'+objectName+'.value');
	var len = eval('document.'+objectName+'.value.length');
    for (i=0; i<len; i++) b = (val.charCodeAt(i) > 255) ? b+2:b+1;

	if (b != limitByte) {
		alert(msg+' ÀÔ·ÂÀº Á¤È®È÷ '+limitByte+'byte¸¦ ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù');
		if (isSet) eval('document.'+objectName+'.focus();');
		return false;
	}
	return true;
}

function chkLength(objectName, msg, limitByte, isSet) {

	var b = 0;
	var val = eval('document.'+objectName+'.value');
	var len = eval('document.'+objectName+'.value.length');
    for (i=0; i<len; i++) b = (val.charCodeAt(i) > 255) ? b+2:b+1;

	if (b > limitByte) {
		alert(msg+' ÀÔ·ÂÀº '+limitByte+'byte ±îÁöÀÔ´Ï´Ù');
		if (isSet) eval('document.'+objectName+'.focus();');
		return false;
	}
	return true;
}

function chkValue(objectName, msg, isSet) {

	var val = eval('document.'+objectName+'.value');
	if (val.trim() == '') {
		alert(msg+' ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
		if (isSet) eval('document.'+objectName+'.focus();');
		return false;
	}
	return true;
}

function chkBadContent(objectName, msg, badWord, isSet) {
	if (badWord == 'null' || badWord == '')
		return true;
	var val = eval('document.'+objectName+'.value');
	var bad = badWord.split(",");
	for (var i = 0; i < bad.length; i++) {

		if (bad[i].trim().length > 0 && val.indexOf(bad[i]) > -1) {
			alert(msg+'¿¡ "'+bad[i]+'"À»/¸¦ »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù!');
			if (isSet) eval('document.'+objectName+'.focus();');
			return false;
		}
	}
	return true;
}

function chkJumin(objectName1, objectName2) {

	var resiFirst = eval('document.'+objectName1+'.value');
	var resiLast = eval('document.'+objectName2+'.value');


	var chk = 0;
	var nYear   = resiFirst.substring(0,2);
	var nMondth = resiFirst.substring(2,4);
	var nDay    = resiFirst.substring(4,6);
	var nSex    = resiLast.charAt(0);

	for (i=0; i<resiFirst.length; i++) {
        	if(Num.indexOf(resiFirst.substring(i,i+1))<0) {
			alert('ÁÖ¹Îµî·Ï¹øÈ£ ¾ÕºÎºÐ¿¡ Àß¸øµÈ ¹®ÀÚ°¡ ÀÖ½À´Ï´Ù');
			eval('document.'+objectName1+'.focus();');
			eval('document.'+objectName1+'.select();');
			return false;
		}
	}
	for (i=0; i<resiLast.length; i++) {
        	if(Num.indexOf(resiLast.substring(i,i+1))<0) {
			alert('ÁÖ¹Îµî·Ï¹øÈ£ µÞºÎºÐ¿¡ Àß¸øµÈ ¹®ÀÚ°¡ ÀÖ½À´Ï´Ù');
			eval('document.'+objectName2+'.focus();');
			eval('document.'+objectName2+'.select();');
			return false;
		}
	}

	if ( resiFirst.length!=6 ||  nMondth<1 || nMondth>12 || nDay<1 || nDay>31) {
		alert('ÁÖ¹Îµî·Ï¹øÈ£ ¾ÕºÎºÐ¿¡ Àß¸øµÇ¾ú½À´Ï´Ù');
		eval('document.'+objectName1+'.focus();');
		eval('document.'+objectName1+'.select();');
		return false;
	}

	if ( resiLast.length!=7 || (nSex!=1 && nSex!=2 && nSex!=3 && nSex!=4) ) {
		alert('ÁÖ¹Îµî·Ï¹øÈ£ µÞºÎºÐ¿¡ Àß¸øµÇ¾ú½À´Ï´Ù');
			eval('document.'+objectName2+'.focus();');
			eval('document.'+objectName2+'.select();');
		return false;
	}

	var i;
	for (i=0; i<6; i++) {
		chk += ( (i+2) * parseInt( resiFirst.charAt(i) ));
	}

	for (i=6; i<12; i++) {
		chk += ( (i%8+2) * parseInt( resiLast.charAt(i-6) ));
	}

	chk = 11 - (chk%11);
	chk %= 10;

	if (chk != parseInt( resiLast.charAt(6))) {
		alert('À¯È¿ÇÏÁö¾ÊÀº ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù!!');
		eval('document.'+objectName1+'.focus();');
		return false;
	}
	return true;
}

function chkFile() {
	var obj = eval("document."+chkFile.arguments[0]+".value");
	var extds = obj.split("\\");

	var filename = extds[extds.length-1];
	var ext = filename.split(".");

	if (ext.length == 1)
		return false;
	var iscorrect = false;
	for (var i = 1; i < chkFile.arguments.length; i++) {
		if (ext[1].toUpperCase() == chkFile.arguments[i])
			iscorrect = true;
	}
	return iscorrect;
}

function link(addr) {
	var val = Math.floor(Math.random() * 100000000);
	if (addr.indexOf('&') > -1 || addr.indexOf('?') > -1) {
		if (addr.indexOf('&m=') == -1)
			addr = addr + '&m=' + val;
	} else {
		addr = addr + '?m='+ val;
	}

	window.open(addr, '_self');
}

function viewMyMessage(addr) {
	window.open(addr, '_blank', 'width=450, height=500');
}

function back() {
	window.history.back();
}

function getCurrentpage() {
	var temp = location.href;
	temp = temp.substring(temp.lastIndexOf('/')+1, temp.length);
	if (temp.lastIndexOf('?') > -1)
		temp = temp.substring(0, temp.lastIndexOf('?'));

	return temp;
}

function getCurrentparameter() {
	var temp = location.href;
	var current = getCurrentpage();
	if (temp.indexOf('?') > -1)
		temp = temp.substring(temp.lastIndexOf(current)+current.length, temp.length);
	else
		temp = '';
	return temp;
}

function imageResize() {
	var boardWidth = 650;
	if (document.cashcow && document.cashcow.boardWidth)
		boardWidth = document.cashcow.boardWidth.value - 70;

	var obj = document.getElementsByName('unicornimage');
	for (var i = 0; i < obj.length; i++) {
		if (obj[i].width > boardWidth)
			obj[i].width = boardWidth;
	}
}

function pageQuery(q) {
        if(q.length > 1) this.q = q.substring(1, q.length);
        else this.q = null;
        this.keyValuePairs = new Array();
        if(q) {
                for(var i=0; i < this.q.split("&").length; i++) {
                        this.keyValuePairs[i] = this.q.split("&")[i];
                }
        }
        this.getKeyValuePairs = function() { return this.keyValuePairs; }
        this.getValue = function(s) {
                for(var j=0; j < this.keyValuePairs.length; j++) {
                        if(this.keyValuePairs[j].split("=")[0] == s)
                                return this.keyValuePairs[j].split("=")[1];
                }
                return -1;
        }
        this.getParameters = function() {
                var a = new Array(this.getLength());
                for(var j=0; j < this.keyValuePairs.length; j++) {
                        a[j] = this.keyValuePairs[j].split("=")[0];
                }
                return a;
        }
        this.getLength = function() { return this.keyValuePairs.length; }
}

function captureEnter(e, handler) {
	if (isMIE()) {
		if (event.keyCode == 13) eval(handler);
	} else {
		if (e.keyCode == 13) eval(handler);
	}

}

function autotab(obj, len) {
	var f = obj.form;
	if (obj.value.length == 2) {
		var objNm = obj.name;

		var idx = 0;
		for (var i = 0; i < f.elements.length; i++) {
			if (f.elements[i].name == objNm) {
				idx = i+1;
				while (true) {
					if (f.elements.length <= idx) break;
					if (f.elements[idx].type == 'text') break;
					idx++;
				}
				break;
			}
		}
		f.elements[idx].focus();
		f.elements[idx].select();
	}
}

var popupMessageWindow;
function popupMessage(txt) {
	if(popupMessageWindow != null) popupMessageWindow.close();

	var height = screen.height;
	var width = screen.width;
	var leftpos = width / 2 - 250;
	var toppos = height / 2 - 100;
	var windowprops="menu=no,location=no,resiable=1,toolbar=no,status=no,scrollbars=no,left="+leftpos+",top="+toppos+",width=420,height=180";

	popupMessageWindow = window.open("about:blank", "message", windowprops);
	if (popupMessageWindow != null) {
		var Doc = "";

		Doc+="<html>\n";
		Doc+="<head>";
		Doc+="<title>::: ¾Ë¸³´Ï´Ù. :::</title>\n";
		Doc+="<link rel='stylesheet' href='/css/style.css' type='text/css'>\n";
		Doc+="<SCRIPT LANGUAGE='JavaScript' src='/js/dongyang.js'></SCRIPT>\n";
		Doc+="<SCRIPT LANGUAGE='JavaScript' src='/js/menu_link.js'></SCRIPT>\n";
		Doc+="</head>\n";
		Doc+="<body>\n";
		Doc+="<table width='420' border='0' cellspacing='0' cellpadding='0'>\n";
		Doc+="<tr>\n";
		Doc+="<td background='/images/common/p_back01.gif'><img src='/images/etc/title_notice.gif' width='89' height='42'></td>\n";
		Doc+="</tr>\n";
		Doc+="<tr>\n";
		Doc+="<td align='center' style=padding-top:15px;padding-bottom:15px><table width='400' border='0' cellpadding='0' cellspacing='0'  background='/images/common/p_box02.gif' >\n";
		Doc+="<tr> \n";
		Doc+="<td height=10 background='/images/common/p_box01.gif' style=background-repeat:no-repeat;></td>\n";
		Doc+="</tr>\n";
		Doc+="<tr> \n";
		Doc+="<td align='center' style=padding-top:10px;padding-bottom:10px;padding-left:10px;padding-right:10px background='/images/common/p_box02.gif'>"+txt+"</td>\n";
		Doc+="</tr>\n";
		Doc+="<tr> \n";
		Doc+="<td height=10 background='/images/common/p_box03.gif'style=background-repeat:no-repeat;></td>\n";
		Doc+="</tr>\n";
		Doc+="</table></td>\n";
		Doc+="</tr>\n";
		Doc+="<tr>";
		Doc+="<td align='right' bgcolor='f9f9f9' style=padding:10px;><img src='/images/common/bt_close01.gif' border=0 style=cursor:pointer onclick=window.close()></td>\n";
		Doc+="</tr>\n";
		Doc+="</table>\n";
		Doc+="</body>\n";
		Doc+="</html>\n";
/*
		Doc+="<title>¾Ë¸²Ã¢</title>";
		Doc+="<link href='/css/style.css' rel=stylesheet>";
		Doc+="<style>P {white-space:pre;margin-top:3px;margin-bottom:3px;margin-left:3;margin-right:3;word-break:break-all;}</style>";
		Doc+="<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onBlur=self.focus() bgcolor=#F5F5F5>";
		Doc+="<table border=0 cellspacing=0 cellpadding=0 width=100% height=100%>";
		Doc+="<tr><td width=1% height=30><img src=./img/common/board/title_icon.gif width=23 height=30></td><td background='./img/common/board/title_bg.gif' width=99%><b>Hi!</b></td></tr>";
		Doc+="<tr><td colspan=2 align=center style=font-size:10pt><img src=./img/common/board/infor.gif align=absmiddle><b> "+txt+"</b></td></tr>";
		Doc+="<tr><td colspan=2 align=center><img src=./img/common/board/btn_close.gif align=absmiddle style=cursor:pointer onclick=window.close()></td></tr></table>";
		Doc+="</body>";
*/

		popupMessageWindow.document.open();
		popupMessageWindow.document.write(Doc);
		popupMessageWindow.document.close();
		popupMessageWindow.focus();
	} else {
		txt = txt.replace('<BR>', '\n');
		alert(txt.strip());
	}
}

var popupLoadingWindow;
function popupLoading(bul) {
	if (bul) {
		if(popupLoadingWindow != null) popupLoadingWindow.close();

		var height = screen.height;
		var width = screen.width;
		var leftpos = width / 2 - 150;
		var toppos = height / 2 - 100;
		var windowprops="menu=no,location=no,resiable=1,toolbar=no,status=no,scrollbars=no,left="+leftpos+",top="+toppos+",width=300,height=170";

		popupLoadingWindow = window.open("about:blank", "message", windowprops);

		if (popupLoadingWindow != null) {
			var Doc = "";
			Doc+="<title>Á¤º¸</title>";
			Doc+="<link href='./css/style.css' rel=stylesheet>";
			Doc+="<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onBlur=self.focus() bgcolor=#F5F5F5>";
			Doc+="<table border=0 cellspacing=0 cellpadding=0 width=100% height=100%>";
			Doc+="<tr><td width=1% height=30><img src=./img/common/board/title_icon.gif width=23 height=30></td><td background='./img/common/board/title_bg.gif' width=99%><b>Hi!</b></td></tr>";
			Doc+="<tr><td colspan=2 align=center style=font-size:10pt><img src=./img/common/board/loading.gif align=absmiddle></td></tr></table>";
			Doc+="</body>";

			popupLoadingWindow.document.open();
			popupLoadingWindow.document.write(Doc);
			popupLoadingWindow.document.close();
			popupLoadingWindow.focus();
		}
	} else {
		if (popupLoadingWindow != null)
			popupLoadingWindow.close();
	}
}

function alertAndBack(txt) {
	alert(txt);
	window.history.back();
}

function moveTop() {
	window.open('./', '_top');
}

function format(val) {

	var src;
	var i;
	var factor;
	var su;
	var Spacesize = 0;

	var String_val = val.toString();

	factor = String_val.length % 3;
	su = (String_val.length - factor) /3;
	src = String_val.substring(0,factor);

	for(i=0; i<su ; i++) {
		if ((factor==0)&&(i==0))
			src += String_val.substring(factor+(3*i), factor+3+(3*i));
		else {
			if ( String_val.substring(factor+(3*i) - 1, factor+(3*i)) != "-" ) src +=",";
				src += String_val.substring(factor+(3*i), factor+3+(3*i));
		}
        }
	return src;
}

function getNavigatorType() {
	if ( navigator.appName == "Microsoft Internet Explorer" )
		return 1;
	else if ( navigator.appName == "Netscape" )
		return 2;
	else
		return 0;
}

function replaceAll(originalString, findText, replaceText){

	var pos = 0
	var preStr = ""
	var postStr = ""

	pos = originalString.indexOf(findText)

	while (pos != -1) {
		preString = originalString.substr(0,pos)
		postString = originalString.substring(pos+findText.length)
		originalString = preString + replaceText + postString
		pos = originalString.indexOf(findText)
	}

	return originalString
}

function adminlogin() {
	window.open('admin.do', '_top');
}

function managerlogin() {
	window.open('manager.do', '_top');
}



//´Þ·Â µî ¿ÀÇÂ¿ë :: ¿ìÆí¹øÈ£°Ë»ö javascript:winOpen('/zipcode.do', 'zipcode', 450, 400);
function winOpen(location, name, w, h) {
	LeftPosition=(screen.width)?(screen.width-w)/2:100;
	TopPosition=(screen.height)?(screen.height-h)/2:100;
	window.open(location, name, 'resizable=0,scrollbars=no,status=0,width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition);
}


// °¡¿îµ¥ ÆË¾÷ ¶ç¿ì±â
function NewWindow(mypage,myname,w,h,scroll){
	var win = null;
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings =
	'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
	win = window.open(mypage,myname,settings)
}



//ÀÚ¸®¼ö ÀÚµ¿ÀÌµ¿
function autoLengthMove(lenSize, moveElement) {
	var objEv = event.srcElement;
	var objEvValue = objEv.value;
	var objEvMove = eval(moveElement);

    if(objEvValue.length == lenSize) {
    	objEvMove.focus();
    }
}

//¼ýÀÚÇü¸¸ Ã¼Å©(¼Ò¼öÁ¡±îÁö)
function checkNumberDot(){
    var objEv = event.srcElement;
    var num ="0123456789.";
    var value_temp ="";
    var dotCount=0;
    event.returnValue = true;

    if(objEv.value.charAt(0)=="."){
       if(objEv.value.length>1){
         objEv.value=objEv.value.substring(1,objEv.value.length);
       }else{
         objEv.value="";
       }
    }

    for (var i=0;i<objEv.value.length;i++){
     if(objEv.value.charAt(i)==".")  dotCount++;
     if(num.indexOf(objEv.value.charAt(i)) == -1 || dotCount>1){
        event.returnValue = false;
     }else{
         value_temp += objEv.value.charAt(i);//num.indexOf(objEv.value.charAt(i));
     }

    }
    if(!event.returnValue){
      alert("¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä");
      objEv.value=value_temp;
    }

}
//¿µ¹®¼ýÀÚ¸¸ »ç¿ë°¡´É
function check2ByteLimit(){

    var objEv = event.srcElement;
    var num ="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
    var value_temp ="";
    event.returnValue = true;
    for (var i=0;i<objEv.value.length;i++){
     if(num.indexOf(objEv.value.charAt(i)) == -1){
        event.returnValue = false;
     }else{
       value_temp += (num.substring(num.indexOf(objEv.value.charAt(i)),num.indexOf(objEv.value.charAt(i))+1));
     }
    }
    if(!event.returnValue){
      alert("¿µ¹® ¹× ¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä");
      objEv.value=value_temp;
    }
}


//¸ÞÀÏÁÖ¼Ò°¡ ¿Ã¹Ù¸¥ Çü½ÄÀÎÁö Ã¼Å©ÇÏ´Â ÇÔ¼ö
function checkEmail(strEmail){
	var arrMatch = strEmail.match(/^(\".*\"|[A-Za-z0-9_-]([A-Za-z0-9_-]|[\+\.])*)@(\[\d{1,3}(\.\d{1,3}){3}]|[A-Za-z0-9][A-Za-z0-9_-]*(\.[A-Za-z0-9][A-Za-z0-9_-]*)+)$/);
	if (arrMatch == null) {
		return false;
	}

	var arrIP = arrMatch[2].match(/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/);
	if (arrIP != null) {
		for (var i = 1; i <= 4; i++) {
			if (arrIP[i] > 255) {
				return false;
				}
			}
	}

	return true;
}


// ¸ðµçÆäÀÌÁö ÀÌµ¿À» À§ÇÑ ÆäÀÌÁö :: ÀÏ¹ÝÆäÀÌÁö
function formSubmit(argUrl, argMethod, argForward, argCommand, argTilesDef, argPageNum, argSubNum, argSub2Num, argSub3Num, argPage, argPageScale, searchType, searchKey, searchType2, searchKey2, argPut_body) {
		/*
			argUrl			: ÆäÀÌÁöÁÖ¼Ò
			argMethod		: ¸Þ¼Òµå¸í
			argForward		:
			argCommand		:
			argTilesDef		: Å×ÀÏÁî¸í
			argPageNum		: 1Â÷¸Þ´º
			argSubNum		: 2Â÷¸Þ´º
			argSub2Num		: 3Â÷¸Þ´º
			argSub3Num		: 4Â÷¸Þ´º
			argPage			: ÆäÀÌÁö¹øÈ£ ±âº»°ª :1
			argPageScale	: ÆäÀÌÁö»çÀÌÁî ±âº»°ª:10
			searchType		: °Ë»öÁ¶°Ç1
			searchKey		: °Ë»ö¾î1
			searchType2		: °Ë»öÁ¶°Ç2
			searchKey2		: °Ë»ö¾î2
			argPut_body		: º»¹®³»¿ë
		*/

		if(argPage == "") argPage = 1;
		if(argPageScale == "") argPageScale = 10;
		if(argPageNum == "") argPageNum = 7;

		var transferUrl = "";
		transferUrl += argUrl;
		transferUrl += "?method=" + argMethod;
		transferUrl += "&forward=" + argForward;
		transferUrl += "&command=" + argCommand;
		transferUrl += "&tilesDef=" + argTilesDef;
		transferUrl += "&pageNum=" + argPageNum;
		transferUrl += "&subNum=" + argSubNum;
		transferUrl += "&sub2Num=" + argSub2Num;
		transferUrl += "&sub3Num=" + argSub2Num;
		transferUrl += "&page=" + argPage;
		transferUrl += "&pageScale=" + argPageScale;
		transferUrl += "&searchType="+searchType+"";
		transferUrl += "&searchKey="+searchKey+"";
		transferUrl += "&searchType2="+searchType2+"";
		transferUrl += "&searchKey2="+searchKey2+"";
		transferUrl += "&put_body="+argPut_body+"";
		self.location.href=transferUrl;
}

// ¸ðµçÆäÀÌÁö ÀÌµ¿À» À§ÇÑ ÆäÀÌÁö :: ÀÏ¹ÝÆäÀÌÁö
function formSubmitCMS(listId, content_id, curpage, condition, keyword, put_body) {
	var f = document.common_form;

		/*
			argUrl			: ÆäÀÌÁöÁÖ¼Ò
			argMethod		: ¸Þ¼Òµå¸í
			argForward		:
			argCommand		:
			argTilesDef		: Å×ÀÏÁî¸í
			argPageNum		: 1Â÷¸Þ´º
			argSubNum		: 2Â÷¸Þ´º
			argSub2Num		: 3Â÷¸Þ´º
			argSub3Num		: 4Â÷¸Þ´º
			argPage			: ÆäÀÌÁö¹øÈ£ ±âº»°ª :1
			argPageScale	: ÆäÀÌÁö»çÀÌÁî ±âº»°ª:10
			searchType		: °Ë»öÁ¶°Ç1
			searchKey		: °Ë»ö¾î1
			searchType2		: °Ë»öÁ¶°Ç2
			searchKey2		: °Ë»ö¾î2
			argPut_body		: º»¹®³»¿ë


			** keyword : member_my_qnaÀÌ¸é ÅëÇÕÈ¸¿ø ÆË¾÷Ã¢¿¡¼­ÀÇ ³ªÀÇÁú¹®/´äº¯³»¿ª ¸®½ºÆ®¿¡¼­ º¸±â½Ã »õÃ¢À¸·Î Ç¥±âÇØÁØ´Ù.

		*/
		var argUrl = f.argUrl.value;
		var argMethod = f.argMethod.value;
		var argForward = f.argForward.value;
		var argCommand = f.argCommand.value;
		var argTilesDef = f.argTilesDef.value;
		var argPageNum = f.argPageNum.value;
		var argSubNum = f.argSubNum.value;
		var argSub2Num = f.argSub2Num.value;
		var argSub3Num = f.argSub3Num.value;
		var argPage = f.argPage.value;
		var argPageScale = f.argPageScale.value;
		var searchType = f.searchType.value;
		var searchKey = f.searchKey.value;
		var searchType2 = f.searchType2.value;
		var searchKey2 = f.searchKey2.value;

		if(argPage == "") argPage = 1;
		if(argPageScale == "") argPageScale = 10;
		if(argPageNum == "") argPageNum = 7;

		var transferUrl = "";
		transferUrl += argUrl;
		transferUrl += "?method=" + argMethod;
		transferUrl += "&forward=" + argForward;
		transferUrl += "&command=" + argCommand;
		transferUrl += "&tilesDef=" + argTilesDef;
		transferUrl += "&pageNum=" + argPageNum;
		transferUrl += "&subNum=" + argSubNum;
		transferUrl += "&sub2Num=" + argSub2Num;
		transferUrl += "&sub3Num=" + argSub2Num;
		transferUrl += "&page=" + argPage;
		transferUrl += "&pageScale=" + argPageScale;
		transferUrl += "&searchType="+searchType+"";
		transferUrl += "&searchKey="+searchKey+"";
		transferUrl += "&searchType2="+searchType2+"";
		transferUrl += "&searchKey2="+searchKey2+"";
		transferUrl += "&put_body="+put_body+"";
		transferUrl += "&listId="+listId+"";
		transferUrl += "&content_id="+content_id+"";
		transferUrl += "&curpage="+curpage+"";
		transferUrl += "&condition="+condition+"";
		transferUrl += "&keyword="+keyword+"";

		if(keyword == "member_my_qna"){
			window.open(transferUrl);
		}else{
			self.location.href=transferUrl;
		}
}
//ÅëÇÕ°Ë»ö Ã¼Å©ÇÏ´Â ÇÔ¼ö
function search_check_form(){
	var f = document.search_form;
	var source_temp = f.keyword.value;

	if(source_temp == "" || source_temp == "°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä"){
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		f.keyword.focus();
		f.keyword.select();
		return;
	}

	f.submit();
}

function funSearchKeyClear(){
	var f = document.search_form;
	f.keyword.value="";
	f.keyword.focus();
	f.keyword.select();

}


function funKorEncodeFileDown(name){
	//var name = encodeURIComponent(name);
	//name = "/knowledge/pdf/"+name+".pdf";
	window.open(name);
}


function funPopPrint(){
	NewWindow('/common/print.jsp', 'PopupPrint', '750', '600', "yes")
}


// ¸ðµç½ÎÀÌÆ®ÀÇ °øÅëµÈ ¸µÅ©ºÎºÐ
// ÇöÀç ·Î±×ÀÎ»óÅÂ¸¦ Ã¼Å©ÇØ¼­ ·Î±×ÀÎÀ» ÇÒ°ÍÀÎÁö¿©ºÎ¸¦ Ã¼Å©ÇÑ´Ù.
function login_check(){
	var f = document.common_form;
	var source_temp = f.id_user.value;

	if(source_temp == "" || source_temp == "null"){
		if(confirm("·Î±×ÀÎÀ» ÇÏ½ÅÈÄ ÀÌ¿ëÇÏ½Ã±æ ¹Ù¶ø´Ï´Ù.\n·Î±×ÀÎÇÏ½Ã°Ú½À´Ï±î?")){
			login();
			return(false);
		}else{
			return(false);
		}
	}
	return(true);
}


//¸â¹ö
function login(){ //·Î±×ÀÎ
	NewWindow('/login.do','LOGIN',910,560,'1');
}
function login2(){location.href = "/login.do";}   //·Î±×ÀÎ :: ÆË¾÷Ã¢³»¿¡¼­

function logout(returnURI){ //·Î±×¾Æ¿ô
	location.href= "/login-process.do?method=processLogout&returnURI="+returnURI+"";
}

function member(){
	NewWindow('/member.do','LOGIN',910,560,'1');
}
function member2(){location.href = "/member.do";}      //È¸¿ø°¡ÀÔ ÅëÇÕÈ¸¿ø °ü¸® È­¸é¿¡ ÀÖ´Â ¿ÞÂÊ¸Þ´º¿¡¼­ ¸µÅ© µÉ¶§

function draw2(){location.href = "/member.do?method=deleteFormMember&command=MODIFY";}   //ÆË¾÷ÆäÀÌÁö³»¿¡¼º..



function idpw(){
	NewWindow('/member.do?method=idpasswdSearchFormMember','LOGIN',910,560,'1');
}      	//¾ÆÀÌµð/ÆÐ½º Ã£±â È¨ÆäÀÌÁö¿¡¼­ ¿¡¼­ ¸µÅ© µÉ¶§
function idpw2(){location.href = "/member.do?method=idpasswdSearchFormMember";}      		//¾ÆÀÌµð/ÆÐ½º Ã£±â ÅëÇÕÈ¸¿ø °ü¸® È­¸é¿¡ ÀÖ´Â ¿ÞÂÊ¸Þ´º¿¡¼­ ¸µÅ© µÉ¶§

function help(){location.href = "/daehak.do?tilesDef=popup.layout&put_body=/member/member_help.jsp";}   //help
function help02(){  //help // È¨ÆäÀÌÁö¿¡¼­ ¿¬°á
	NewWindow('/daehak.do?tilesDef=popup.layout&put_body=/member/member_help.jsp','LOGIN',910,560,'1');
}

function my_list(){
	NewWindow('/daehak.do?tilesDef=popup.layout&put_body=/member/member_08_myqna.jsp','LOGIN',910,560,'1');
}

//³ªÀÇÀÛ¼º±Û/´äº¯

function member_mod(){
	NewWindow('/member.do?method=editMember&command=MODIFY','LOGIN',910,560,'1');
}
function member_mod02(){location.href = "/member.do?method=editMember&command=MODIFY";}

function foot_01(){location.href = "/daehak.do?tilesDef=popup.layout&put_body=/member/member_email.jsp";}    			//ÀÌ¸ÞÀÏ¹«´Ü¼öÁý°ÅºÎ ÅëÇÕÈ¸¿ø °ü¸® È­¸é¿¡ ÀÖ´Â ¿ÞÂÊ¸Þ´º¿¡¼­ ¸µÅ© µÉ¶§
function foot_0102(){//ÀÌ¸ÞÀÏ¹«´Ü¼öÁý°ÅºÎ È¨ÆäÀÌÁö¿¡¼­ ¿¬°áµÉ¶§
	NewWindow('/daehak.do?tilesDef=popup.layout&put_body=/member/member_email.jsp','EMAIL_NO',520,620,'0');
}

function foot_02(){location.href = "/daehak.do?tilesDef=popup.layout&put_body=/member/member_policy.jsp";} 	 	    //°³ÀÎÁ¤º¸º¸È£Á¤Ã¥ ÅëÇÕÈ¸¿ø °ü¸® È­¸é¿¡ ÀÖ´Â ¿ÞÂÊ¸Þ´º¿¡¼­ ¸µÅ© µÉ¶§
function foot_0202(){	//°³ÀÎÁ¤º¸º¸È£Á¤Ã¥  È¨ÆäÀÌÁö¿¡¼­ ¿¬°áµÉ¶§
	NewWindow('/daehak.do?tilesDef=popup.layout&put_body=/member/member_policy.jsp','LOGIN',910,560,'1');
}

function foot_03(){location.href = "/daehak.do?tilesDef=popup.layout&put_body=/member/member_info.jsp";}   			//Á¤º¸°ø°³ ÅëÇÕÈ¸¿ø °ü¸® È­¸é¿¡ ÀÖ´Â ¿ÞÂÊ¸Þ´º¿¡¼­ ¸µÅ© µÉ¶§
function foot_0302(){	//Á¤º¸°ø°³ È¨ÆäÀÌÁö¿¡¼­ ¿¬°áµÉ¶§
	location.href = "/daehak.do?method=&forward=&command=&tilesDef=daehak.layout&pageNum=06&subNum=01&sub2Num=02&sub3Num=&page=1&pageScale=10&searchType=&searchKey=&searchType2=&searchKey2=&put_body=/daehak/service/service_0102_list.jsp";
}

// HELP : À©µµ¿ìXP ¼­ºñ½ºÆÑ2 ÆË¾÷Â÷´Ü
function help_pop01(){
	NewWindow('/daehak.do?tilesDef=popup.layout&put_body=/member/member_help_windowsxp.jsp','MEMBER_HELP',820,560,'1');
}

// HELP : È¨ÆäÀÌÁö È¸¿ø°¡ÀÔ ¾È³»
function help_pop02(){
	NewWindow('/daehak.do?tilesDef=popup.layout&put_body=/member/member_help_guide.jsp','MEMBER_HELP',820,560,'1');
}

// HELP : ÅëÇÕÀÎÁõ À¥¼­ºñ½º
function help_pop03(){
	NewWindow('/daehak.do?tilesDef=popup.layout&put_body=/member/member_help_info.jsp','MEMBER_HELP',820,560,'1');
}

// HELP : ³Ý¹ÌÆÃ
function help_pop04(){
	NewWindow('/daehak.do?tilesDef=popup.layout&put_body=/member/member_help_netmeeting.jsp','MEMBER_HELP',570,560,'1');
}

// HELP : ÀÎÅÍ³Ýµð½ºÄÏ
function help_pop05(){
	NewWindow('/daehak.do?tilesDef=popup.layout&put_body=/member/member_help_policy_disk.jsp','MEMBER_HELP',820,560,'1');
}

// HELP : Á¤º¸±¤Àå ÀÌ¿ë±ÔÁ¤
function help_pop06(){
	NewWindow('/daehak.do?tilesDef=popup.layout&put_body=/member/member_help_policy_info.jsp','MEMBER_HELP',820,560,'1');
}

// HELP : °Ô½ÃÆÇ ÀÌ¿ë±ÔÁ¤
function help_pop07(){
	NewWindow('/daehak.do?tilesDef=popup.layout&put_body=/member/member_help_policy_board.jsp','MEMBER_HELP',820,560,'1');
}

// HELP : ±³Á÷¿ø ¸ÞÀÏ »ç¿ëÀ» À§ÇÑ ÀÎÁõ¼­ ¼³Ä¡
function help_pop08(){
	NewWindow('/daehak.do?tilesDef=popup.layout&put_body=/member/member_help_installcert.jsp','MEMBER_HELP',820,560,'1');
}

var myAnchors=document.all.tags("A");
function allblur() {
	for (i=0;i<myAnchors.length;i++) {
		myAnchors[i].onfocus=new Function("myAnchors["+i+"].blur()");
	}
}


//body_location ºÎºÐÀ» XML¿¡¼­ ÀÐ¾î¿Í¼­ º¸¿©ÁØ´Ù.
function XmlInfo( docLoc, pageNum, subNum, sub2Num, sub3Num )
{
    //XML·Îµå
    var xmlDoc=new ActiveXObject("microsoft.XMLDOM");
    xmlDoc.async=false;
    xmlDoc.load(docLoc);

    var result = "";
    var root   = xmlDoc.documentElement;     //ÃÖ»óÀ§ ·çÆ®¿¤¸®¸ÕÆ®

    //pageNum
    if( pageNum != "" ){
        result += root.childNodes(pageNum-1).attributes(0).value;
    }

    //subNum
    if( subNum != "" ){
        result += ">" + root.childNodes(pageNum-1).childNodes(subNum-1).attributes(0).value;
    }

    //sub2Num
    if( sub2Num != "" ){
        result += ">" + root.childNodes(pageNum-1).childNodes(subNum-1).childNodes(sub2Num).attributes(0).value;
    }

    //sub3Num
    if( sub3Num != "" ){
        result += ">" + root.childNodes(00).childNodes(00).attributes(0).value;
    }

    //document.getElementById("location").innerHTML = result;
    document.getElementById("location").innerText = result;

    resutl = null;
    root   = null;
    xmlDoc = null;

}


// °ü·Ã»çÀÌÆ® ¹Ù·Î°¡±â ÇÔ¼ö
function funQuickGo1(value){

	/*
		01 : ÇÐ»çÀÏÁ¤
		02 : ÇÐ»çµµ¿ì¹Ì
		03 : Á¤º¸±¤Àå
		04 : µµ¼­°ü
		05 : °¡»ó°­ÁÂ
		06 : »êÇÐÇù·Â
		07 : À¥ÇÏµå
	*/
	var f = document.common_form;
	var source_temp;
	var source_temp2;

	if(value == "01"){
		campus_01();
	}else if(value == "02"){

		// ·Î±×ÀÎÀ» ÇÏ¿´´ÂÁö ·Î±×ÀÎÇÑ µî±ÞÀÌ ÀçÇÐ»ýÀÎÁö Ã¼Å©ÇÑ´Ù.
		source_temp = f.id_user.value;
		source_temp2 = f.ULEVEL.value;
		if(source_temp != "" && source_temp != "null" && source_temp2 != "" && source_temp2 != "null") {
		   if(source_temp != "" && source_temp != "null" && source_temp2 != "" && source_temp2 != "null" && (source_temp2 == "S1"||source_temp2 == "S2"||source_temp2 == "E")){
				window.open("http://doumi.dongyang.ac.kr");
			}else{
				alert("ÀçÇÐ»ý ¹× ±³Á÷¿ø È¸¿ø¸¸ÀÌ »ç¿ë°¡´ÉÇÕ´Ï´Ù");
			}
		} else {
			login();
		}
	}else if(value == "03"){
		window.open("http://mail.dongyang.ac.kr");
	}else if(value == "04"){
		window.open("http://library.dongyang.ac.kr/dlsearch/tmaxsso/sso_login.asp");
	}else if(value == "05"){
		window.open("http://cyber.dongyang.ac.kr/");
	}else if(value == "06"){
		window.open("http://sanhak.dongyang.ac.kr/");
	}else if(value == "07"){
		location.href = "/sso/sso_idisk.jsp?tp=4";
	}
}

// °ü·Ã»çÀÌÆ® ¹Ù·Î°¡±â ÇÔ¼ö
// °ü·Ã»çÀÌÆ®¸¦ DB·Î °ü¸®ÇÏ¸é¼­
// °ªÀÌ noneÀ¸·Î Ã³¸®µÇ´Â ºÎºÐÀÌ ÀÖ¾î¼­ Ãß°¡
function funQuickGo2(strUrl){
	if(strUrl != ""){
		if( strUrl == "http://none" || strUrl == "http://none/" || strUrl == "none" ){
			return;
		}else{
			window.open( "http://"+strUrl);
		}
	}
}

// ÅëÇÕ°Ë»öÇÏ±â
function funTotalSearch(){
	var f = document.totalSearch;
	var searchkey;

	searchkey = f.searchkey.value;
	if(searchkey == ""){
		alert("°Ë»öÇÒ °Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		f.searchkey.focus();
		f.searchkey.select();
		return;
	}

	//searchkey = encodeURIComponent(searchkey);

	window.open("/daehak/search/mirsearch.jsp?query="+searchkey+"&target=main&grouping=none&div_view=none&mode=new&range=all&sortfield=score&sortorder=desc&s_date=&e_date=&x=13&y=5");
}

// live@Edu ¸ÞÀÏ ¿­±â ÇÔ¼ö
function funQuickGo3(){

	var f = document.common_form;
	var source_temp;
	var source_temp2;

	// ·Î±×ÀÎÀ» ÇÏ¿´´ÂÁö ·Î±×ÀÎÇÑ µî±Þcheck
	source_temp = f.id_user.value;
	source_temp2 = f.ULEVEL.value;
	if(source_temp != "" && source_temp != "null" && source_temp2 != "" && source_temp2 != "null") {
	   if(source_temp != "" && source_temp != "null" && source_temp2 != "" && source_temp2 != "null" && (source_temp2 == "S1"||source_temp2 == "S2")){
			window.open("http://livesso.dongyang.ac.kr/mailpage.aspx");
			//alert("¼ö°­½ÅÃ»±â°£¿¡´Â ÇÐ±³ È¨ÆäÀÌÁö¿¡¼­ Á¤º¸±¤ÀåÀ¸·ÎÀÇ ·Î±×ÀÎ ¿¬µ¿ ¼­ºñ½º°¡ Àá½Ã Áß´Ü µË´Ï´Ù.\n\n·Î±×ÀÎ ÈÄ »ç¿ëÇÏ½Ã±â ¹Ù¶ø´Ï´Ù.");
			//window.open("http://may.dongyang.ac.kr/");
		}else if( source_temp != "" && source_temp != "null" && source_temp2 != "" && source_temp2 != "null" && (source_temp2 == "E") ) {
			window.open("../sso/goUC.jsp");
		} else {
			alert("ÀçÇÐ»ý ¹× ±³Á÷¿ø È¸¿ø¸¸ÀÌ »ç¿ë°¡´ÉÇÕ´Ï´Ù");
			return;
		}
	} else {
		login();
	}
}
