	function MoveTipBar( argText )
	{
		document.all.TipBar.style.left = window.event.x + 10 + document.body.scrollLeft;
		document.all.TipBar.style.top = window.event.y + 5 + document.body.scrollTop;
	}
	
	function ShowTipBar( argText )
	{
		document.all.TipBar.style.display = '';
		document.all.TipLabel.innerText = argText;
	}
	
	function HideTipBar(argText)
	{
		document.all.TipLabel.innerText = '';
		document.all.TipBar.style.display = 'none';
	}
	

/*************************************************
		À§Ä¡¸¦ ¼¾Å¸·Î ³¯·ÁÁØ´Ù.
*************************************************/

	function check_Pos(argDivPopUp, argTargetWidth, argTargetHeight)
	{

		if (document.body.clientWidth <= argTargetWidth )
			Win_xxx = 5 + document.body.scrollLeft;
		else
			Win_xxx = (((document.body.clientWidth - argTargetWidth) / 2)) + 5 + document.body.scrollLeft;
			
			
		if (document.body.clientHeight <= argTargetHeight )
			Win_yyy = 5 + document.body.scrollTop;
		else
			Win_yyy = (((document.body.clientHeight - argTargetHeight) / 2)) + 5 + document.body.scrollTop;

		document.all(argDivPopUp).style.left = Win_xxx;
		document.all(argDivPopUp).style.top = Win_yyy;
		document.all(argDivPopUp).style.visibility = "visible";
	}


/*************************************************
		³â¿ùÀÏ¿¡ µû¸¥ ÀÏÀÚÀ¯È¿Ã¼Å©(±¸ºÐ)
*************************************************/
	function CheckDay(arg1, arg2, arg3 )		// ³â,¿ù,ÀÏ
	{
	var TargetDay;
	var CheckYear = arg1
	var CheckMonth = arg2;
	var tempi;
	var strTemp = "";
	    // °¢ ´ÞÀÇ ÃÑ ³¯¼ö¸¦ ±¸ÇÑ´Ù. 
	    
	    switch (CheckMonth)
		{
			case "01":
			case "03":
			case "05":
			case "07":
			case "08":
			case "10":
			case "12":TargetDay = 31;
				break;
			case "04":
			case "06":
			case "09":
			case "11":TargetDay = 30;
				break;
	    }


		if ( CheckMonth == "02" )
		{		//À±³âÀÎÁö...
			if (((CheckYear % 4 == 0) && (CheckYear % 100 != 0)) || (CheckYear % 400 == 0))
				TargetDay = 29;
			else
				TargetDay = 28;
		}
		
		if ( eval(arg3 > TargetDay))
		{
			return false;
		}
		else
			return true;
	}


/*************************************************
		³â¿ùÀÏ¿¡ µû¸¥ ÀÏÀÚÀ¯È¿Ã¼Å©
*************************************************/
	function CheckDate(arg1 )		// ³â,¿ù,ÀÏ
	{
	var TargetDay;
	var ArrCheckDate = arg1.split("-");

	if (ArrCheckDate.length != 3)
	{
		return false;
	}

	arg1 = ArrCheckDate[0];
	if ( arg1.length != 4 )	return false;
	arg2 = ArrCheckDate[1];
	if ( arg2.length != 2 )	return false;
	arg3 = ArrCheckDate[2];
	if ( arg3.length != 2 )	return false;
	if ( isNaN(arg1) || isNaN(arg2) || isNaN(arg3) || arg1 == "" || arg2 == "" || arg3 == "" )
	{
		return false;
	}else if ( eval(arg1) <= 1900 || eval(arg1) >= 2500 || eval(arg2) < 1 || eval(arg2) > 12 || eval(arg3) < 1 || eval(arg3) > 31 )
	{
		return false;
	}


		return CheckDay(arg1, arg2, arg3 );

	/*
		var CheckYear = arg1
		var CheckMonth = arg2;
		var tempi;
		var strTemp = "";
		    // °¢ ´ÞÀÇ ÃÑ ³¯¼ö¸¦ ±¸ÇÑ´Ù. 
		    
		    switch (CheckMonth)
			{
				case "01":
				case "03":
				case "05":
				case "07":
				case "08":
				case "10":
				case "12":TargetDay = 31;
					break;
				case "04":
				case "06":
				case "09":
				case "11":TargetDay = 30;
					break;
		    }
		    
		    
			if ( CheckMonth == "02" )
			{		//À±³âÀÎÁö...
				if (((CheckYear % 4 == 0) && (CheckYear % 100 != 0)) || (CheckYear % 400 == 0))
					TargetDay = 29;
				else
					TargetDay = 28;
			}
			if ( eval(arg3) > eval(TargetDay))
			{
				return false;
			}
			else
				return true;
	*/

	}

/*************************************************
				È£¼ö Ã¼Å©
*************************************************/

	function HoChk(chkfield){
		var checkStr = chkfield;
		var allValid = true;
		
		for (var i = 0; i < checkStr.length; i++)
		{
			ch = checkStr.charAt(i);
			if (((ch>=unescape('%30')) && (ch<=unescape('%39'))) || ch == "B")
			{
				allValid = true;
			}
			else
			{
				allValid = false;
				break;
			}
		}

			return allValid;
	}


/*************************************************
		E-mail Ã¼Å©
*************************************************/
	function EMailChk(arg1)
	{
		if ( arg1.indexOf("@",0) == -1 || arg1.indexOf(".",0) == -1)
		{
			return false;
		}else
			return true;
	}	


/*************************************************
				È«º¸»çÇ× ÅÂ±×Ã¼Å©
*************************************************/

	function ChkErr(chkfield)
	{
		var checkNo = "<";
		var checkiFrame = "<IFRAME";
		var checkStr = chkfield;
		var allValid = true;
		checkStr = checkStr.toUpperCase();
		checkSubStr = checkStr.substring(0,30)
		
		if (checkSubStr.indexOf(checkNo) != -1 )
		{
			allValid = false;
		}
		else
		{
			if (checkStr.indexOf(checkiFrame) != -1 )
			{
				allValid = false;
			}
		}
		
		return allValid;

	}

/*************************************************
				¼ø¼öÁ¤¼ö Ã¼Å©
*************************************************/
	function IntChk(chkfield){
		var checkStr = chkfield;
		var allValid = true;
		
		for (var i = 0; i < checkStr.length; i++)
		{
			ch = checkStr.charAt(i);
			if ((ch>=unescape('%30')) && (ch<=unescape('%39')))
			{
				allValid = true;
			}
			else
			{
				allValid = false;
				break;
			}
		}

			return allValid;
	}
	


/*************************************************
				¿µ¹®ÀÚ È®ÀÎ
*************************************************/
	function EnglishChk(chkfield){
		var checkStr = chkfield.toLowerCase();
		var allValid = true;
		
		for (var i = 0; i < checkStr.length; i++)
		{
			ch = checkStr.charAt(i);
			
			if (( ch >= unescape('%60') ) && ( ch <= unescape('%7b')))		// ¼ýÀÚ°¡ ¾Æ´Ï¶ó¸é
			{
				allValid = true;
			}
			else
			{
				if (ch != " ")
				{
				allValid = false;
				break;
				}
			}
		}

			return allValid;
	}
	
/*************************************************
				½Ç¼ö È®ÀÎ
*************************************************/
	function FloatChk(chkfield){
		var checkStr = chkfield;
		var allValid = true;
		
		for (var i = 0; i < checkStr.length; i++)
		{
			ch = checkStr.charAt(i);
			
			if ((ch>=unescape('%30')) && (ch<=unescape('%39')) || ch == ".")		// ¼ýÀÚ°¡ ¾Æ´Ï¶ó¸é
			{
				allValid = true;
			}
			else
			{
				allValid = false;
				break;
			}
		}

			return allValid;
	}


/*************************************************
				´Ü¼ø ÀüÈ­¹øÈ£ Ã¼Å©
*************************************************/

	function PhoneChk(chkfield){
		var checkOK = "0123456789-";
		var checkStr = chkfield;
		var allValid = true;
		var allNum = "";
		for (i = 0;  i < checkStr.length;  i++)
		{
		  ch = checkStr.charAt(i);
		  for (j = 0;  j < checkOK.length;  j++)
			if (ch == checkOK.charAt(j))
				break;
		    	if (j == checkOK.length)
		    	{
		      		allValid = false;
		      		break;
		    	}
		}
		return allValid;
	}


/*************************************************
			´Ü¼ø ÈÞ´ëÆù ÀüÈ­¹øÈ£ Ã¼Å©
*************************************************/

	function MobileChk(chkfield){
		var checkOK = "0123456789-";
		var checkStr = chkfield;
		var allValid = true;
		var allNum = "";

		for (i = 3;  i < checkStr.length;  i++)
		{
		  ch = checkStr.charAt(i);

				
		  for (j = 0;  j < checkOK.length;  j++)
			if (ch == checkOK.charAt(j))
				break;
		    	if (j == checkOK.length)
		    	{
		      		allValid = false;
		      		break;
		    	}
		}
		return allValid;
	}


/*************************************************
			¼ø¼ö ¼ýÀÚ¾ËÆÄºª¸¸ Ã¼Å©
*************************************************/
	function IntEnglishChk(chkfield){
		var checkOK = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
		var checkStr = chkfield;
		var allValid = true;
		var allNum = "";
		checkStr = checkStr.toUpperCase();
		for (i = 0;  i < checkStr.length;  i++)
		{
		  ch = checkStr.charAt(i);
		  for (j = 0;  j < checkOK.length;  j++)
			if (ch == checkOK.charAt(j))
				break;
		    	if (j == checkOK.length)
		    	{
		      		allValid = false;
		      		break;
		    	}
		}
		return allValid;
	}


	
/*************************************************
			¹®ÀÚ¼ö Ã¼Å©
*************************************************/

	function GulSuChk(argString, argLimitCount)			// (¹®ÀÚ³»¿ë, Á¦ÇÑ±ÛÀÚ¼ö)
	{

		var strMsg = argString;
		var strOne = "";
		var intMsgBytes = 0;
		
		for (var i = 0; i < strMsg.length; i++)
		{
			strOne = strMsg.charAt(i);
			
			if(escape(strOne).length > 4)
			{
				intMsgBytes += 2;
			}
			 else if (strOne == "\n")
			{
				if (strMsg.charAt(i-1) != "\r")
				{
					intMsgBytes += 1;
				}
			}
			 else if (strOne == "<" || strOne == ">")
			{
				intMsgBytes += 4;
			}
			 else
			{
				intMsgBytes += 1;
			}
		}
		
		if ( intMsgBytes > argLimitCount )
		return false;
		
		return true;
	}
	


/*************************************************
			°ø¹éÁö¿ì°í ³²Àº ¹®ÀÚÀÇ ¼ö ¸®ÅÏ
*************************************************/
	function RemoveBlank(argMsg)
	{	
		var strTemp = "";
		var iCount = 0;
		var strOne = "";
		for(var i = 0;i < argMsg.length; ++i)
		{
			strOne = argMsg.charAt(i);
			
			if(strOne != " ")
			strTemp += strOne;
		}
		
		iCount=strTemp.length

		return iCount;
	}



/**************************************************
	ÁÖ¹Îµî·Ï¹øÈ£
**************************************************/
	function JuminChk(argFormName, argJuminNo)
	{

		var objTheForm = eval("document." + argFormName);
		var objJuminNo = eval("document." + argFormName + "." + argJuminNo);
		
		if ( RemoveBlank(objJuminNo.value) != 13  || !IntChk(objJuminNo.value))
		{
			alert( "[Àß¸øµÈ ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù." );
			objJuminNo.select();
			objJuminNo.focus();
			return false;
		}

		var strJuminNo = objJuminNo.value;
		var sum = 0;
		
		if (strJuminNo.substring(0,6) != "000000")
		{
			for(i = 0; i < 8; i++)
			{
				sum += strJuminNo.substring(i,i+1)*(i+2);
			}
		
			for(i = 8; i < 12; i++)
			{
				sum += strJuminNo.substring(i,i+1)*(i-6);
			}
		
			sum = 11 - (sum % 11);
		
			if ( sum >= 10 )
			{
				sum -= 10;
			}
		
			if (strJuminNo.substring(12,13) != sum || (strJuminNo.substring(6,7) != 1 && strJuminNo.substring(6,7) != 2)) 
			{
				alert( "[Àß¸øµÈ ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù." );
				objJuminNo.select();
				objJuminNo.focus();
				return false;
			}
		}
		return true;

	}







/*************************************************
			¹®ÀÚ Á¦ÇÑ ¼ö Ä«¿îÆ®
*************************************************/

	function LengthLimit(argFormName, argTargetObject, argTargetLimitCount, argInnerObjectCount)			// (Á¦ÇÑ ¹®ÀÚ¼ö, ¹ÞÀº ¹®ÀÚ³»¿ë)
	{

		var objTheForm = eval("document." + argFormName);
		var objTargetObject = eval("document." + argFormName + "." + argTargetObject);
		if (argInnerObjectCount != "")
			var objInnerObjectCount = eval(argInnerObjectCount);
		var strMsg = objTargetObject.value;
		var strReturnMsg = "";
		var strOne = "";
		var intMsgBytes = 0;
		
		for (var i = 0; i < strMsg.length; i++)
		{
			strOne = strMsg.charAt(i);
			
			if(escape(strOne).length > 4)
			{
				intMsgBytes += 2;
			}
			 else if (strOne == "\n")
			{
				if (strMsg.charAt(i-1) != "\r")
				{
					intMsgBytes += 1;
				}
			}
			 else if (strOne == "<" || strOne == ">")
			{
				intMsgBytes += 4;
			}
			 else
			{
				intMsgBytes += 1;
			}
			
			if ( intMsgBytes <= argTargetLimitCount )
			{
				strReturnMsg += strOne;
			}
		}
		
		if ( intMsgBytes > argTargetLimitCount )
		{
			alert("¹®ÀÚ Á¦ÇÑ¼ö (" + argTargetLimitCount + ") °¡ ÃÊ°ú µÇ¾ú½À´Ï´Ù.\nÃÊ°úµÈ ¹®ÀÚ´Â ÀÚµ¿ »èÁ¦ µË´Ï´Ù.");
			objTargetObject.value = strReturnMsg;
			
			if (argInnerObjectCount != "")
			objInnerObjectCount.innerText = argTargetLimitCount;
		}
		else
		{
			if (argInnerObjectCount != "")
			objInnerObjectCount.innerText = intMsgBytes;
		}
	}




/*************************************************
	class ¹öÆ°¿¡ ´ëÇÑ ¸¶¿ì½º ¿À¹ö ½Ã°¢È¿°ú
*************************************************/

	function Over_Effect(e,state)
	{
		if (document.all)
			MenuSource = event.srcElement;
		else if (document.getElementById)
			MenuSource = e.target;
			
			
		if (MenuSource.className == "Menu")
		{
			MenuSource.style.borderStyle = state;
			MenuSource.style.color = "red";
		}else if (MenuSource.className == "MenuON")
		{
			MenuSource.style.borderStyle = state;
			MenuSource.style.color = "white";
		}else if (MenuSource.className == "MenuOUT")
		{
			MenuSource.style.borderStyle = state;
			MenuSource.style.color = "black";	
		}else
		{
			while(MenuSource.tagName != "TABLE")
			{
				MenuSource = document.getElementById? MenuSource.parentNode : MenuSource.parentElement;
				if (MenuSource.className == "Menu")
					MenuSource.style.borderStyle = state;
			}
		}
	}

/*************************************************
	class ¹öÆ°¿¡ ´ëÇÑ ¸¶¿ì½º ¾Æ¿ô ½Ã°¢È¿°ú
*************************************************/
	function Out_Effect(e,state)
	{
		if (document.all)
			MenuSource = event.srcElement;
		else if (document.getElementById)
			MenuSource = e.target;
			
			
		if (MenuSource.className == "Menu")
		{
			MenuSource.style.borderStyle = state;
			MenuSource.style.color = "black";
		}else if (MenuSource.className == "MenuON")
		{
			MenuSource.style.borderStyle = state;
			MenuSource.style.color = "yellow";
		}else if (MenuSource.className == "MenuOUT")
		{
			MenuSource.style.borderStyle = state;
			MenuSource.style.color = "#737373";	
		}else
		{
			while(MenuSource.tagName != "TABLE")
			{
				MenuSource = document.getElementById? MenuSource.parentNode : MenuSource.parentElement;
				if (MenuSource.className == "Menu")
					MenuSource.style.borderStyle = state;
			}
		}
	}



//**********************************************************
// ¸®½ºÆ®¹Ú½º¿¡ °ª³Ö±â
//**********************************************************
	function OptionValueSel(argFormName, argTypeName, argTypeValue)
	{

		var i,selindex;
		var objTypeName = eval("document." + argFormName + "." + argTypeName);

		selindex = 0;
		for(i = 0;i < objTypeName.length;i++)
		{
		   if ( objTypeName[i].value == argTypeValue )
		   {
		     selindex = i;
		   }
		}
		
		objTypeName.options[selindex].selected = true;
	}



//**********************************************************
// CheckBox¿¡ °ª³Ö±â
//**********************************************************
	function CheckBoxValueSel(argFormName, argTypeName, argTypeValue)
	{

		var i;
		var objTypeName = eval("document." + argFormName + "." + argTypeName);

		var arrCheckBoxList = argTypeValue.split(",");
		
		if (isNaN(objTypeName.length))
		{
			if ( objTypeName.value ==  argTypeValue)
			objTypeName.checked = true;
		}
		else
		{
			for(i = 0;i < arrCheckBoxList.length;i++)
			{
				for(j = 0;j < objTypeName.length;j++)
				{
				   if ( objTypeName[j].value == arrCheckBoxList[i] )
				   {
				     objTypeName[j].checked = true;
				   }
				}
		
			}
		}
	}





//**********************************************************
// Radio ¼±ÅÃ
//**********************************************************
	function RadioValueSel(argFormName, argTypeName, argTypeValue)
	{

		var i;
		var objTypeName = eval("document." + argFormName + "." + argTypeName);
		var boolMatch = false;


		if (objTypeName)
		{
		
			if ( objTypeName.length > 1 )
			{		
				for(i = 0;i < objTypeName.length;i++)
				{
				   if ( objTypeName[i].value == argTypeValue )
				   {
				     objTypeName[i].checked = true;
				     boolMatch = true;
				     break;
				   }
				}
				if ( boolMatch == false )
				{
				 objTypeName[0].checked = true;
				}
			}else
			{
				objTypeName.checked = true;
			}
		}
	}
	
	

	var theColors = new Array() 
	theColors[0] = '1838ae' // ·£´ýÄÃ·¯ÁöÁ¤
	theColors[1] = '908a22' 
	theColors[2] = '97ae18' 
	theColors[3] = 'ae7018' 
	theColors[4] = '2d908d' 
	theColors[5] = '7018ae' 
	theColors[6] = '1874ae'
	theColors[7] = '756410'
	theColors[8] = '2840bb'
	theColors[9] = '19b152'
	theColors[10] = '5a7163'
	
	
	
	 
	var j = 0 
	var p = theColors.length; 

	var whichColor1 = Math.round(Math.random()*(p-1)); 
	var whichColor2 = Math.round(Math.random()*(p-1)); 
	var whichColor3 = Math.round(Math.random()*(p-1)); 
	var whichColor4 = Math.round(Math.random()*(p-1)); 
	var whichColor5 = Math.round(Math.random()*(p-1)); 
	var whichColor6 = Math.round(Math.random()*(p-1)); 
	var whichColor7 = Math.round(Math.random()*(p-1)); 
	var whichColor8 = Math.round(Math.random()*(p-1));
	var whichColor9 = Math.round(Math.random()*(p-1));
	var whichColor10 = Math.round(Math.random()*(p-1));


	function Random_fontcolor0(){ 
	document.write('<font color=#'+theColors[whichColor7]+'>'); 
	} 
	function Random_fontcolor1(){ 
	document.write('<font color=#'+theColors[whichColor1]+'>'); 
	} 
	function Random_fontcolor2(){ 
	document.write('<font color=#'+theColors[whichColor2]+'>'); 
	} 
	function Random_fontcolor3(){ 
	document.write('<font color=#'+theColors[whichColor3]+'>'); 
	} 
	function Random_fontcolor4(){ 
	document.write('<font color=#'+theColors[whichColor4]+'>'); 
	} 
	function Random_fontcolor5(){ 
	document.write('<font color=#'+theColors[whichColor5]+'>'); 
	} 
	function Random_fontcolor6(){ 
	document.write('<font color=#'+theColors[whichColor6]+'>'); 
	} 
	function Random_fontcolor7(){ 
	document.write('<font color=#'+theColors[whichColor7]+'>'); 
	} 
	function Random_fontcolor8(){ 
	document.write('<font color=#'+theColors[whichColor8]+'>'); 
	}
	function Random_fontcolor9(){ 
	document.write('<font color=#'+theColors[whichColor9]+'>'); 
	} 
	function Random_fontcolor10(){ 
	document.write('<font color=#'+theColors[whichColor10]+'>'); 
	} 

	
	
	
	
	
	
	
	
	
	
	
	function mf(s,d,w,h,t){
	        return "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width="+w+" height="+h+" id="+d+"><param name=wmode value="+t+" /><param name=movie value="+s+" /><param name=quality value=high /><embed src="+s+" quality=high wmode="+t+" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" width="+w+" height="+h+"></embed></object>";
	}

	// write document contents
	function documentwrite(src){
	        document.write(src);
	}

	// assign code innerHTML
	function setcode(target, code){
	        target.innerHTML = code;
	}






	function bookmark(){
	window.external.AddFavorite('http://www.oneroom119.info', 'ºÎµ¿»êÇÃ·¯½º - °­³²±¸ ¿ÀÇÇ½ºÅÚ/´Ü±âÀÓ´ë/¿ø·ë/Åõ·ë/¾²¸®·ë/¾ÆÆÄÆ®/»ç¹«½Ç/»ó°¡ ÀÓ´ë/¸Å¸Å Àü¹®')
	}






