//------------------------------------
//最新情報を開く
//------------------------------------
function openwin_new(url){
	var uAgent  = navigator.userAgent.toUpperCase();
	var aName  = navigator.appName.toUpperCase();
	var uName = navigator.userAgent.toUpperCase();
	var WO1;
	
	if (uAgent.indexOf("MAC") >= 0){
		if (uName.indexOf("SAFARI") >= 0){
			WO1=window.open(url,'new','scrollbars=1,width=575,height=580,top=20,left=20');
		} else if (aName.indexOf("NETSCAPE") >= 0){
			WO1=window.open(url,'new','scrollbars=1,width=578,height=580,top=20,left=20');
		} else {
			WO1=window.open(url,'new','scrollbars=1,width=558,height=580,top=20,left=20');
		}
	} else {
		if (aName.indexOf("NETSCAPE") >= 0){
			WO1=window.open(url,'new','scrollbars=1,width=575,height=580,top=20,left=20');
		} else {
			WO1=window.open(url,'new','scrollbars=1,width=577,height=580,top=20,left=20');
		}
	}
	WO1.focus();
}

//------------------------------------
//問い合わせフォームを開く
//------------------------------------

function OpenWin2(){
	win=window.open("https://www.nhk.or.jp/kaigai/form/webmail.html","contact","toolbar=yes,status=yes,scrollbars=yes,width=560,height=500");
}

//------------------------------------
//すべての韓ドラからポップアップを開く
//------------------------------------
function openwin_kokuchi09(){	//美しき日々コンサート放送告知バージョン2
	var WO9;
	WO9=window.open('../beautiful_days/popup06/index.html','newWin09','scrollbars=0,width=600,height=480,top=20,left=20,resizable=1');
	WO9.focus();
}

//------------------------------------
//BS編成変更告知ポップアップを開く
//------------------------------------
function openWinHenseiOld(){
	var uAgent  = navigator.userAgent.toUpperCase();
	var aName  = navigator.appName.toUpperCase();
	var W10;
	if ((uAgent.indexOf("MAC") >= 0) && (aName.indexOf("MICROSOFT") >= 0) ){
		W10=window.open('../popup_hensei/index.html','hensei','scrollbars=0,width=584,height=450,top=20,left=20,resizable=1,scrollbars=1');
	} else {
		W10=window.open('../popup_hensei/index.html','hensei','scrollbars=0,width=600,height=450,top=20,left=20,resizable=1,scrollbars=0');
	}
	W10.focus();
}

function openWinHenseiN(){
	var uAgent  = navigator.userAgent.toUpperCase();
	var aName  = navigator.appName.toUpperCase();
	var W10;
	if ((uAgent.indexOf("MAC") >= 0) && (aName.indexOf("MICROSOFT") >= 0) ){
		W10=window.open('../popup_hensei/index_natsukashi.html','hensei','scrollbars=0,width=600,height=480,top=20,left=20,resizable=1,scrollbars=1');
	} else {
		W10=window.open('../popup_hensei/index_natsukashi.html','hensei','scrollbars=0,width=619,height=580,top=20,left=20,resizable=1,scrollbars=1');
	}
	W10.focus();
}

//------------------------------------
//BS2夏期放送休止対応ポップアップ
//------------------------------------
function openWinHenseiBS2(){
	W10=window.open('../hensei/popup02/index.html','hensei','scrollbars=0,width=490,height=390,top=20,left=20,scrollbars=0');
	W10.focus();
}

//------------------------------------
//お正月放送休止対応ポップアップ
//------------------------------------
function openWinHnsi0801(){
	var w = screen.width;
	var windowPosition = w-530;
	W10=window.open('http://www.nhk.or.jp/kaigai/hensei/popup03/index.html','hnsi0801','scrollbars=0,width=510,height=400,top=20,left='+windowPosition+',scrollbars=1');
	W10.focus();
}

//------------------------------------
//編成情報ポップアップ
//------------------------------------
function openWinHensei(url){
	var w = screen.width;
	var windowPosition = w-340;
	var WO;
	WO=window.open(url,'henseiWin','width=300,height=180,top=20,left='+windowPosition+',scrollbars=0,resizable=1,status=0;');
	WO.focus();
}

//------------------------------------
//予告ムービーポップアップ
//------------------------------------
function openWinMovie(url){
	var w = screen.width;
	var windowPosition = w-560;
	var WO;
	WO=window.open(url,'movieWin','width=540,height=450,top=20,left='+windowPosition+',scrollbars=0,resizable=0,status=0;');
	WO.focus();
}

function openWinMovie43(url){
	var w = screen.width;
	var windowPosition = w-560;
	var WO;
	WO=window.open(url,'movieWin','width=540,height=540,top=20,left='+windowPosition+',scrollbars=0,resizable=0,status=0;');
	WO.focus();
}


//------------------------------------
//太王四神記BShi-総合 相互ポップアップ
//------------------------------------
function openWinAlart(){
	var w = 640;
	var w10 = w+20;
	var h = 410;
	var x = (screen.width - w) / 2;
	var y = ((screen.height - h) / 2)+40;
	var uAgent  = navigator.userAgent.toUpperCase();
	var WO;
	if (uAgent.indexOf("MAC") >= 0){
		WO=window.open('alartwin/index.html','alartWin','width='+w+',height='+h+',top='+y+',left='+x+',scrollbars=0,status=1');
	} else {
		WO=window.open('alartwin/index.html','alartWin','width='+w+',height='+h+',top='+y+',left='+x+',scrollbars=0,status=1');
	}
	WO.focus();
}

//------------------------------------
//太王四神記再放送ポップアップ
//------------------------------------
function openWinRerunTaio(url){
	var w = 580;
	var h = 370;
	var x = (screen.width - w) / 2;
	var y = (screen.height - h) / 2;
	var WO;
	WO=window.open(url,'rerunWin','width='+w+',height='+h+',top=10,left='+x+',scrollbars=0,status=1');
	WO.focus();
}


//------------------------------------
//ケータイサイトのご案内ポップアップ
//------------------------------------
function openWinMobile(){
	W10=window.open('popup_mobile/index.html','mobile','width=640,height=520,top=20,left=20,scrollbars=0,status=1');
	W10.focus();
}

//------------------------------------
//ベティIP制限プレマップポップアップ
//------------------------------------
function openWinBetty(){
	W10=window.open('../movie/index.html','mobile','width=540,height=500,top=20,left=20,scrollbars=0,status=1');
	W10.focus();
}