//¸ñÀû : ÆË¾÷¿­±â
//ÀÔ·Â : ÁÖ¼Ò,³Êºñ,³ôÀÌ,Å¸ÀÌÆ²¸í,¸Þ´º,½ºÅ©·Ñ,¸®»çÀÌÁî
function OpenPopup2(URL,W,H,T,M,S,R) {
	var x, y;
	var options;
	
	y = (window.screen.height-H)/2;
	x = (window.screen.width-W)/2;

	options = 'toolbar=0,location=0,directories=0,status=0,menubar=' + M + ',scrollbars=' + S + ',resizable=' + R + ',width=' + W + ',height=' + H + ',top=' + y + ',left=' + x;
	window.open(URL,T,options)		
}

//¸ñÀû : ÆË¾÷¿­±â
//ÀÔ·Â : ÁÖ¼Ò,³Êºñ,³ôÀÌ,Å¸ÀÌÆ²¸í
function OpenPopup(URL,W,H,T) {
	var x, y;
	var options;
	
	y = (window.screen.height-H)/2;
	x = (window.screen.width-W)/2;

	options = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=' + W + ',height=' + H + ',top=' + y + ',left=' + x;
	window.open(URL,T,options)		
}


//¸ñÀû : ÆË¾÷¿­±â(½ºÅ©·Ñ¾øÀ½)
//ÀÔ·Â : ÁÖ¼Ò,³Êºñ,³ôÀÌ,Å¸ÀÌÆ²¸í
function OpenPopupNoScroll(URL,W,H,T) {
	var x, y;
	var options;
	
	y = (window.screen.height-H)/2;
	x = (window.screen.width-W)/2;

	options = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=' + W + ',height=' + H + ',top=' + y + ',left=' + x;
	window.open(URL,T,options)		
}


function Logout() {
	if (confirm("·Î±×¾Æ¿ôÇÏ½Ã°Ú½À´Ï±î?")) {
		window.document.location="/include/logout.asp";
	}
}

//-----------------------------------------------------------------------------
// MS IEÆÐÄ¡¿¡ µû¸¥ ½ºÅ©¸³Æ® Ã·ºÎ
//-----------------------------------------------------------------------------


function displayObject(_obj)
{
 document.write(_obj);
 }  
 
// ÄíÅ°¿¡ IDÀúÀåÀ» À§ÇÑ ÇÔ¼ö 
 function SaveCookie(name, value, expire) {
	var eDate = new Date();
	eDate.setDate(eDate.getDate() + expire);
	document.cookie = name + "=" + value + "; expires=" +  eDate.toGMTString()+ "; path=/";
}

// ÄíÅ°¿¡ ÀúÀåÇÑ ID¸¦ °¡Á®¿À±â À§ÇÑ ÇÔ¼ö
function ReadCookie(name) {
	var label = name + "=";
	var labelLen = label.length;
	var cLen = document.cookie.length;
	var i = 0;
	
	while (i < cLen) {
	        var j = i + labelLen;
	
	        if (document.cookie.substring(i, j) == label) {
	                var cEnd = document.cookie.indexOf(";", j);
	                if (cEnd == -1) cEnd = document.cookie.length;
			return unescape(document.cookie.substring(j, cEnd));
	        }
			i++;
	    }
	  return "";
}

//Áñ°ÜÃ£±â Ãß°¡
function AddFavor() {
	
	var favoriteurl;
	var favoritetitle;

	favoriteurl = "http://www.kisreport.com";
	favoritetitle = "KIS-report";
	
	
	window.external.AddFavorite(favoriteurl,favoritetitle);
}

// ¿µ¹®»çÀÌÆ® È£Ãâ by kdw
function OpenEngSite() {

	var engWin;
	var goUrl="/eng/";
	engWin = window.open(goUrl,"eng", "location=no,directories=no,status=no,scrollbars=no,toolbar=no,menubar=no,resizable=yes,copyhistory=no,width=690,height=730");
	engWin.focus();
}

// »óÀ§°Ë»ö¾î 5°³ Ç³¼±µµ¿ò¸» Çü½ÄÀ¸·Î Ãâ·Â 
function ShowSearch()
{
    gstrMenuName = "popup03";
   
	if (document.all)
	{
		if (document.getElementById(gstrMenuName).style.display=="none")
		{
			document.getElementById(gstrMenuName).style.display="";

		}
		else
		{
			HideSearch();
		}
	}
}

// »óÀ§°Ë»ö¾î Ç³¼±µµ¿ò¸» Çü½Ä ÆË¾÷ ¼û±â±â
function HideSearch()
{
	if(gstrMenuName != "")
	{
		document.getElementById(gstrMenuName).style.display="none";
	}
}
