function WindowOpen(url,target,left,top,width,height,toolBar){
	var win;
	if( toolBar==true ){
		win = window.open(
			url,target
			,		"left=" + left + ",top=" + top + ",width=" + width + ",height=" + height
				+	",toolbar=yes,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes"
		);
	}else{
		win = window.open(
			url,target
			,		"left=" + left + ",top=" + top + ",width=" + width + ",height=" + height
				+	",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes"
		);
	}
	win.focus();
}

function WindowOpen_Base(url,target,width,height,toolBar)
{
	WindowOpen(url,target,0,0,width,height,toolBar);
}

function WindowOpen_Center(url,target,width,height,toolBar)
{
	var left = (screen.width  - width) / 2;
	var top  = (screen.height - height) / 2;
	WindowOpen(url,target,left,top,width,height,toolBar);
}

function WindowOpen_Full(url,target,toolBar)
{	
	WindowOpen(url,target,0,0,screen.width,screen.height ,toolBar);
}

function WindowMoveTo_Full()
{
	window.moveTo(0,0);
	window.resizeTo(screen.width - 8,screen.height - 64);
}

/////////////////////////////////////////////////////////
//
// 株式画面の表示
//
/////////////////////////////////////////////////////////
function Sub_Window_Kabu(url, target)
{
	var height = 710;
	var width  = 745;
	var left   = (screen.width  - width) / 2;
	var top    = (screen.height - height) / 2;

	win = window.open(
			url,target,
			"left=" + left + ",top=" + top + ",width=" + width + ",height=" + height + "," +
			"toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes"
			);
	win.focus();	
}

/////////////////////////////////////////////////////////
//
// 別画面へ遷移
//
/////////////////////////////////////////////////////////
function gotoForm(url, target)
{
	var url;
	var win;
	
	try
	{
		win = window.open(url, target);
	}

	catch (e)
	{
		win = window.open(url, "_blank");
	}
}