function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function checkLogin() { //v2.0
  window.open("about:blank","popup_user_login","width=0,height=0");
  
  var	loginForm	= document.loginForm;

	loginForm.target	= "popup_user_login";
	loginForm.action	= "/membership/prcs_logn.jsp";
	loginForm.submit();
}

function checkConfirm2() { //v2.0
  window.open("/process_login.jsp?caller=main2","popup_user_login","width=360,height=200");
}

function preListenRingtone(cid,poly) { //v2.0
  window.open("/popup/popup_prelisten.jsp?cid=" + cid + "&poly=" + poly,"prelisten_window",'width=150,height=123');
}

function buyRingtone(cid,poly) { //v2.0
  window.open("/popup/popup_buy_ringtone.jsp?cid=" + cid + "&poly=" + poly,"buy_ringtone_window",'width=560,height=650');
}

function presentRingtone(cid,poly) { //v2.0
//  window.open("/popup/popup_present_ringtone.jsp?cid=" + cid + "&poly=" + poly,"present_ringtone_window",'width=560,height=650');
}

function wishRingtone(cid,poly) { //v2.0
//  window.open("/popup_wish_ringtone.jsp?cid=" + cid + "&poly=" + poly,"wish_ringtone_window",'width=560,height=650');
}

function buyGraphic(cid) { //v2.0
  window.open("/popup/popup_buy_graphic.jsp?cid=" + cid,"buy_graphic_window",'width=560,height=650');
}

function presentGraphic(cid) { //v2.0
//  window.open("/popup/popup_present_graphic.jsp?cid=" + cid,"present_graphic_window",'width=560,height=650');
}

function wishGraphic(cid) { //v2.0
//  window.open("/popup/popup_wish_graphic.jsp?cid=" + cid,"wish_graphic_window",'width=560,height=650');
}

function buyGame(cid) { //v2.0
  window.open("/popup/popup_buy_game.jsp?cid=" + cid,"buy_game_window",'width=560,height=650');
}

function saveToDownloadBox(cid, category1_code) { //v2.0
  window.open("/popup/popup_save_content.jsp?cid=" + cid + "&category1_code=" + category1_code,"save_content_window",'width=360,height=200');
}

function goDownloadFaqOpener() {
	opener.document.location.href = "/general/x_faqq_list_download.jsp";
}

function openForgetId() {
	MM_openBrWindow('/membership/popp_fogt_id.jsp','popup_forget_id','width=370,height=280');
}

function openForgetPw() {
	MM_openBrWindow('/membership/popp_fogt_pswd.jsp','popup_forget_password','width=370,height=280');
}
function ActiveX(object){
	document.write(object.text);
}

//KIC Notice for servive unavailable

	/**
	function openNotice() {		
			var notice_pop = window.open("/maintenance_jp.jsp","notice_pop","width=370,height=360,menubars=no,toolbars=no,scrollbars=yes");		
    }

	openNotice();
	**/

