var CKKeyPro_CLSID="clsid:6CE20149-ABE3-462E-A1B4-5B549971AA38";	

var CKKeyPro_CODEBASE_x64= "https://www.tgcorp.com/js/CKKeyPro/CKKeyPro3015_64k.cab";
var CKKeyPro_CODEBASE_x32= "https://www.tgcorp.com/js/CKKeyPro/CKKeyPro3015_32k.cab";

var CKKeyPro_VERSION="version=3,0,1,5";

var USING_CKKeyPro = "1";

var USING_CUSTOM_IMAGE = "1"; // ÆË¾÷ÀÌ¹ÌÁö¸¦ »ç¿ëÇÏ½Ç °æ¿ì ¾Æ·¡ °æ·Î¿¡ bmp ÆÄÀÏÀ» º¹»çÇÏ½Ã°í 1·Î °ªÀ» ¹Ù²Ù¾îÁÖ¼¼¿ä

var CUSTOM_IMAGE_URL = "https://www.tgcorp.com/js/CKKeyPro/CKKeyPro_kgtg.bmp";

if (USING_CKKeyPro == "1")
{
			var Str="";

			Str+= '<object classid="' + CKKeyPro_CLSID + '"';
			if(navigator.cpuClass.toLowerCase() == "x64")
			{
				Str+= '\n\t codebase="' + CKKeyPro_CODEBASE_x64 + '#' + CKKeyPro_VERSION + '"';
			}
				else
			{
				Str+= '\n\t codebase="' + CKKeyPro_CODEBASE_x32 + '#' + CKKeyPro_VERSION + '"';
			}
			Str+= '\n\tvspace="0" hspace="0" width="0" id="CKKeyPro" style="display:none;">';
			Str+= '\n\t <PARAM name="PKI" value="simple">';
			Str+= '\n\t <PARAM name="DefaultEnc" value="Off">';
			if(USING_CUSTOM_IMAGE)
				Str+= '\n\t <PARAM name="ImageURL" value="' + CUSTOM_IMAGE_URL + '">';			
			Str+= '\n</object>';			
			
			document.write(Str);
} 
else if (navigator.appName.indexOf("Netscape")!=-1) {
		USING_CKKeyPro = "0";
		alert("ÇöÀç °í°´´Ô²²¼­´Â ¼³Ä¡ ºÒ°¡´ÉÇÑ ½Ã½ºÅÛÀ» »ç¿ëÇÏ°í °è½Ê´Ï´Ù.\n\nCKKeyPro¸¦ »ç¿ëÇÏ½Ã·Á¸é Windows 95ÀÌ»ó \n\nInternet Explorer 5.5ÀÌ»óÀÌ¾î¾ß ÇÕ´Ï´Ù.");
}



function XecureCK_UIEevents(frm,ele,event,keycode)
{
	var obj;
	var eventObj;

	try{
		obj=document.forms[frm].elements[ele];
		if( document.createEventObject )
		{
			eventObj = document.createEventObject();
			eventObj.keyCode=keycode;
			if(obj)
			{
				obj.fireEvent(event,eventObj);
			}
		}
	}
	catch(e) {}
}

/*
	Rescan the current HTML Document & protects newly added elements.
	Call this function if you are adding Input Elements through JavaScript.
*/

function XecureCK_ReScan()
{
	if(document.CKKeyPro==null || typeof(document.CKKeyPro) == "undefined" || document.CKKeyPro.object==null)
	{
		//CKKeyPro is not running in current document.
		return;
	}
	document.CKKeyPro.ReScanDocument();
}

function HaveCK()
{
	if(document.CKKeyPro==null || typeof(document.CKKeyPro) == "undefined" ||document.CKKeyPro.object==null)
		window.open("http://°­Á¦ÆäÀÌÁö°æ·Î","_top","");
	else
		return;
}

function HaveCK_EN()
{
	if(document.CKKeyPro==null || typeof(document.CKKeyPro) == "undefined")
		{
			//alert("The Anti-Keylog Program is not installed,\n\nPlease install the Anti-Keylog Program");
			window.open("http://°­Á¦ÆäÀÌÁö°æ·Î","_top","");
		}
	else
		return;
}

