/* Header
---------------------------------------------------------------*/
/*BackgroundImageCache*/
try{
  document.execCommand("BackgroundImageCache", false, true);
}catch(err) {}

/*popup*/
var commonPopupWin;
function commonPopupWin( url, size ){
	var attribute = "menubar=1,toolbar=1,status=1," + "scrollbars=1,resizable=1"; 
	if( size != "" && size > 0){
		attribute += ',width=' + size;
		var popupWin = window.open(url,'popupWin', attribute );
		popupWin.focus();
	}else{
		var popupWin = window.open(url,'popupWin' );
		popupWin.focus();
	}
}
function SubmitSearch(){
	var URL = "http://kc.kodansha.co.jp/comic/list.php/14755";
	frm = document.forms["search-web"];
	frm.act.value = "search_free_word";
	frm.action = URL;
	frm.submit();
	return false;
}
function onSubmitButtonByEnter_CommonSearch(e){
	var keynum;
	if(window.event){keynum = e.keyCode;}  // IE
	else if(e.which){keynum = e.which;}    // Netscape/Firefox/Opera
	if(keynum == 13){SubmitSearch();}
}
function onClickLogout(){
	var frm = document.forms["frm_login"];
	frm.act.value = "logout";
	frm.submit();
	return false;
}
function onClickLogin(){
	var frm = document.forms["frm_login"];
	frm.act.value = "login";
	frm.submit();
	return false;
}
function onLoginPopUp( url ){
	width=650;
	height=600
	x = (width)/2, y = (height)/2;
	if (screen)
	{
	y = (screen.availHeight - height)/2;
	x = (screen.availWidth - width)/2;
	}
	popup = window.open(url,'popupScreen','width='+width+',scrollbars=yes,height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x);
	return false;
}

/* Main Navigation
---------------------------------------------------------------*/
function navigatorWin( url, width){
	var wsize = "";
	if( width != '' && width !=0 ){wsize = "width="+width;}
	var popup = window.open( url, "popupScreen", wsize );
	popup.focus();
}


/* Footer
---------------------------------------------------------------*/
function onPopUp(){
	popup = window.open("https://kc.kodansha.co.jp/inquiry/inquiry.php", "popupScreen",
	"dialog,modal,width=620,height=600,scrollbars=yes,top=0 ,left=200,"
	+"directories=no,status=no,menubar=no,toolbar=no,resizable=no");
	return false;
}

