/*********************************************************************
*	SETCOOKIE
*********************************************************************/
function setCookie(name,value,expiredays) {
	var todayDate = new Date();
	todayDate.setDate(todayDate.getDate() + expiredays);
	document.cookie = name + "=" + escape(value) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}

/*********************************************************************
*	GETCOOKIE
*********************************************************************/
function getCookie(name) {
	var nameOfCookie = name + "=";
	var x = 0;
	while (x <= document.cookie.length)
	{
		var y = (x+nameOfCookie.length);
		if (document.cookie.substring( x, y ) == nameOfCookie)
		{
			if ((endOfCookie=document.cookie.indexOf(";",y)) == -1)
			{
				endOfCookie = document.cookie.length;
			}
			return unescape(document.cookie.substring(y,endOfCookie));
		}

		x = document.cookie.indexOf(" ",x) + 1;
		if (x == 0)
		{
			break;
		}
	}
	return "";
}


function MakeFlashString(source, id, width, height, wmode, menu, otherParam) {	
	return "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0\" width="+width+" height="+height+" id="+id+"><param name=wmode value="+wmode+" /><param name=movie value="+source+" /><param name=menu value="+menu+" /><param name=quality value=high />"+otherParam+"<embed src="+source+" quality=high wmode="+wmode+" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" width="+width+" height="+height+"></embed></object>";
}

function MakeObjectString(classid, codebase, name, id, width, height, param) {
	return "<object classid="+classid+" codebase="+codebase+" name="+name+" width="+width+" height="+height+" id="+id+"><param name=wmode value="+wmode+" />"+param+"</object>";
}

// innerHTML Type
function SetInnerHTML(target, code) { 
	target.innerHTML = code; 
}

// Direct Write Type
function DocumentWrite(src) {
	document.write(src);
}


/*********************************************************************
*	Full Screen
*********************************************************************/
function fullwin(targeturl){
window.open(targeturl,"","fullscreen,scrollbars")
}

/*********************************************************************
*	ModalDialog Window
*********************************************************************/

bver=navigator.appVersion.split(";");
function openM_window(){
if(bver[1].match("5."))
window.showModalDialog("enterFrame.php",null,"dialogWidth:300px;dialogHeight:330px;center:1;scroll:0;help:0;status:0");
else
window.showModalDialog("enterFrame.php",null,"dialogWidth:300px;dialogHeight:350px;center:1;scroll:0;help:0;status:0");
}

/*********************************************************************
*	¿ÀÇÂÀ©µµ¿ì 
*	win_open(width,height) : ¸®»çÀÌÁî (½ÇÁ¦³»¿ë¹°ÀÇ Æø + 10, ³ôÀÌ +29 ¸¦ ÇßÀ» ¶§ ³»¿ë¹°ÀÌ Ã¢Å©±â¿¡ ¸Â°Ô ³ªÅ¸³².)
*	openWindow(theURL,theName,theWidth,theHeight,theScroll) : Åø¹Ù ¾È³ª¿À´Â »õÃ¢
*********************************************************************/

function win_open(width,height) {
	restage = new resizeWin(width,height);
	restage.stayCentered();
	restage.onResize()
} 

function openWindow(theURL,theName,theWidth,theHeight,theScroll) { 
	window.open(theURL, theName,'width='+theWidth+',height='+theHeight+',marginwidth=0,marginheight=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+theScroll+',resizable=no');
}

/*********************************************************************
*	¸Þ´º È¿°ú
*********************************************************************/

function FX1px() {
	var el = event.srcElement;
	while(el.tagName != "TD")
		el = el.parentElement;
	el.style.paddingTop = "1px";
}


function DeFX1px() {
	var el = event.srcElement;
	while(el.tagName != "TD")
		el = el.parentElement;
	el.style.paddingTop = "0px";
}


/*********************************************************************
*	ÇÃ·¡½¬ È£Ãâ ½ºÅ©¸³Æ®(°øÅë¸Þ´º)
*********************************************************************/
function lf_menuLink(as_link) {
	switch (as_link) {
		case "1" :	/* ÀÎ»ç¸» */
			document.location.href="";
			break;		
			
		case "2" :	/*  */
			document.location.href="";
			break;			
			
		case "3" :	/*  */
			document.location.href="";
			break;		
			
		case "4" :	/*  */
			document.location.href="";
						break;		

		case "5" :	/*  */
			document.location.href="";
			break;	
			
			
			
	 case "6" :	/*  */
			document.location.href="";
			break;			
			
		case "7" :	/*  */
			document.location.href="";
			break;		
			
	 case "8" :	/*  */
			document.location.href="";
			break;	
			
		case "9" :	/*  */
			document.location.href="";
			break;	
			
		
		
		
		case "10" :	/*  */
			document.location.href="";
			break;	
			
 	case "11" :	/*  */
			document.location.href="";
			break;	
			
			
			
			
		case "12" :	/*  */
			document.location.href="";
			break;	
			
		case "13" :	/*  */
			document.location.href="";
			break;	
			
		case "14" :	/*  */
			document.location.href="";
			break;	
			
		case "15" :	/*  */
			document.location.href="";
			break;	
			
		case "16" :	/*  */
			document.location.href="";
			break;	
			
		case "17" :	/*  */
			document.location.href="";
			break;
			
			
			
			
		case "18" :	/* */
			document.location.href="";
			break;	
			
		case "19" :	/* */
			document.location.href="";
			break;	
			
		case "20" :	/* */
			document.location.href="";
			break;	
			
			
			
			
			
		case "21" :	/*  */
			document.location.href="";
			break;		
			
		case "22" :	/*  */
			document.location.href="";
			break;
			
	 case "23" :	/*  */
			document.location.href="";
			break;
	
	
	
	
		default	:		
			break;			
			
	}
}


