//	ウィンドウを開く
function	OpenWindow( vUrl, vTitle, vParam )
{
	var	hWnd	=	window.open( vUrl, vTitle, vParam );
	hWnd.focus();
}	// OpenWindow End


//	画像を開く
function	OpenImage( vBaseUrl, vUrl, vTitle, vParam )
{
	var	hWnd	=	window.open( "", vTitle, vParam );
	hWnd.document.open();
	hWnd.document.write( "<html>\n" );
	hWnd.document.write( "  <head>\n" );
	hWnd.document.write( "    <title>製品・サービスイメージ</title>\n" );
	hWnd.document.write( "    <base href="+vBaseUrl+">\n" );
	hWnd.document.write( "  </head>\n" );
	hWnd.document.write( "  <body bgcolor=#FFFFFF>\n" );
	hWnd.document.write( "    <form>\n" );
	hWnd.document.write( "      <input type=button value=閉じる onClick=window.close();>\n" );
	hWnd.document.write( "    </form>\n" );
	hWnd.document.write( "    <div align=center>\n" );
	hWnd.document.write( "      <img src="+vUrl+">\n" );
	hWnd.document.write( "    </div>\n" );
	hWnd.document.write( "  </body>\n" );
	hWnd.document.write( "</html>\n" );
	hWnd.document.close();
	hWnd.focus();
}	// OpenWindow End


//	カテゴリーの値を返す
function	ReturnCategory( vNForm, vNCtgryID, vNCtgry, vID, vName )
{
	window.opener.document.forms[vNForm].elements[vNCtgryID].value	=	vID;
	window.opener.document.forms[vNForm].elements[vNCtgry].value	=	vName;
	window.close();
}	//	ReturnCategory End


//	submitの確認
function	ConfirmSubmit( vMsg )
{
	if( !confirm( vMsg ) )
	{
		return	false;
	}

	return	true;
}	//	ConfirmSubmit End


