/*--------------------------------------------------- ÇÁ·Î±×·¥¸í	: HMº´¿ø È¨ÆäÀÌÁö ¸®´º¾ó ÆÄÀÏ¸í		: /_script/commonLib.js ÀÛ¼ºÀÚ		: Á¶ÀÏÈ¯ ÆÄÀÏ³»¿ë	: javascript ÇÔ¼ö  ÆÄÀÏ ¹öÀü		: 1.0 ÀÛ¼ºÀÏ		: 2008.11.15 ÃÖÁ¾¼öÁ¤ÀÏ	:  ¼öÁ¤³»¿ë	: ---------------------------------------------------*//* Javascript Include class */var Byuli = {	default_path: null,	setPath: function(url){		this.default_path= url;	},	include: function() {		var jsList= this.include.arguments;		for ( var i=0; i<jsList.length; i++ ) {			var tag= "<script languge=\"javascript\"";			tag+= "src=\"" + this.default_path + jsList[i] + ".js?ver=1.1\"></script>";			document.write(tag);		}	}}function includeOnce(url) {	var elm = document.createElement('script');	elm.src = url;	document.getElementsByTagName('head')[0].appendChild(elm);}/* FF¿Í IE°ü·Ã */function setButAlign(obj) {	obj.style.verticalAlign = "baseline";}/* ¹®ÀÚ¿­ Ã¼Å© ÇÔ¼ö */function isValidID(str) {	var pattern = /^[a-z0-9_-]{4,20}$/;	return (pattern.test(str)) ? true : false;}function isValidPW(str) {	var pattern = /^[a-z0-9_-`~!@#$%^&*)(+]{4,20}$/;	return (pattern.test(str)) ? true : false;}function isValidPhone(str) {	var pattern = /(^0[0-9]{1,2})-([1-9][0-9]{1,3})-([0-9]{4})/;	return (pattern.test(str)) ? true : false;}function isValidJumin(str) {	var pattern = /(^[0-9]{6})-([0-9]{7})/;	return (pattern.test(str)) ? true : false;}function isValidNumber(str) {	var pattern = /(^[0-9])/;	return (pattern.test(str)) ? true : false;}function isValidEmail(str){	var pattern = /^[-_.a-zA-Z0-9]+@[\.a-zA-Z0-9-]+\.[a-zA-Z]+$/;	return (pattern.test(str)) ? true : false;}/* ¹®ÀÚ¿­ Ã¼Å© ÇÔ¼ö *//* PNG24 Åõ¸í */function setPng24(obj) {	if (Browser == "MSIE 6.0" || Browser == "MSIE6.0" || Browser == "MSIE 5.5") {		obj.width = obj.height = 1;		obj.className = obj.className.replace(/\bpng24\b/i, '');		obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + obj.src + "',sizingMethod='image');"		obj.src = '';		return '';	}}/* ¸Þ´º ·Ñ¿À¹ö ÇÔ¼ö */var originPosition = 0;var originAxis = null;function rollOver(obj, size, axis) {	if(appName == "Microsoft Internet Explorer") {		originAxis = axis;		if (axis == "X") {			var bgPositionX = "";			var bgPositionY = "";			if (obj.currentStyle) {				bgPositionX = obj.currentStyle["backgroundPositionX"];				bgPositionY = obj.currentStyle["backgroundPositionY"];			}			originPosition = bgPositionY;			obj.style.backgroundPosition = bgPositionX +" 0px ";	//alert()		}		else {			var bgPositionX = "";			var bgPositionY = "";			if (obj.currentStyle) {				bgPositionX = obj.currentStyle["backgroundPositionX"];				bgPositionY = obj.currentStyle["backgroundPositionY"];			}			originPosition = bgPositionX;			//alert(obj.currentStyle["backgroundPositionY"]);			obj.style.backgroundPosition = " -180px "+ bgPositionY;		}	}	else {		originAxis = axis;		if (axis == "X") {			var bgPositionX = "";			var bgPositionY = "";			if (window.getComputedStyle) {				var computedStyle = document.defaultView.getComputedStyle(obj,null);				var propertyValue = computedStyle.getPropertyValue("background-position");				var bgPositiontmp = strReplace("px", "", propertyValue);				var bgPosition = bgPositiontmp.split(" ");				bgPositionX = parseInt(bgPosition[0],10);				bgPositionY = parseInt(bgPosition[1],10);			}			originPosition = bgPositionY;			obj.style.backgroundPosition = bgPositionX +"px 0px ";		}		else {			var bgPositionX = "";			var bgPositionY = "";			if (window.getComputedStyle) {				var computedStyle = document.defaultView.getComputedStyle(obj,null);				var propertyValue = computedStyle.getPropertyValue("background-position");				var bgPositiontmp = strReplace("px", "", propertyValue);				var bgPosition = bgPositiontmp.split(" ");				bgPositionX = parseInt(bgPosition[0],10);				bgPositionY = parseInt(bgPosition[1],10);			}			originPosition = bgPositionX;			obj.style.backgroundPosition = " -180px "+ bgPositionY +"px";		}	}}function rollOut(obj) {	if(appName == "Microsoft Internet Explorer") {		if (originAxis == "X") {			var bgPositionX = "";			if (obj.currentStyle) {				bgPositionX = obj.currentStyle["backgroundPositionX"];			}			obj.style.backgroundPosition = bgPositionX +" "+ originPosition;		}		else {			var bgPositionY = "";			if (obj.currentStyle) {				bgPositionY = obj.currentStyle["backgroundPositionY"];			}			obj.style.backgroundPosition = originPosition +" "+ bgPositionY;		}	}	else {		if (originAxis == "X") {			var bgPositionX = "";			if (window.getComputedStyle) {				var computedStyle = document.defaultView.getComputedStyle(obj, null);				var propertyValue = computedStyle.getPropertyValue("background-position");				var bgPositiontmp = strReplace("px", "", propertyValue);				var bgPosition = bgPositiontmp.split(" ");				bgPositionX = parseInt(bgPosition[0], 10);			}			obj.style.backgroundPosition = bgPositionX +"px "+ originPosition +"px";		}		else {			var bgPositionY = "";			if (window.getComputedStyle) {				var computedStyle = document.defaultView.getComputedStyle(obj,null);				var propertyValue = computedStyle.getPropertyValue("background-position");				var bgPositiontmp = strReplace("px", "", propertyValue);				var bgPosition = bgPositiontmp.split(" ");				bgPositionY = parseInt(bgPosition[1],10);			}			obj.style.backgroundPosition = originPosition +"px "+ bgPositionY +"px";		}	}}/* ¸µÅ© ÇÔ¼ö */function gotoUrl(strUrl) {	window.location.href = strUrl;}function gotoUrlMenu(strUrl, linktype, size) {	if (linktype == "") {		window.location.href = strUrl;	}	else if (linktype == "blank") {		window.open(strUrl);	}	else if (linktype == "all") {		mbookzView2(strUrl,'OiizDNBTA5Tztohh',1,'Y','namgu');	}	else {		var sizeA = size.split(",");		var popStr = "width="+ sizeA[0] +", height="+ sizeA[1] +", top=5, left=5, toolbar=no, location=no,";		popStr += "directories=no, status=yes, menubar=no, scrollbars="+ sizeA[2] +", resizable=no"		var newWin = window.open(strUrl, "", popStr);	}}function ffCurrentStyle (obj, stl) {	var computedStyle;	var returnVal;	computedStyle = document.defaultView.getComputedStyle(obj, null);	returnVal = computedStyle.getPropertyValue(stl);	return returnVal;}/* strReplace */function strReplace(org, dest, str) {	var reg = new RegExp(org, "g");	return str.replace(reg, dest);}/* Select ÄÞº¸¹Ú½º µðÀÚÀÎ - ÀÛ¾÷Áß */function beautyCombo(obj) {	//alert(obj.offsetWidth)	var cLength = obj.length;	var parentObj = obj.parentNode;	var ulObj = document.createElement("ul");	ulObj.id = obj.id +"_view";	ulObj.style.width = obj.offsetWidth +"px";	ulObj.style.height = "20px";	ulObj.style.height = "auto";	ulObj.style.margin = "0px 0px 0px 0px";	ulObj.style.padding = "0px 0px 0px 0px";	ulObj.style.border = "1px solid #CCCCCC";	ulObj.style.listStyle = "none";	parentObj.appendChild(ulObj);	var liObj = document.createElement("li");	liObj.style.width = (obj.offsetWidth-10) +"px";	liObj.style.height = "18px";	liObj.style.margin = "0px 0px 0px 0px";	liObj.style.padding = "2px 0px 0px 0px";	liObj.style.listStyle = "none";	liObj.style.cssFloat = "left";	var newText  = document.createTextNode(obj[0].text);	liObj.appendChild(newText);	ulObj.appendChild(liObj);	obj.style.display = "none";}/* È­¸é °¡¸®±â (¹ÝÅõ¸í) */function objEclipse() {	disSelectObj = document.createElement("DIV");	document.body.appendChild(disSelectObj);	disSelectObj.style.position = "absolute";	disSelectObj.style.top = "0px";	disSelectObj.style.left = "0px";	disSelectObj.style.width = "100%";	disSelectObj.style.height = "100%";	if (Browser.indexOf('MSIE') > -1) {		var ifStr = "<iframe name=\"blockFrame\" id=\"blockFrame\" src=\"" + _URL["blank"] + "\" frameborder=\"0\" scrolling=\"no\" style=\"width:100%;height:100%;margin:0;\"></iframe>";		disSelectObj.innerHTML = disSelectObj.innerHTML + ifStr;	}	else {		iframeObj = document.createElement("iframe");		disSelectObj.appendChild(iframeObj);		iframeObj.style.width = "100%";		iframeObj.style.height = "100%";		iframeObj.style.margin = "0";		iframeObj.style.border = "0 none transparent";	}	disSelectObj.style.display = "block";	if (Browser == "MSIE 6.0" || Browser == "MSIE 5.5") {		if (disSelectObj.offsetHeight < document.body.scrollHeight) {			disSelectObj.style.height = document.body.scrollHeight +"px";		}	}	else {		if (disSelectObj.offsetHeight < document.documentElement.scrollHeight) {			disSelectObj.style.height = document.documentElement.scrollHeight +"px";		}	}	disSelectObj.style.zIndex = "205";	disSelectObj.style.backgroundColor = "#FFFFFF";	if (Browser.indexOf('MSIE') < 0) {		disSelectObj.style.opacity = 0.8;	}	else {		disSelectObj.style.filter = "alpha(opacity=80, style=2, finishopacity=80)";	}}/* °¡¸° È­¸é ¿ø·¡´ë·Î */function disobjEclipse() {	if (disSelectObj) {		iframeObj = null;		disSelectObj.style.position = "absolute";		disSelectObj.style.top = "0px";		disSelectObj.style.left = "0px";		disSelectObj.style.width = "0px";		disSelectObj.style.height = "0px";		disSelectObj.style.display = "none";		disSelectObj = null;	}}/* Á¾ÇÕ¹Î¿ø ¾È³» */function openComplaintWin(textObj) {	//alert(textObj)	if (textObj == "ComplaintValue07" || textObj == "ComplaintValue08") {		var textVal = document.getElementById(textObj).value;		//showMessageObj(textVal);		showMessageObjNonPosition(textVal, "X", "222", "90");	}	else {		var textVal = document.getElementById(textObj).value;		showMessageObjNonPosition(textVal, "Y", "25", "90");	}}/* Á¾ÇÕ¹Î¿ø ¾È³» */function openBannerWin() {	var startGap = 0;	if (bannerZone == null || bannerZone == "undefined") {		var Inhtml = document.getElementById("bannerSlide").value;		if (buttonZone != null && buttonZone != "undefined") {			buttonZone.style.position = "absolute";			buttonZone.style.top = "0";			buttonZone.style.left = "0";			buttonZone.innerHTML = "";			buttonZone.style.marginTop = "0";			buttonZone.style.marginLeft = "0";			buttonZone.style.zIndex = "1";			buttonZone.style.display = "none";			buttonZone = null;		}		bannerZone = document.createElement("DIV");		document.body.appendChild(bannerZone);		bannerZone.style.position = "absolute";		bannerZone.style.width = "auto";		bannerZone.style.height = "auto";		bannerZone.innerHTML = "";			flashObj = document.createElement("DIV");		bannerZone.appendChild(flashObj);		flashObj.id ="slideBanner";			flashObj.innerHTML = Inhtml;		var wWidth = flashObj.firstChild.offsetWidth;		var wHeight = flashObj.firstChild.offsetHeight;		flashObj.style.position = "static";		flashObj.style.width = wWidth +"px";		flashObj.style.height = wHeight +"px";		flashObj.style.margin = (wHeight + 33) +"px 0px 0px 0px";		flashObj.style.display = "block";		var scrollGap = 0;		if (Browser == "MSIE 6.0" || Browser == "MSIE 5.5") {			scrollGap = document.body.scrollTop;		}		else {			scrollGap = document.documentElement.scrollTop;		}		bannerZone.style.background = "transparent";		bannerZone.style.position = "absolute";		bannerZone.style.top = "115px";		bannerZone.style.left = "250px";		bannerZone.style.display = "block";		//bannerZone.style.border = "1px solid red";		bannerZone.style.zIndex = "101";		bannerZone.style.width = wWidth +"px";		bannerZone.style.height = (wHeight + 33) +"px";		bannerZone.style.overflow = "hidden";		startGap = (wHeight + 33);		var gap = parseInt((startGap / 15), 10);		moveObjBanner("slideBanner", startGap, 0, gap);	}	else {		var endGap = parseInt(bannerZone.offsetHeight, 10);		var gap = parseInt((endGap / 15), 10);		moveObjBanner("slideBanner", 0, endGap, gap);	}}function moveObjBanner(obj, startVal, lastVal, gap) {	startVal = parseInt(startVal, 10);	lastVal = parseInt(lastVal, 10);	var thisVal=0;	if (startVal > lastVal) { // ¾Æ·¡¿¡¼­ À§;		var thisVal = startVal - gap;		if (thisVal <= lastVal) {			document.getElementById(obj).style.marginTop = lastVal + "px";		}		else {			document.getElementById(obj).style.marginTop = thisVal + "px";			timer = setTimeout("moveObjBanner('"+ obj +"', "+ thisVal +", "+ lastVal +", "+ gap +");",5);		}	}	else if (startVal < lastVal) { // À§¿¡¼­ ¾Æ·¡;		var thisVal = startVal + gap;		if (thisVal >= lastVal) {			document.getElementById(obj).style.marginTop = lastVal + "px";			if (bannerZone != null && bannerZone != "undefined") {				bannerZone.style.position = "absolute";				bannerZone.style.top = "0";				bannerZone.style.left = "0";				bannerZone.innerHTML = "";				bannerZone.style.marginTop = "0";				bannerZone.style.marginLeft = "0";				bannerZone.style.zIndex = "1";				bannerZone.style.display = "none";				bannerZone = null;			}				if (buttonZone == null || buttonZone == "undefined") {				var Inhtml = document.getElementById("bannerBut").value;				buttonZone = document.createElement("DIV");				document.body.appendChild(buttonZone);				buttonZone.style.position = "absolute";				buttonZone.style.width = "auto";				buttonZone.style.height = "auto";				buttonZone.innerHTML = "";							flashObj = document.createElement("DIV");				buttonZone.appendChild(flashObj);				flashObj.id ="slideButton";							flashObj.innerHTML = Inhtml;				var wWidth = flashObj.firstChild.offsetWidth;				var wHeight = flashObj.firstChild.offsetHeight;				flashObj.style.position = "static";				flashObj.style.width = wWidth +"px";				flashObj.style.height = wHeight +"px";				flashObj.style.margin = "0px 0px 0px 0px";				flashObj.style.display = "block";				var scrollGap = 0;				if (Browser == "MSIE 6.0" || Browser == "MSIE 5.5") {					scrollGap = document.body.scrollTop;				}				else {					scrollGap = document.documentElement.scrollTop;				}				buttonZone.style.background = "transparent";				buttonZone.style.position = "absolute";				buttonZone.style.top = "310px";				buttonZone.style.left = "679px";				buttonZone.style.display = "block";				//bannerZone.style.border = "1px solid red";				buttonZone.style.zIndex = "101";				buttonZone.style.width = wWidth +"px";				buttonZone.style.height = wHeight +"px";				buttonZone.style.overflow = "hidden";			}		}		else {			document.getElementById(obj).style.marginTop = thisVal + "px";			timer = setTimeout("moveObjBanner('"+ obj +"', '"+ thisVal +"','"+ lastVal +"', "+ gap +");",5);		}	}	else {			document.getElementById(obj).style.marginTop = lastVal + "px";	}}/* ¸Þ½ÃÁö ¹Ú½º ¶ç¿ì±â(¹ÝÅõ¸íÀ¸·Î È­¸éÀ» °¡¸° ÈÄ) */function showMessageObj(Inhtml){	messageObj = document.createElement("DIV");	document.body.appendChild(messageObj);	var scrollGap = 0;	if (Browser == "MSIE 6.0" || Browser == "MSIE 5.5") {		scrollGap = document.body.scrollTop;	}	else {		scrollGap = document.documentElement.scrollTop;	}	if (!disSelectObj) { 		objEclipse();	}	messageObj.style.position = "absolute";	messageObj.style.top = "40%";	messageObj.style.left = "50%";	messageObj.style.padding = "2px 2px 2px 2px";	messageObj.style.display = "block";	messageObj.innerHTML = Inhtml;	var leftGap = parseInt((messageObj.firstChild.offsetWidth/2),10);	var topGap = parseInt((messageObj.firstChild.offsetHeight/2),10);	messageObj.style.marginTop = (-1*(topGap-scrollGap)) +"px";	messageObj.style.marginLeft = (-1*leftGap) +"px";	messageObj.style.zIndex = "206";}/* ¸Þ½ÃÁö ¹Ú½º ¶ç¿ì±â(¹ÝµÎ¸íÀ¸·Î È­¸éÀ» °¡¸®±â ¾øÀ½) */function showMessageObjNon(Inhtml,srcObj,posi){	if (messageObj == null || messageObj == "undefined") {		messageObj = document.createElement("DIV");		//document.body.appendChild(messageObj);		//srcObj.insertAdjacentElement("afterEnd", messageObj);		document.body.appendChild(messageObj);	}	//srcObj.clientWidth;	messageObj.style.position = "absolute";	messageObj.style.width = "auto";	messageObj.style.height = "auto";	messageObj.innerHTML = "";		innerMessage = document.createElement("DIV");	messageObj.appendChild(innerMessage);	innerMessage.style.position = "relative";	innerMessage.style.background = "#FFFFFF";	//innerMessage.style.padding = "2px 2px 2px 2px";	innerMessage.style.top = "0px";	innerMessage.style.left = "0px";	innerMessage.style.border = "1px solid #c0c0c0";	innerMessage.style.display = "block";	dataObj = document.createElement("DIV");	innerMessage.appendChild(dataObj);	dataObj.innerHTML = Inhtml;	var wWidth = dataObj.firstChild.offsetWidth;	var wHeight = dataObj.firstChild.offsetHeight;	dataObj.style.position = "absolute";	dataObj.style.width = wWidth +"px";	dataObj.style.height = wHeight +"px";	dataObj.style.top = "0px";	dataObj.style.left = "0px";	dataObj.style.zIndex = "203";	dataObj.style.display = "block";	var ifStr = "<iframe name=\"blockFrame\" id=\"blockFrame\" src=\""+ _URL["blank"] +"\" frameborder=\"0\" scrolling=\"no\" style=\"position:relative;width:"+ wWidth +"px;height:"+ wHeight +"px;margin:0;z-index:201;\"></iframe>";	innerMessage.innerHTML = innerMessage.innerHTML + ifStr;	var scrollGap = 0;	if (Browser == "MSIE 6.0" || Browser == "MSIE 5.5") {		scrollGap = document.body.scrollTop;	}	else {		scrollGap = document.documentElement.scrollTop;	}	messageObj.style.background = "#FFFFFF";	messageObj.style.position = "absolute";	messageObj.style.top = "50%";	messageObj.style.left = "50%";	messageObj.style.padding = "2px 2px 2px 2px";	var leftGap = parseInt((messageObj.firstChild.offsetWidth/2),10);	var topGap = parseInt((messageObj.firstChild.offsetHeight/2),10);	messageObj.style.marginTop = (-1*(topGap-scrollGap)) +"px";	messageObj.style.marginLeft = (-1*leftGap) +"px";	messageObj.style.display = "block";	messageObj.style.zIndex = "202";}/* ¸Þ½ÃÁö ¹Ú½º ¶ç¿ì±â(¹ÝµÎ¸íÀ¸·Î È­¸éÀ» °¡¸®±â ¾øÀ½) */function showMessageObjNonPosition(Inhtml, axis, posiX, posiY){	if (messageObj == null || messageObj == "undefined") {		messageObj = document.createElement("DIV");		//document.body.appendChild(messageObj);		//srcObj.insertAdjacentElement("afterEnd", messageObj);		document.body.appendChild(messageObj);	}	//srcObj.clientWidth;	messageObj.style.position = "absolute";	messageObj.style.width = "auto";	messageObj.style.height = "auto";	messageObj.innerHTML = "";		innerMessage = document.createElement("DIV");	messageObj.appendChild(innerMessage);	innerMessage.id = "slideViewDiv";	innerMessage.style.position = "relative";	innerMessage.style.background = "transparent";	//innerMessage.style.padding = "2px 2px 2px 2px";	innerMessage.style.top = "0px";	innerMessage.style.left = "0px";	innerMessage.style.border = "none";	innerMessage.style.display = "block";	dataObj = document.createElement("DIV");	innerMessage.appendChild(dataObj);	dataObj.innerHTML = Inhtml;	var wWidth = dataObj.firstChild.offsetWidth;	var wHeight = dataObj.firstChild.offsetHeight;	dataObj.style.position = "absolute";	dataObj.style.width = wWidth +"px";	dataObj.style.height = wHeight +"px";	dataObj.style.top = "0px";	dataObj.style.left = "0px";	dataObj.style.zIndex = "203";	dataObj.style.display = "block";	//var ifStr = "<iframe name=\"blockFrame\" id=\"blockFrame\" src=\""+ _URL["blank"] +"\" frameborder=\"0\" scrolling=\"no\" style=\"position:relative;width:"+ wWidth +"px;height:"+ wHeight +"px;margin:0;z-index:201;\"></iframe>";	//innerMessage.innerHTML = innerMessage.innerHTML + ifStr;	var scrollGap = 0;	if (Browser == "MSIE 6.0" || Browser == "MSIE 5.5") {		scrollGap = document.body.scrollTop;	}	else {		scrollGap = document.documentElement.scrollTop;	}	messageObj.style.background = "transparent";	messageObj.style.position = "absolute";	messageObj.style.top = posiY +"px";	messageObj.style.left = posiX +"px";	messageObj.style.display = "block";	messageObj.style.zIndex = "202";	messageObj.style.width = wWidth +"px";	messageObj.style.height = wHeight +"px";	messageObj.style.overflow = "hidden";	if (axis == "X") {		innerMessage.style.marginLeft = -wWidth + "px";		var gap = parseInt((wWidth / 15), 10);		moveObj("slideViewDiv", axis, wWidth, 0, gap);	}	else if (axis == "Y") {		innerMessage.style.marginTop = -wHeight + "px";		var gap = parseInt((wHeight / 15), 10);		moveObj("slideViewDiv", axis, -wHeight, 0, gap);	}}function moveObj(obj, axis, startVal, lastVal, gap) {	if (axis == "X") {		startVal = parseInt(startVal, 10);		lastVal = parseInt(lastVal, 10);		var thisVal=0;		if (startVal > lastVal) { // ¿À¸¥ÂÊ¿¡¼­ ¿ÞÂÊ;			var thisVal = startVal - gap;			if (thisVal <= lastVal) {				document.getElementById("slideViewDiv").style.marginLeft = lastVal + "px";			}			else {				document.getElementById(obj).style.marginLeft = thisVal + "px";				timer = setTimeout("moveObj('"+ obj +"', '"+ axis +"', "+ thisVal +", "+ lastVal +", "+ gap +");",5);			}		}		else if (startVal < lastVal) { // ¿ÞÂÊ¿¡¼­ ¿À¸¥ÂÊ;			var thisVal = startVal + gap;			if (thisVal >= lastVal) {				document.getElementById("slideViewDiv").style.marginLeft = lastVal + "px";			}			else {				alert(2)				document.getElementById("slideViewDiv").style.marginLeft = thisVal + "px";				timer = setTimeout("moveObj('"+ obj +"', '"+ axis +"','"+ thisVal +"','"+ lastVal +"', "+ gap +");",5);			}		}		else {				document.getElementById("slideViewDiv").style.marginLeft = lastVal + "px";		}	}	else if (axis == "Y") {		startVal = parseInt(startVal, 10);		lastVal = parseInt(lastVal, 10);		var thisVal=0;		if (startVal > lastVal) { // ¾Æ·¡¿¡¼­ À§;			var thisVal = startVal - gap;			if (thisVal <= lastVal) {				document.getElementById(obj).style.marginTop = lastVal + "px";			}			else {				document.getElementById(obj).style.marginTop = thisVal + "px";				timer = setTimeout("moveObj('"+ obj +"', '"+ axis +"', "+ thisVal +", "+ lastVal +", "+ gap +");",5);			}		}		else if (startVal < lastVal) { // À§¿¡¼­ ¾Æ·¡;			var thisVal = startVal + gap;			if (thisVal >= lastVal) {				document.getElementById(obj).style.marginTop = lastVal + "px";			}			else {				document.getElementById(obj).style.marginTop = thisVal + "px";				timer = setTimeout("moveObj('"+ obj +"', '"+ axis +"','"+ thisVal +"','"+ lastVal +"', "+ gap +");",5);			}		}		else {				document.getElementById(obj).style.marginTop = lastVal + "px";		}	}}/* ¸Þ½ÃÁö ¹Ú½º ¶ç¿ì±â(¹ÝµÎ¸íÀ¸·Î È­¸éÀ» °¡¸®±â ¾øÀ½, À§Ä¡ÁöÁ¤) */function showMessageObjNonPos(Inhtml, posX, posY){	if (PopObj == null || PopObj == "undefined") {		PopObj = document.createElement("DIV");		//document.body.appendChild(PopObj);		//srcObj.insertAdjacentElement("afterEnd", PopObj);		document.body.appendChild(PopObj);	}	//srcObj.clientWidth;	PopObj.style.position = "absolute";	PopObj.style.width = "auto";	PopObj.style.height = "auto";	PopObj.innerHTML = "";		innerMessage = document.createElement("DIV");	PopObj.appendChild(innerMessage);	innerMessage.style.position = "relative";	innerMessage.style.background = "#FFFFFF";	//innerMessage.style.padding = "2px 2px 2px 2px";	innerMessage.style.top = "0px";	innerMessage.style.left = "0px";	innerMessage.style.border = "1px solid #c0c0c0";	innerMessage.style.display = "block";	dataObj = document.createElement("DIV");	innerMessage.appendChild(dataObj);	dataObj.innerHTML = Inhtml;	var wWidth = dataObj.firstChild.offsetWidth;	var wHeight = dataObj.firstChild.offsetHeight;	dataObj.style.position = "absolute";	dataObj.style.width = wWidth +"px";	dataObj.style.height = wHeight +"px";	dataObj.style.top = "0px";	dataObj.style.left = "0px";	dataObj.style.zIndex = "203";	dataObj.style.display = "block";	var ifStr = "<iframe name=\"blockFrame\" id=\"blockFrame\" src=\""+ _URL["blank"] +"\" frameborder=\"0\" scrolling=\"no\" style=\"position:relative;width:"+ wWidth +"px;height:"+ wHeight +"px;margin:0;z-index:201;\"></iframe>";	innerMessage.innerHTML = innerMessage.innerHTML + ifStr;	var scrollGap = 0;	if (Browser == "MSIE 6.0" || Browser == "MSIE 5.5") {		scrollGap = document.body.scrollTop;	}	else {		scrollGap = document.documentElement.scrollTop;	}	PopObj.style.background = "#FFFFFF";	PopObj.style.position = "absolute";	PopObj.style.top = posY +"px";	PopObj.style.left = posX +"px";	PopObj.style.padding = "2px 2px 2px 2px";	PopObj.style.display = "block";	PopObj.style.zIndex = "202";}/* ¶ç¿î ¸Þ½ÃÁö ¹Ú½º¸¸ ¾ø¾Ö±â */function hidePopObj() {	PopObj.style.position = "absolute";	PopObj.style.top = "0";	PopObj.style.left = "0";	PopObj.innerHTML = "";	PopObj.style.marginTop = "0";	PopObj.style.marginLeft = "0";	PopObj.style.zIndex = "1";	PopObj.style.display = "none";	PopObj = null;}/* ¶ç¿î ¸Þ½ÃÁö ¹Ú½º¸¸ ¾ø¾Ö±â */function hideMessageObj() {	messageObj.style.position = "absolute";	messageObj.style.top = "0";	messageObj.style.left = "0";	messageObj.innerHTML = "";	messageObj.style.marginTop = "0";	messageObj.style.marginLeft = "0";	messageObj.style.zIndex = "1";	messageObj.style.display = "none";	messageObj = null;}/* ¶ç¿î ¸Þ½ÃÁö ¹Ú½º¿Í ¹ÝÅõ¸í È­¸é ¾ø¾Ö±â */function clearMessageObj() {	messageObj.style.position = "absolute";	messageObj.style.top = "0";	messageObj.style.left = "0";	messageObj.innerHTML = "";	messageObj.style.marginTop = "0";	messageObj.style.marginLeft = "0";	messageObj.style.zIndex = "1";	messageObj.style.display = "none";	messageObj = null;	disobjEclipse();}/* Ajax XMLHttpRequest */function cubeXMLHttpRequest() {	var xmlreq = false;	if (window.XMLHttpRequest) {		xmlreq = new XMLHttpRequest();	}	else if (window.ActiveXObject) {		try {			xmlreq = new ActiveXObject("Msxml2.XMLHTTP");		}		catch (e1) {			try {				xmlreq = new ActiveXObject("Microsoft.XMLHTTP");			}			catch (e2) {				// 			}		}	}	return xmlreq;}/* »õ·Î¿î Alert */function alertNew(error_str,obj,del,sel,focusing) {		var inHtml = "";		inHtml += "<div id=\"alertWinBg\">";		inHtml += "<div class=\"alertWinBg\" style=\"width:320px;\">";		inHtml += "<ul class=\"alertTitle\">";		inHtml += "<li style=\"width: 298px;font: bold 8pt verdana;\">Error</li>";		inHtml += "<li class=\"closeX\"><img src=\""+ _URL['admin'] +"/images/x.gif\" alt=\"´Ý±â\" title=\"´Ý±â\" onclick=\"clearMessageObj()\" /></li>";		inHtml += "</ul>";		inHtml += "<div class=\"alertContArea\" style=\"height\">";		inHtml += error_str;		inHtml += "</div>";		inHtml += "<div class=\"alertButArea\">";		inHtml += "<div style=\"margin:2px 20px 2px 0px;\">";		inHtml += "<button id=\"alertBut\" type=\"button\" class=\"default\" onclick=\"\">";		inHtml += "<div class=\"parent\">";		inHtml += "<div class=\"fleft\"></div>";		inHtml += "<div class=\"fright\"><div class=\"fvalue\">È®ÀÎ</div></div>";		inHtml += "</div>";		inHtml += "</button>";		inHtml += "</div>";		inHtml += "</div>";		inHtml += "</div>";		inHtml += "</div>";		showMessageObj(inHtml);		errorCall = function () {alertFocus(obj,del,sel,focusing);clearMessageObj();}		var alertBut = document.getElementById('alertBut');		if (window.addEventListener) {			alertBut.addEventListener("click", errorCall, false);		}		else {			alertBut.setAttribute("onclick", errorCall);		}}/* alert Focus */function alertFocus(obj,del,sel,focusing){	if (focusing == true) {		if (obj.type == "radio") {			obj.focus();		}		else {			if (del=="T") {				obj.value="";			}			if (sel=="T") {				obj.select();			}			obj.focus();		}	}}/*  firstChildNode °¡ Àß ¾ÈµÉ¶§  *//** * Throughout, whitespace is defined as one of the characters *  "\t" TAB \u0009 *  "\n" LF  \u000A *  "\r" CR  \u000D *  " "  SPC \u0020 * * This does not use Javascript's "\s" because that includes non-breaking * spaces (and also some other characters). *//** * @param nod  A node implementing the |CharacterData| interface (i.e., *             a |Text|, |Comment|, or |CDATASection| node * @return     True if all of the text content of |nod| is whitespace, *             otherwise false. */function is_all_ws( nod ) {	// Use ECMA-262 Edition 3 String and RegExp features	return !(/[^\t\n\r ]/.test(nod.data));}/** * @param nod  An object implementing the DOM1 |Node| interface. * @return     true if the node is: *                1) A |Text| node that is all whitespace *                2) A |Comment| node *             and otherwise false. */function is_ignorable( nod ) {	return ( nod.nodeType == 8) || // A comment node				( (nod.nodeType == 3) && is_all_ws(nod) ); // a text node, all ws}/** * @param sib  The reference node. * @return     Either: *               1) The closest previous sibling to |sib| that is not *                  ignorable according to |is_ignorable|, or *               2) null if no such node exists. */function node_before( sib ) {	while ((sib = sib.previousSibling)) {		if (!is_ignorable(sib)) return sib;	}	return null;}/** * @param sib  The reference node. * @return     Either: *               1) The closest next sibling to |sib| that is not *                  ignorable according to |is_ignorable|, or *               2) null if no such node exists. */function node_after( sib ) {	while ((sib = sib.nextSibling)) {		if (!is_ignorable(sib)) return sib;	}	return null;}/** * @param sib  The reference node. * @return     Either: *               1) The last child of |sib| that is not *                  ignorable according to |is_ignorable|, or *               2) null if no such node exists. */function last_child( par ) {	var res=par.lastChild;	while (res) {		if (!is_ignorable(res)) return res;		res = res.previousSibling;	}	return null;}/** * @param sib  The reference node. * @return     Either: *               1) The first child of |sib| that is not *                  ignorable according to |is_ignorable|, or *               2) null if no such node exists. */function first_child( par ) {	var res=par.firstChild;	while (res) {		if (!is_ignorable(res)) return res;		res = res.nextSibling;	}	return null;}/** * @param txt  The text node whose data should be returned * @return     A string giving the contents of the text node with *             whitespace collapsed. */function data_of( txt ) {	var data = txt.data;	// Use ECMA-262 Edition 3 String and RegExp features	data = data.replace(/[\t\n\r ]+/g, " ");	if (data.charAt(0) == " ")		data = data.substring(1, data.length);	if (data.charAt(data.length - 1) == " ")		data = data.substring(0, data.length - 1);	return data;}/*  firstChildNode °¡ Àß ¾ÈµÉ¶§  *//** Base64 encode / decode http://www.webtoolkit.info/ **/var Base64 = {// private property_keyStr : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",// public method for encodingencode : function (input) {	var output = "";	var chr1, chr2, chr3, enc1, enc2, enc3, enc4;	var i = 0;	input = Base64._utf8_encode(input);	while (i < input.length) {		chr1 = input.charCodeAt(i++);		chr2 = input.charCodeAt(i++);		chr3 = input.charCodeAt(i++);		enc1 = chr1 >> 2;		enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);		enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);		enc4 = chr3 & 63;		if (isNaN(chr2)) {			enc3 = enc4 = 64;		} else if (isNaN(chr3)) {			enc4 = 64;		}		output = output +		this._keyStr.charAt(enc1) + this._keyStr.charAt(enc2) +		this._keyStr.charAt(enc3) + this._keyStr.charAt(enc4);	}	return output;},// public method for decodingdecode : function (input) {	var output = "";	var chr1, chr2, chr3;	var enc1, enc2, enc3, enc4;	var i = 0;	input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");	while (i < input.length) {		enc1 = this._keyStr.indexOf(input.charAt(i++));		enc2 = this._keyStr.indexOf(input.charAt(i++));		enc3 = this._keyStr.indexOf(input.charAt(i++));		enc4 = this._keyStr.indexOf(input.charAt(i++));		chr1 = (enc1 << 2) | (enc2 >> 4);		chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);		chr3 = ((enc3 & 3) << 6) | enc4;		output = output + String.fromCharCode(chr1);		if (enc3 != 64) {			output = output + String.fromCharCode(chr2);		}		if (enc4 != 64) {			output = output + String.fromCharCode(chr3);		}	}	output = Base64._utf8_decode(output);	return output;},// private method for UTF-8 encoding_utf8_encode : function (string) {	string = string.replace(/\r\n/g,"\n");	var utftext = "";	for (var n = 0; n < string.length; n++) {		var c = string.charCodeAt(n);		if (c < 128) {			utftext += String.fromCharCode(c);		}		else if((c > 127) && (c < 2048)) {			utftext += String.fromCharCode((c >> 6) | 192);			utftext += String.fromCharCode((c & 63) | 128);		}		else {			utftext += String.fromCharCode((c >> 12) | 224);			utftext += String.fromCharCode(((c >> 6) & 63) | 128);			utftext += String.fromCharCode((c & 63) | 128);		}	}	return utftext;},// private method for UTF-8 decoding_utf8_decode : function (utftext) {	var string = "";	var i = 0;	var c = c1 = c2 = 0;	while ( i < utftext.length ) {		c = utftext.charCodeAt(i);		if (c < 128) {			string += String.fromCharCode(c);			i++;		}		else if((c > 191) && (c < 224)) {			c2 = utftext.charCodeAt(i+1);			string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));			i += 2;		}		else {			c2 = utftext.charCodeAt(i+1);			c3 = utftext.charCodeAt(i+2);			string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));			i += 3;		}	}	return string;},URLEncode : function (string) {   		return escape(this._utf8_encode(string));   	},   	// public method for url decoding   	URLDecode : function (string) {   		return this._utf8_decode(unescape(string));   	}}/*12 -> 0012 Ã³¾ö 0 Ã¤¿ì±â*/function zeroFill(inputvalue,demandLength){	inputvalue = "" + inputvalue;	var spaceValue = "";	for (var i = 0; i < demandLength-inputvalue.length;i++){		spaceValue += "0";	}	return spaceValue+inputvalue;}/*12 -> 1200 Ã³¾ö 0 Ã¤¿ì±â*/function zeroFillEnd(inputvalue,demandLength){	inputvalue = "" + inputvalue;	var spaceValue = "";	for (var i = 0; i < demandLength-inputvalue.length;i++){		spaceValue += "0";	}	return inputvalue + spaceValue;}/* ¿À´Ã³¯Â¥ ÀÌÈÄ ³¯Â¥ ±¸ÇÏ±â */function getNextWeek(v,t){ //³¯Â¥½ºÆ®¸µ°ú, ÀÏÂ÷¸¦ ÆÄ¶ó¸ÞÅÍ·Î ¹Þ´Â´Ù  var str=new Array(); //¹è¿­  var b=v.split("-"); //³¯Â¥¸¦ - ±¸ºÐÀÚ·Î ³ª´©¾î ¹è¿­·Î º¯È¯  var c=new Date(b[0],b[1]-1,b[2]); //µ¥ÀÌÆ®°´Ã¼ »ý¼º  var d=c.valueOf()+1000*60*60*24*t; //tÀÏÈÄ, (À½¼ö¸é ÀüÀÏ)ÀÇ Å¸ÀÓ½ºÅÆÇÁ¸¦ ¾ò´Â´Ù  var e=new Date(d); //ÀÇ·ÚÇÑ³¯ÀÇ µ¥ÀÌÆ®°´Ã¼ »ý¼º   str[str.length]=e.getYear(); //³â  str[str.length]=zeroFill(e.getMonth()+1,2); //¿ù  str[str.length]=zeroFill(e.getDate(),2); //ÀÏ  return str.join(""); //¹è¿­À» - ±¸ºÐÀÚ·Î ÇÕÃÄ ½ºÆ®¸µÀ¸·Î º¯È¯ÈÄ ¹ÝÈ¯ }/* ³¯Â¥¼±ÅÃ¿ë ´Þ·Â *///±â³äÀÏ¿¡ ÇØ´çÇÏ´Â ¹è¿­ Àü¿ªº¯¼ö(ÀÌ´Â ¼­¹ö»çÀÌµå¿¡¼­ µ¿ÀûÀ¸·Î »ý¼º½ÃÄÑÁà¾ßÇÔ);var anniversary = new Array();var tmptoday = new Date();// ¿À´Ã³¯Â¥ ÁöÁ¤var limitDate = getNextWeek(tmptoday.getFullYear() + "-" + zeroFill((tmptoday.getMonth()+1), 2) + "-" + zeroFill(tmptoday.getDate(), 2),3);function viewCal(selectDate, srcObj, inputObj) {	//selectDateÀÌ½´°¡ µÇ´Â ³¯Â¥, calDivObj´Þ·ÂÀ» »Ñ¸± DIVÅÂ±× ¾ÆÀÌµð    //Àü¿ªº¯¼ö1 - ÀÌ½´°¡ µÇ´Â ³¯Â¥ ÁöÁ¤	//var limitDate = selectDate;    var selectDate = selectDate;     today = new Date();	// ¿À´Ã³¯Â¥ ÁöÁ¤    toDate = today.getFullYear() + zeroFill((today.getMonth()+1), 2) + zeroFill(today.getDate(), 2);    if (selectDate == '') {        selectDate = toDate;    }    var preMonDate;    var nextMonDate;    preMonDate= selectDate.substr(0,4) + zeroFill((parseInt(selectDate.substr(4,2), 10)-1), 2) + selectDate.substr(6,2);    nextMonDate= selectDate.substr(0,4) + zeroFill((parseInt(selectDate.substr(4,2), 10)+1), 2) + selectDate.substr(6,2);    //alert(selectDate+":"+ preMonDate +":"+ nextMonDate);    if (selectDate.substr(4,2) == '01') preMonDate = (parseInt(selectDate.substr(0,4), 10)-1) + '12' + selectDate.substr(6,2);    if(selectDate.substr(4,2)=='12') nextMonDate= (parseInt(selectDate.substr(0,4), 10)+1) + '01' + selectDate.substr(6,2);    //alert(selectDate+":"+ preMonDate +":"+ nextMonDate);    var firstDay = getFirstDay(selectDate.substr(0,4), selectDate.substr(4,2));            // Ã¹¹øÂ° ¿äÀÏÀÇ ¼ýÀÚ°ª            var lastDay = getLastDay(selectDate.substr(0,4), selectDate.substr(4,2));            // ¸¶Áö¸· ¿äÀÏÀÇ ¼ýÀÚ°ª    var daysOfMonth = getDaysOfMonth(selectDate.substr(0,4), selectDate.substr(4,2));    // 28, 29, 30, 31 Áß ÇÏ³ª    //alert(firstDay+":"+ lastDay +":"+ daysOfMonth);    var calString;//´Þ·Â HTMLÀ» ÀúÀåÇÏ±â À§ÇÑ º¯¼ö´Ù.	var curM_week_cnt = Math.ceil( (parseInt(firstDay,10)+parseInt(daysOfMonth,10))/7 );	var preYeadate = (parseInt(selectDate.substr(0,4))-1)+ selectDate.substr(4,4);	var nextYeadate = (parseInt(selectDate.substr(0,4))+1)+ selectDate.substr(4,4);	calString = "<div id=\"miniCalendar\">";	calString += "<div id=\"calNavi\">";	calString += "<img id=\"preYBut\" src=\""+ _URL['admin'] +"/images/schedule_bt_01.gif\" width=\"15\" height=\"11\" alt=\"ÀÛ³â\" border=\"0\" onclick=\"viewCal('"+ preYeadate +"','"+ srcObj +"','"+ inputObj +"')\">";	calString += "<img id=\"preMBut\" src=\""+ _URL['admin'] +"/images/schedule_bt_02.gif\" width=\"17\" height=\"11\" alt=\"Áö³­´Þ\" border=\"0\" onclick=\"viewCal('"+ preMonDate +"','"+ srcObj +"','"+ inputObj +"')\">";	calString += selectDate.substr(0,4) +"³â "+ selectDate.substr(4,2) +"¿ù";	calString += "<img id=\"nextMBut\" src=\""+ _URL['admin'] +"/images/schedule_bt_03.gif\" width=\"17\" height=\"11\" alt=\"´ÙÀ½´Þ\" border=\"0\" onclick=\"viewCal('"+ nextMonDate +"','"+ srcObj +"','"+ inputObj +"')\">";	calString += "<img id=\"nextYBut\" src=\""+ _URL['admin'] +"/images/schedule_bt_04.gif\" width=\"15\" height=\"11\" alt=\"³»³â\" border=\"0\" onclick=\"viewCal('"+ nextYeadate +"','"+ srcObj +"','"+ inputObj +"')\">";	calString += " <img id=\"closeBut\" src=\""+ _URL['admin'] +"/images/x2.gif\" width=\"13\" height=\"13\" alt=\"´Ý±â\" border=\"0\" onclick=\"hideMessageObj();\">";	calString += "</div>";	calString += "<div id=\"calendar\">";	calString += "<ul>";	calString += "<li class=\"week0\">S</li>";	calString += "<li>M</li>";	calString += "<li>T</li>";	calString += "<li>W</li>";	calString += "<li>T</li>";	calString += "<li>F</li>";	calString += "<li class=\"week6\">S</li>";	calString += "</ul>";	var topdistance = 0;	var topdistance_detail = 0;	var tempcell = 0;	var currentNum = 0; // ³¯Â¥ Ç¥½Ã¿ë	var classW = "";	var classD = "";	var classD_link = "";		var tmp1 = getNextWeek(today.getFullYear() + "-" + zeroFill((today.getMonth()+1), 2) + "-" + zeroFill(today.getDate(), 2),2);	var chkNo = 0;	for (row=1;row<=curM_week_cnt;row++) {		calString += "<ul>";		for(var col = 0;col < 7;col++) {			chkNo++;			colNum = ((row-1) * 7) + (col+1);			thisDay = colNum-firstDay;			var thisdateStr = selectDate.substr(0,4) + selectDate.substr(4,2) + zeroFill(chkNo+"",2);			if (Number(thisdateStr) >= Number(limitDate)) {				onclick = "inputDate('"+selectDate.substr(0,4)+"-"+selectDate.substr(4,2)+"-"+ zeroFill(thisDay+"",2) +"','"+ inputObj +"')";														}			else {				onclick = "alert('"+ limitDate.substr(0,4)+"-"+limitDate.substr(4,2)+"-"+ limitDate.substr(6,2) +"ºÎÅÍ ¿¹¾à°¡´ÉÇÕ´Ï´Ù!.');";			}			//´Þ·Â¿¡ ³¯Â¥°¡ ³ª¿Í¾ß µÇ´Â Á¶°Ç			if (colNum > firstDay && colNum < (firstDay + daysOfMonth + 1)) {				if (col == 0 || col == 6) {					if (col == 0) {						onclick = "alert('ÀÏ¿äÀÏÀº ¿¹¾àÀÌ ºÒ°¡´ÉÇÕ´Ï´Ù!.');";											}					classW = " class=\"week"+ col +"\"";				}				else {					classW = " class=\"week\"";				}				calString += "<li"+ classW +" style=\"cursor:pointer;\" onclick=\""+ onclick +"\">"+ thisDay +"</li>";			}			else {				calString += "<li></li>";			}			//alert("<li"+ classW +" style=\"cursor:pointer;\" onclick=\""+ onclick +"\">"+ thisDay +"</li>");		}		calString += "</ul>";	}	calString += "</div></div>"; 	showMessageObjNon(calString, srcObj, "C");	/*	var preYBut = document.getElementById("preYBut");	var preMBut = document.getElementById("preMBut");	var nextMBut = document.getElementById("nextMBut");	var nextYBut = document.getElementById("nextYBut");	var viewCal01 = function () {		viewCal(preYeadate, srcObj, inputObj);	}	var viewCal02 = function () {		viewCal(preMonDate, srcObj, inputObj);	}	var viewCal03 = function () {		viewCal(nextMonDate, srcObj, inputObj);	}	var viewCal04 = function () {		viewCal(nextYeadate, srcObj, inputObj);	}	if (window.addEventListener) {		preYBut.addEventListener("click", viewCal01, false);		preMBut.addEventListener("click", viewCal02, false);		nextMBut.addEventListener("click", viewCal03, false);		nextYBut.addEventListener("click", viewCal04, false);	}	else {		preYBut.setAttribute("onclick", viewCal01);		preMBut.setAttribute("onclick", viewCal02);		nextMBut.setAttribute("onclick", viewCal03);		nextYBut.setAttribute("onclick", viewCal04);	}	*/}//³¯Â¥ °ü·ÃµÈ ¿¬»ê ÇÔ¼öµéfunction getDaysOfMonth(year, month) {     var DOMonth = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];    var lDOMonth = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];    if ((year % 4) == 0) {        if ((year % 100) == 0 && (year % 400) != 0)            return DOMonth[parseInt(month, 10)-1];             return lDOMonth[parseInt(month, 10)-1];    } else         return DOMonth[parseInt(month, 10)-1];}// Ã¹¹øÂ° ¿äÀÏ ±¸ÇÏ±âfunction getFirstDay(year, month) {    var tmpDate = new Date();     tmpDate.setDate(1);     tmpDate.setMonth(parseInt(month, 10)-1);     tmpDate.setFullYear(year);    return tmpDate.getDay();}// ¸¶Áö¸· ¿äÀÏ ±¸ÇÏ±âfunction getLastDay(year, month) {    var tmpDate = new Date();     tmpDate.setDate( getDaysOfMonth(year,month) );     tmpDate.setMonth(parseInt(month, 10)-1);     tmpDate.setFullYear(year);     return tmpDate.getDay(); }function inputDate(dateval, inputObj) {	var input_obj = document.getElementById(inputObj);	input_obj.value = dateval;	hideMessageObj();}/* ÁÖ¹Îµî·Ï¹øÈ£ Ã¼Å© */function checkJumin(jm_bh1,jm_bh2) {	var tot=0, result=0, re=0, se_arg=0;	var chk_num="";	chk_jm_bh = jm_bh1 + jm_bh2;	if (chk_jm_bh.length != 13) {		return false;	}	else {		for (var i=0; i < 12; i++) {		if (isNaN(chk_jm_bh.substr(i, 1))) return false;			se_arg = i;			if (i >= 8) se_arg = i - 8;			tot = tot + Number(chk_jm_bh.substr(i, 1)) * (se_arg + 2)		}		 if (chk_num != "err") {			re = tot % 11;			result = 11 - re;			if (result >= 10) result = result - 10;			if (result != Number(chk_jm_bh.substr(12, 1))) return false;			if ((Number(chk_jm_bh.substr(6, 1)) < 1) || (Number(chk_jm_bh.substr(6, 1)) > 4))			return false;		}	}	return true;}/* ½ÇÁ÷Àû »ç¾÷ÀÚ µî·Ï¹øÈ£ È®ÀÎ ÇÔ¼ö */function Real_IsComNo(num) {	var reg = /([0-9]{3})-?([0-9]{2})-?([0-9]{5})/;	if (!reg.test(num)) return false;	num = RegExp.$1 + RegExp.$2 + RegExp.$3;	var cVal = 0;	for (var i=0; i<8; i++) {		var cKeyNum = parseInt(((_tmp = i % 3) == 0) ? 1 : ( _tmp  == 1 ) ? 3 : 7);		cVal += (parseFloat(num.substring(i,i+1)) * cKeyNum) % 10;	}	var li_temp = parseFloat(num.substring(i,i+1)) * 5 + '0';	cVal += parseFloat(li_temp.substring(0,1)) + parseFloat(li_temp.substring(1,2));	return (parseInt(num.substring(9,10)) == 10-(cVal % 10)%10);}/* ÆäÀÌÁö È®´ë Ãà¼Ò */function zoomview(dir){	if (dir == "+") {		if (zoomVal <= 2) {			//alert(zoomVal)			document.body.style.zoom = zoomVal + 0.1;			document.getElementById("subTabMenu").style.zoom = zoomVal + 0.1;			document.getElementById("subMiddle").style.minWidth = document.getElementById("subMiddle").clientWidth + (document.getElementById("subMiddle").clientWidth * 0.1);			zoomVal = zoomVal + 0.1;		}		else {			document.body.style.zoom = 2;		}	}	else {		if (dir == "-") {			if (zoomVal > 1) {				document.body.style.zoom = zoomVal - 0.1;				document.getElementById("subTabMenu").style.zoom = zoomVal - 0.1;				document.getElementById("subContent").style.minWidth = document.getElementById("subContent").clientWidth - (document.getElementById("subContent").clientWidth * 0.1);				zoomVal = zoomVal - 0.1;			}			else {				document.body.style.zoom = 1;				document.getElementById("subTabMenu").style.zoom = 1;			}		}	}}/* tab menu */function tabMenu(obj){	var divObj = obj.parentNode;	var aObjs = null;	if (divObj.tagName == "DIV") {		aObjs = divObj.getElementsByTagName("A");	}	else if (divObj.tagName == "LI") {		divObj = divObj.parentNode.parentNode;		aObjs = divObj.getElementsByTagName("A");	}	var AllDivs = divObj.parentNode.childNodes;	var Alltabs = new Array();	var j = 0;	for (i=0;i<AllDivs.length;i++) {		if (AllDivs[i].tagName == "DIV" && AllDivs[i].className == "tabCont") {			Alltabs[j] = AllDivs[i];			j++;		}	}	for (i=0;i<aObjs.length;i++) {		if (aObjs[i] == obj) {			if (aObjs[i].firstChild.nodeType == "1" && aObjs[i].firstChild.tagName == "IMG") {				var tempSrc = aObjs[i].firstChild.src;				tempSrc = strReplace("off.gif", "on.gif", tempSrc);				aObjs[i].firstChild.src = tempSrc;			}			if (Alltabs[i]) {				Alltabs[i].style.display = "block";			}		}		else {			if (aObjs[i].firstChild.nodeType == "1" && aObjs[i].firstChild.tagName == "IMG") {				var tempSrc = aObjs[i].firstChild.src;				tempSrc = strReplace("on.gif", "off.gif", tempSrc);				aObjs[i].firstChild.src = tempSrc;			}			if (Alltabs[i]) {				Alltabs[i].style.display = "none";			}		}	}}/* xml ¸µÅ© ÇÔ¼ö */function gotoUrlBanner(url,urltype,width,height,positionx,positiony) {	if (urltype == "2") {		window.open(url,"_blank");	}	if (urltype == "3") {		window.open(url, "", "width="+width+", height="+height+", left="+positionx+", top="+positiony+")");	}}function numberFormat(numValue){	//numOnlyÇÔ¼ö¿¡ ¸¶Áö¸· ÆÄ¶ó¹ÌÅÍ¸¦ true·Î ÁÖ°í numOnly¸¦ ºÎ¸¥´Ù.	var cashReturn = "";	for (var i = numValue.length-1; i >= 0; i--){		cashReturn = numValue.charAt(i) + cashReturn;		if (i != 0 && i%3 == numValue.length%3) cashReturn = "," + cashReturn;	}	return cashReturn;}
