//--------------------------------------------------------------------
//2009.6.19. ijkim
//Knolon ExternalInterface call
//--------------------------------------------------------------------
function performLogin(ID, PW)
{
	document.login.rID.value = ID;
	document.login.Password.value = PW;
	document.login.action='/include/Login_p_KN.asp';
	document.login.submit();
	return true;
}
//--------------------------------------------------------------------
function performRegistration()
{
	window.open("/Member/AgreeMemberArticle_KN.asp", "", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=520, height=670");
	//window.open("/Member/prepare.asp", "", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=520, height=670");
}
//--------------------------------------------------------------------
function performMemberInfoChange()
{
	window.open("/Member/MemberUpdate_contents.asp", "", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, width=520, height=670");
}
//--------------------------------------------------------------------
function performMemberSecession()
{
	window.open("/Member/MemberDelete_contents.asp", "", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=520, height=280");
}
//--------------------------------------------------------------------
function performStudyBBS()
{
	window.open("/BBS/ImpressBoard/List.asp", "", "toolbar=no, location=yes, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, width=918, height=752");
}
//--------------------------------------------------------------------
function performOrder()
{
	window.open("/Order/OrderStart_KN.asp", "", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, width=544, height=688");
	//document.order.submit();
}
//--------------------------------------------------------------------
function performFindIDPW()
{
	window.open("/include/FindIDPass_KN.asp", "", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=520, height=400");
}
//--------------------------------------------------------------------
function performCoupon()
{
	window.open("/coupon/coupon.asp", "", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=406, height=259");
}
//--------------------------------------------------------------------
function thisMovie(movieName) {
	if (navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName];
	} else {
		return document[movieName];
	}
}
//--------------------------------------------------------------------
function checkOutComplete() {
	//alert("aaaa");
	thisMovie("Knolon").checkOutComplete();
}
//--------------------------------------------------------------------
function performEdutContentsOLD(folder, conName, peID)
{
	var url = "/Kidfield/" + folder + "/" + folder + "_KN.asp?PEID=" + peID;
	window.open(url, "edut_Service", "toolbar=no, location=yes, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, width=650");
}
//--------------------------------------------------------------------
function performEdutContents(folder, conName, peID, language)
{
	var url = "/Contents/kidField/" + folder + "/loader.asp?movieID=" + conName + "&PEID=" + peID  + "&Language=" + language;
	window.open(url, "edut_Service", "fullscreen=1, scrollbars=0");
}
//--------------------------------------------------------------------
function performBookContents(folder, conName, peID){
	var url = "/Contents/"+ folder + "/" + conName + "/loader.asp?movieID=" + conName + "&PEID=" + peID;
	window.open(url, "eBook_Service", "fullscreen=1, scrollbars=0");
}
//--------------------------------------------------------------------
function performEdutSampleContents(subName)
{
	var folder = "sample_edu";
	var conName = "eduSample";
	var url = "/Contents/kidField/" + folder + "/loader.asp?movieID=" + conName + "&subName=" + subName;
	window.open(url, "edut_Service", "fullscreen=1, scrollbars=0");
}
//--------------------------------------------------------------------
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 ""; 
} 


pDate = new Date();
curDate = pDate.getFullYear() + "-" + (pDate.getMonth()+1) + "-" + pDate.getDate();

// 2009 Ãß¼® ÆË¾÷
/*if (getCookie("no_knolon_chusuck") != "ok" )
{ 
	window.open("/Editable/Pop_Chusuck_knolon_2009.asp","knolon","width = 323 height = 456 top=150 left=100");
}
*/
	