function openNoStyleWin(tURL, tName){

	var uAgent  = navigator.userAgent.toUpperCase();

	var aName  = navigator.appName.toUpperCase();

	if((uAgent.indexOf("MAC") >= 0) && (aName.indexOf("MICROSOFT") >= 0)){

		wHdl = window.open(tURL, tName,"location=yes,menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=yes");

	}else{

		wHdl = window.open(tURL, tName);

	}

	wHdl.focus();

}

function popupwin(tgturl, winname, winwidth, winheight, winscroll, winresize, xpos, ypos) {
	if (xpos == 'center') {
		xpos = (screen.width - winwidth) / 2;
	}
	if (ypos =='center') {
		ypos = (screen.height - winheight) / 2;
	}
	winoption = "left="+xpos+",top="+ypos+",width="+winwidth+",height="+winheight+",scrollbars="+winscroll+",resizable="+winresize;
	subwin = window.open(tgturl, winname, winoption);
}

function openWin(tURL, tWidth, tHeight, tName){
	var a;
	a = window.open(tURL, tName, "location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no,width=" + tWidth + ",height=" + tHeight);
	a.focus();
	void(0);
}

function openWin2(tURL, tWidth, tHeight, tName){
	var a;
	var x;
	var y;
	x = self.screenLeft + (self.document.body.clientWidth - 1000)/2 + 660; 
	y = self.screenTop + 70; 
	a = window.open(tURL, tName, "location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no,width=" + tWidth + ",height=" + tHeight + ",left=" + x + ",top=" + y);
	a.moveTo(x, y);
	a.focus();
	void(0);
}

function openMovwin(movPath){
		var W_w = 480;
		var H_h = 292;
		var txtes = "http://www.fujitv.co.jp/movie/player/playerJ.html?";
		txtes += movPath;
		txtes += "&type=flv";
		
		window.open(txtes,"mov",'location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no,fullscreen=no,directories=no,width=' + W_w + ",height=" + H_h + ",top=" + ((document.getElementById) ? (screen.height / 2) - (H_h / 2) : 0) + ",left=" + ((document.getElementById) ? (screen.width / 2) - (W_w / 2) : 0));
}

function openMovwin2(movPath){
		var W_w = 490;
		var H_h = 297;
		var txtes = "http://www.fujitv.co.jp/movie/player/playerJ.html?";
		txtes += movPath;
		txtes += "&type=flv";
		
		window.open(txtes,"mov",'location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no,fullscreen=no,directories=no,width=' + W_w + ",height=" + H_h + ",top=" + ((document.getElementById) ? (screen.height / 2) - (H_h / 2) : 0) + ",left=" + ((document.getElementById) ? (screen.width / 2) - (W_w / 2) : 0));
}
