/****************************************************************************************/
//ÆäÀÌÁö ÀÌµ¿
/****************************************************************************************/
function tM_goURL(theURL, theTarget) {
	if(theTarget == 'blank'){
		window.open(theURL,'','');
	} else {
		theTarget = (theTarget)?theTarget+'.':'';
		eval(theTarget + "location.href = theURL;");
	}
}

/****************************************************************************************/
//Show Hide ID 1 : Roll Over½Ã ±× ¸Þ´ºÀÇ Object¸¦ º¸ÀÌ°Ô ÇÏ°í Roll Out½Ã »ç¶óÁö°Ô ÇÑ´Ù.
/****************************************************************************************/
/* Arguments
String theObj:°´Ã¼ID°ª
Int theLeft:°íÁ¤µÈ °´Ã¼ÀÇ Left°ª(px´ÜÀ§)/°ªÀÌ ¾øÀ» °æ¿ì ÀÌº¥Æ®°¡ ÀÏ¾î³­ °÷ÀÇ Left°ª ÇÒ´ç
Int theTop:°íÁ¤µÈ °´Ã¼ÀÇ Top°ª(px´ÜÀ§)/°ªÀÌ ¾øÀ» °æ¿ì ÀÌº¥Æ®°¡ ÀÏ¾î³­ °÷ÀÇ Top°ª ÇÒ´ç
String theFlag:value1>'show' : ¹«Á¶°Ç °´Ã¼¸¦ º¸ÀÌ°Ô ÇÑ´Ù.
*/
function tT_showHideID(theObj,theLeft,theTop,theFlag) {
	if(document.all){
		theObj = document.all.item(theObj);
		if(theObj){
			if(theObj.style){
				if(theFlag == 'show') {
					theObj.style.display = '';
				} else if(theObj.style.display == 'none'){
					theLeft = (theLeft)?theLeft:event.x + document.body.scrollLeft;
					theTop = (theTop)?theTop:event.y + document.body.scrollTop;
					theObj.style.display = '';
					theObj.style.left = theLeft;
					theObj.style.top = theTop;
				} else {
					theObj.style.display = 'none';
				}
			}
		}
	}
}
/***********************************************************************************************************/
//Show Hide ID 2 : Roll Over½Ã º¸ÀÌ°í ÀÖ´Â Object´Â º¸ÀÌÁö ¾Ê°Ô ÇÏ°í OverµÈ ¸Þ´ºÀÇ Object¸¦ º¸ÀÌ°Ô ÇÏ´Â ÇÔ¼ö
/***********************************************************************************************************/
/****************/
//º¯¼ö Á¤ÀÇ ÇÔ¼ö
/****************/
/* Arguments
Type : String, Int
tT_showHideID2() °¡ ÇÏ³ªÀÇ ¿µ¿ª¿¡¼­¸¸ ¾²ÀÏ ¶§ : tT_showHideID2Def();
tT_showHideID2() °¡ ¿©·¯ ¿µ¿ª¿¡¼­¸¸ ¾²ÀÏ ¶§ : tT_showHideID2Def(value1, value2, ....);
*/
function tT_showHideID2Def() {
	var arg, i;
	arg = tT_showHideID2Def.arguments;
	if(arg.length != 0){
		for(i = 0 ; i < arg.length; i++){
			eval('tm_varSelObjID' + arg[i] + ' = "";');
		}
	} else {
		tm_varSelObjID = "";
	}
}
/****************/
//½ÇÇà ÇÔ¼ö
/****************/
/* Arguments
String theObj:°´Ã¼ID°ª
Int theLeft:°íÁ¤µÈ °´Ã¼ÀÇ Left°ª(px´ÜÀ§)/°ªÀÌ ¾øÀ» °æ¿ì ÀÌº¥Æ®°¡ ÀÏ¾î³­ °÷ÀÇ Left°ª ÇÒ´ç
Int theTop:°íÁ¤µÈ °´Ã¼ÀÇ Top°ª(px´ÜÀ§)/°ªÀÌ ¾øÀ» °æ¿ì ÀÌº¥Æ®°¡ ÀÏ¾î³­ °÷ÀÇ Top°ª ÇÒ´ç
String, Int theIndex:º¯¼ö Á¤ÀÇ ÇÔ¼ö¿¡¼­ ÀÎÀÚ·Î ¾²ÀÎ °ª Áß ÇÏ³ª¿©¾ß ÇÑ´Ù.(ÇÏ³ªÀÇ ¿µ¿ª¿¡¼­ ¾²ÀÏ °æ¿ì °ªÀÌ ÇÊ¿ä¾øÀ½)
*/
function tT_showHideID2(theObjID,theLeft,theTop,theIndex) {
	if(document.all){
		theIndex = (theIndex)?theIndex:'';
		theObj = document.all.item(theObjID);
		theSelObj = document.all.item(eval('tm_varSelObjID' + theIndex));
		if(theObj){
			if(theObj.style){
				if(theSelObj) theSelObj.style.display = 'none';
				theLeft = (theLeft)?theLeft:event.x + document.body.scrollLeft;
				theTop = (theTop)?theTop:event.y + document.body.scrollTop;
				theObj.style.display = '';
				theObj.style.left = theLeft;
				theObj.style.top = theTop;
				eval('tm_varSelObjID' + theIndex + '="' + theObjID + '"');
			}
		} else {
			if(theSelObj) theSelObj.style.display = 'none';
		}
	}
}

/****************************************************************************************/
//±×¸² Å×µÎ¸® ¸¸µé±â
/****************************************************************************************/
/* Arguments
picSrc : ÀÌ¹ÌÁö °æ·Î
picAttr : ÀÌ¹ÌÁö ¼Ó¼º
iTAttr : ±×¸²ÀÌ µé¾îÀÖ´Â Å×ÀÌºí ¼Ó¼º
tTAttr : ±×¸²Æ² ÀüÃ¼ µ¥ÀÌºí ¼Ó¼º
pSize : Padding Size
*/
function tM_createPicture(sNum, picSrc, picAttr, iTAttr, tTAttr, pSize){
	var mAPictureType;
	if(sNum == 1) {
		mAPictureType = '' +
'						<table border="0" cellpadding="0" cellspacing="0" style="border:solid 1px #CCCCCC;" ' + tTAttr + '>\n' +
'							<tr>\n' +
'								<td align="center">\n' +
'								<!--image//-->\n' +
'								<div><img src="' + picSrc + '" border="0" ' + picAttr + '></div>\n' +
'								</td>\n' +
'							</tr>\n' +
'						</table>\n';
	} else if(sNum == 2) {
		pSize = (pSize)?pSize:3;
		mAPictureType = '' +
'					<table border="0" cellpadding="' + pSize + '" cellspacing="0" style="border:solid 1px #CCCCCC; background-color:#FFFFFF;" ' + tTAttr + '>\n' +
'						<tr>\n' +
'							<td align="center">\n' +
'							<div><img src="' + picSrc + '" border="0" ' + picAttr + '></div>\n' +
'							</td>\n' +
'						</tr>\n' +
'					</table>\n';
	} else if(sNum == 3) {
		pSize = (pSize)?pSize:3;
		mAPictureType = '' +
'				<table border="0" cellpadding="0" cellspacing="0" ' + tTAttr + '>\n' +
'					<tr height="100%">\n' +
'						<td>\n' +
'						<table border="0" cellpadding="' + pSize + '" cellspacing="0" bgcolor="#FFFFFF" style="border:solid 1px #CCCCCC;" ' + iTAttr + '>\n' +
'							<tr>\n' +
'								<td align="center">\n' +
'								<!--image//-->\n' +
'								<div><img src="' + picSrc + '" border="0" ' + picAttr + '></div>\n' +
'								</td>\n' +
'							</tr>\n' +
'						</table>\n' +
'						</td>\n' +
'						<td width="2" valign="bottom">\n' +
'						<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">\n' +
'							<tr><td height="2%"></td></tr>\n' +
'							<tr><td height="98%" bgcolor="#000000" style="filter:alpha(opacity=10);"></td></tr>\n' +
'						</table>\n' +
'						</td>\n' +
'					</tr>\n' +
'					<tr>\n' +
'						<td colspan="2" height="2">\n' +
'						<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">\n' +
'							<tr><td width="2%"></td>\n' +
'							<td bgcolor="#000000" width="98%" style="filter:alpha(opacity=10);"></td></tr>\n' +
'						</table>\n' +
'						</td>\n' +
'					</tr>\n' +
'				</table>';
	} else if(sNum == 4) {
		pSize = (pSize)?pSize:2;
		mAPictureType = '' +
'				<table border="0" cellpadding="0" cellspacing="0" ' + tTAttr + '>\n' +
'					<tr><td colspan="3" height="2" bgcolor="#000000" style="filter:alpha(opacity=5);"></td></tr>\n' +
'					<tr height="100%">\n' +
'						<td width="2" bgcolor="#000000" style="filter:alpha(opacity=5);"></td>\n' +
'						<td>\n' +
'						<table border="0" cellpadding="' + pSize + '" cellspacing="0" style="border:solid 1px #CCCCCC; background-color:#FFFFFF;" ' + iTAttr + '>\n' +
'							<tr>\n' +
'								<td align="center" height="100%">\n' +
'								<!--image//-->\n' +
'								<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" style="border:solid 1px #DDDDDD;"><tr><td align="center"><img src="' + picSrc + '" border="0" ' + picAttr + '></td></tr></table>\n' +
'								</td>\n' +
'							</tr>\n' +
'						</table>\n' +
'						</td>\n' +
'						<td width="2" bgcolor="#000000" style="filter:alpha(opacity=5);"></td>\n' +
'					</tr>\n' +
'					<tr><td colspan="3" height="2" bgcolor="#000000" style="filter:alpha(opacity=5);"></td></tr>\n' +
'				</table>\n';
	} else {
		mAPictureType = '' +
'						<table border="0" cellpadding="0" cellspacing="0" ' + tTAttr + '>\n' +
'							<tr>\n' +
'								<td align="center">\n' +
'								<!--image//-->\n' +
'								<div><img src="' + picSrc + '" border="0" ' + picAttr + '></div>\n' +
'								</td>\n' +
'							</tr>\n' +
'						</table>\n';
	}
	document.write(mAPictureType);
}

//¼³¹®Á¶»çLayer Show Hide
function tM_schedule01Div(theObj, theFlag){
	if(theObj){
		if(theObj.style.display == "none" || theFlag == "show"){
			theObj.style.display = "";
			theObj.style.top = event.y + document.body.scrollTop;
			theObj.style.left = event.x + document.body.scrollLeft;
		} else {
			theObj.style.display = "none";
		}
	}
}