	// Quick Menu
	
	self.onError=null;
	currentX = currentY = 0;  
	whichIt = null;           
	lastScrollX = 0; lastScrollY = 0;
	NS = (document.layers) ? 1 : 0;
	IE = (document.all) ? 1: 0;

	function heartBeat() {
		if(IE) { 
			  diffY = document.body.scrollTop; 
 			  diffX = 0; 
		       }
	    if(NS) { diffY = self.pageYOffset; diffX = self.pageXOffset; }
		if(diffY != lastScrollY) {
	                percent = .1 * (diffY - lastScrollY);
	                if(percent > 0) percent = Math.ceil(percent);
	                else percent = Math.floor(percent);
			if(IE) document.all.TopGo.style.pixelTop += percent;
			
			if(NS) document.TopGo.top += percent; 
			
	                lastScrollY = lastScrollY + percent;
	    }
		if(diffX != lastScrollX) {
			percent = .1 * (diffX - lastScrollX);
			if(percent > 0) percent = Math.ceil(percent);
			else percent = Math.floor(percent);
			if(IE) document.all.TopGo.style.pixelLeft += percent;
			
			if(NS) document.TopGo.top += percent;
			
			lastScrollY = lastScrollY + percent;
		}	
	}	
	if(NS || IE) action = window.setInterval("heartBeat()",1);

	//Status Bar
	var msg = '¢Æ¢Æ¢Æ Àº»êÇØ¿îÇ×°ø(ÁÖ) È¨ÆäÀÌÁö¿¡ ¿À½Å °ÍÀ» È¯¿µÇÕ´Ï´Ù... ¢Æ¢Æ¢Æ'; 
	function hideURL() { 
		window.status = msg; 
		//timerID= setTimeout("hideURL()", 0);
		// MGS ±ô¹Ú°Å¸² ¾ø¾Ö´Þ¶ó´Â ¿äÃ»(Àü¿µ¹Î ÁÖÀÓ - 2009.09.04)
		timerID= setTimeout("hideURL()", 1000); 
	} 
	hideURL(); 				
						
	// ÄÁÆß ¸Þ¼¼Áö ¹Ú½º

	function ConfirmJavaScript(JSMessage,JSGotoPageURL) 
	{
			
		var ConFirmTxt = confirm(JSMessage);  

		if(ConFirmTxt){
			document.location.href = JSGotoPageURL;
		}	
		else{
			return;
		}	
	}	
	
	// ÀÌ¸ÞÀÏ Ã¼Å©

	function isEmail(s) 
	{
		  var i = 1;
		  var sLength = s.length;
		  
		  while ((i < sLength) && (s.charAt(i) != "@"))
		  { i++ }
		  
		  if (( i>= sLength) || (s.charAt(i) != "@")) return false;
		  else i += 2;

		  while ((i < sLength) && (s.charAt(i) != "."))
		  { i++  }

		  if (( i>= sLength - 1) || (s.charAt(i) != ".")) return false;
		  else return true;
	}

	// ¾ÆÀÌµð ÇÑ±ÛÃ¼Å©

	function IDAlPhaChK(str)
	{
		var ch = str.charAt(0);
		if ( (ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z') )
			return true;
		else
			return false;
	}

	//¾ÆÀÌµð Ã¹±ÛÀÚ ¼ýÀÚÃ¼Å©
	function IDNumChk( str )
	{
		var result = true;
		for(var i=0; i < str.length;i++)
		{
			var ch=str.charAt(i);

			if ( (ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z')  || (ch >= '0' && ch <= '9'))
				continue;
			Else
			{
				result = false;
				break;
			}
		}
	    return result;
	}


	// Ã¢ ¶ç¿ì±â

	var DefaultPopupView = null; 
	function DefaultPopup(CurrentOpenPageUrl,PopupName,Width,Height,Scroll)
	{ 
		LeftPosition = (screen.width) ? (screen.width-Width)/2 : 0; 
		TopPosition = (screen.height) ? (screen.height-Height)/10 : 0; 
		PopupSetting = 'height='+Height+',width='+Width+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+Scroll+',resizable=0' 
		DefaultPopupView = window.open(CurrentOpenPageUrl,PopupName,PopupSetting) 
			
		if (DefaultPopupView == null) 
		{
			if ((navigator.userAgent.indexOf("Windows NT 5.1")!=-1) && (navigator.userAgent.indexOf("SV1")!=-1)) {      // SP2 À¥ ºê¶ó¿ìÀú
		        alert("ÆË¾÷ Ã¢ÀÌ Â÷´ÜµÇ¾ú½À´Ï´Ù.\n³»¿ëÀ» º¸½Ã·Á¸é ºê¶ó¿ìÀúÀÇ »ó´Ü ³ë¶õ»ö [¾Ë¸² Ç¥½ÃÁÙ]À» Å¬¸¯ÇÏ½Å ÈÄ\nÆË¾÷ Ã¢À» Çã¿ëÇÏµµ·Ï ¼±ÅÃÇÏ¿© ÆË¾÷ Ã¢À» ¿©½Ê½Ã¿À.");
		    }
		    else {
			  alert("ÆË¾÷ Ã¢À» ¿ÀÇÂ ÇÒ ¼ö ¾ø½À´Ï´Ù.\n³»¿ëÀ» º¸½Ã·Á¸é ÆË¾÷ Â÷´Ü ÇÁ·Î±×·¥ÀÌ ¼³Ä¡µÇ¾î ÀÖ´Â °æ¿ì ÆË¾÷ Ã¢À» Çã¿ëÇÏ¿© ÆË¾÷ Ã¢À» ¿©½Ê½Ã¿À.");
		    }
		} else 
		{
		    DefaultPopupView;
		}
	}	
	
	// ¾ÆÀÌµð/ÆÐ½º¿öµå °Ë»ö Ã¢
	function win()
	{ 
		DefaultPopup('/Front/Member/Member_InfoSearch.asp','IDPassSearch','451','312','0')
	}

	// ´Þ·Â°ü·Ã ÇÔ¼ö
		
	var target;
	var stime;
	var calendar;

	document.writeln('<div id="minical" onmouseover="Calendar_Over()" onmouseout="Calendar_Out()" style="background: buttonface; margin:2; border: 1 solid buttonshadow; width:160; display:none; position:absolute; z-index:1">');
	document.writeln('<iframe id="Cal_iFrame" width=160 height=130 src="/Front/Commonness/Common_Calendar.asp" scrolling=no frameborder=no border=1 bordercolor=red></iframe>');
	document.writeln('</div>');

	function Calendar_Over() {
		window.clearTimeout(stime);
	}

	function Calendar_Out() {
		stime=window.setTimeout("calendar.style.display='none';", 200);
	}

	function Calendar_Click(e) {
		cal_Day = e.title;
		if (cal_Day.length > 6) {
			target.value = cal_Day
		}	
		calendar.style.display='none';
	}

	function Calendar_S(obj) {

		var now = obj.value.split("-");
		target = obj;															

		var top = document.body.clientTop + GetObjectTop(obj);
		var left = document.body.clientLeft + GetObjectLeft(obj);

		calendar = document.all.minical;
		calendar.style.pixelTop = top + obj.offsetHeight;
		calendar.style.pixelLeft = left;
		calendar.style.display = '';
		
		if (now.length == 3) {											
			Cal_iFrame.Show_cal(now[0],now[1],now[2]);					
		} else {
			now = new Date();
			Cal_iFrame.Show_cal(now.getFullYear(), now.getMonth()+1, now.getDate());
		}
	}

	function Calendar_E(obj) {
		var now = obj.value.split("-");
		target = obj;															

		var top = document.body.clientTop + GetObjectTop(obj);
		var left = document.body.clientLeft + GetObjectLeft(obj);

		calendar = document.all.minical;
		calendar.style.pixelTop = top + obj.offsetHeight;
		calendar.style.pixelLeft = left;
		calendar.style.display = '';
		
		if (now.length == 3) {											
			Cal_iFrame.Show_cal(now[0],now[1],now[2]);					
		} else {
			now = new Date();
			Cal_iFrame.Show_cal(now.getFullYear(), now.getMonth()+1, now.getDate());
		}
	}

	
	function GetObjectTop(obj)
	{
		if (obj.offsetParent == document.body)
			return obj.offsetTop;
		else
			return obj.offsetTop + GetObjectTop(obj.offsetParent);
	}

	function GetObjectLeft(obj)
	{
		if (obj.offsetParent == document.body)
			return obj.offsetLeft;
		else
			return obj.offsetLeft + GetObjectLeft(obj.offsetParent);
	}

	//Goto URL Location
	function PageLocationURL(GotoPageURL) 
	{
		if (GotoPageURL != "") 
   		{
			document.location.href = GotoPageURL;
		}	
		else 
		{
			alert("URL ¿À·ùÀÔ´Ï´Ù.\n\n»õ·Î°íÄ§ ÈÄ ´Ù½Ã ÀÌ¿ëÇÏ¿© ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
		}	
	}			
		
	//Goto Windows URL Location
	function WindowsLocationURL(GotoPageURL) 
	{
											
		if (GotoPageURL != "") 
		{
												
			document.location.href = GotoPageURL;
		}	
		else 
		{
			alert("URL ¿À·ùÀÔ´Ï´Ù.\n\n»õ·Î°íÄ§ ÈÄ ´Ù½Ã ÀÌ¿ëÇÏ¿© ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");
		}	
	}	

	function documentwrite(GotoSrcString)
	{
		document.write(GotoSrcString);
	}

	//ÇÃ·¡½¬ ÄÚµå

	function MakeFlashString(FlashFileURL,WIdthSize,HeightSize,WmodeString,FlashNameString,AlignString, ZoneInfo)
	{
		var strZone = ZoneInfo == "zone"?"":ZoneInfo.replace(/zone/gi, "");
			if(strZone != ""){
	    		if(strZone != ""){
	    			strZone = strZone;
	    		}else{
	    			strZone = "none";
			}
	    }

	    var strParamAppend = "<param name=\"flashvars\" value=\"zone="+strZone+"\"/>";

		if(WmodeString == "1")
		{
			return "<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=\""+WIdthSize+"\" HEIGHT=\""+HeightSize+"\" id=\""+FlashNameString+"\" ALIGN=\""+AlignString+"\"><PARAM NAME=movie VALUE=\""+FlashFileURL+"\"><PARAM NAME=quality VALUE=high><PARAM NAME=\"allowScriptAccess\" VALUE=\"sameDomain\" /><PARAM NAME=\"wmode\" VALUE=\"transparent\" /><PARAM NAME=\"menu\" VALUE=\"false\" />"+strParamAppend+"<EMBED src=\""+FlashFileURL+"\" quality=high bgcolor=#FFFFFF WIDTH=\""+WIdthSize+"\" HEIGHT=\""+HeightSize+"\" NAME=\""+FlashNameString+"\" ALIGN=\""+AlignString+"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED></OBJECT>";
		}
		else
		{
			return "<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=\""+WIdthSize+"\" HEIGHT=\""+HeightSize+"\" id=\""+FlashNameString+"\" ALIGN=\""+AlignString+"\"><PARAM NAME=movie VALUE=\""+FlashFileURL+"\"><PARAM NAME=quality VALUE=high><PARAM NAME=\"allowScriptAccess\" VALUE=\"sameDomain\" />"+strParamAppend+"<EMBED src=\""+FlashFileURL+"\" quality=high bgcolor=#FFFFFF WIDTH=\""+WIdthSize+"\" HEIGHT=\""+HeightSize+"\" NAME=\""+FlashNameString+"\" ALIGN=\""+AlignString+"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED></OBJECT>";
		}										
	}

	//µ¿¿µ»ó ÄÚµå

	function MakeMovieString(MovieFileURL,WIdthSize,HeightSize,MovieNameString,MovieAlign) 
	{
		return "<EMBED SRC=\""+MovieFileURL+"\" ALIGN=\""+MovieAlign+"\" WIDTH=\""+WIdthSize+"\" HEIGHT=\""+HeightSize+"\" NAME=\""+MovieNameString+"\">";
	}

	
	//·Î±×ÀÎ ¾ÆÀÌµð/ºñ¹Ð¹øÈ£ ¹Ú½º ¹é±×¶ó¿îµåÀÌ¹ÌÁö Å¬¸®¾î
	function ClearImage(ObjValue) 
	{
		ObjValue.style.backgroundImage = "";
	}
	
	//·Î±×ÀÎ Ã¼Å© ÇÔ¼ö
	function Check_Frm_Go(form) 
	{
		
		if (form.Radio_MemberFlag[0].checked==false && form.Radio_MemberFlag[1].checked==false) 
		{
		     alert("·Î±×ÀÎ ±¸ºÐ[È­ÁÖ/»ç¿ø]À» ¼±ÅÃÇÏ¿© ÁÖ½Ê½Ã¿ä.");  
		     form.Radio_MemberFlag[0].focus();  
		     return false;  
		}	
		
		if (form.Radio_MemberFlag[0].checked==true)
		{
			if (form.Txt_MemberUID.value == "" ) 
			{
			    alert("[ È­ÁÖ ]´ÔÀÇ ¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
			    form.Txt_MemberUID.focus();  
			    return false;
			}
			
			if (form.Txt_MemberPass.value == "" ) 
			{
			    alert("[ È­ÁÖ ]´ÔÀÇ ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); 
			    form.Txt_MemberPass.focus();  
			    return false;
			}
		}
		
		if (form.Radio_MemberFlag[1].checked==true)
		{
			if (form.Txt_MemberUID.value == "" ) 
			{
			    alert("[ »ç¿ø ]´ÔÀÇ ¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
			    form.Txt_MemberUID.focus();  
			    return false;
			}
			if (form.Txt_MemberPass.value == "" ) 
			{
			    alert("[ »ç¿ø ]´ÔÀÇ ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä."); 
			    form.Txt_MemberPass.focus();  
			    return false;
			}
		}
			
		return true;        
	}



function test() {
		alert('Comming Soon!');
	}
