<!--

// ブックマーク追加ウィンドウハンドル
bkRegistWin = false;

// ブックマーク追加ウィンドウオープン関数
function OpenBookmarkRegistWindow(url) {

	if(!bkRegistWin || bkRegistWin.closed){
		bkRegistWin = window.open(url, 'bkRegist', 'width=660,height=650,scrollbars=yes,resizeable=no,status=no');
	}
	else{
		bkRegistWin.focus();
		bkRegistWin.location.href = url;
	}
}

// ブックマーク削除ウィンドウハンドル
bkDeleteWin = false;

// ブックマーク削除ウィンドウオープン画面
function OpenBookmarkDeleteWindow(url) {
	if(!bkDeleteWin || bkDeleteWin.closed){
		bkDeleteWin = window.open(url,'bkDelete', 'width=560,height=450,scrollbars=yes,resizeable=no,status=no');
	}else{
		bkDeleteWin.focus();
		bkDeleteWin.location.href = url;
	}
}
		
// ブックマーク一覧ウィンドウオープン関数
function OpenBookmarkListWindow(url) {
	var bkListWin = window.open(url,'bkList');
	
	bkListWin.focus();
	window.self.close();
}

// ブックマーク一覧ウィンドウオープン関数
function OpenNewWindow(url,closed) {
	var newWindow = window.open(url);
	
	newWindow.focus();
	
	if (closed) {
		window.self.close();
	}
}

// ポップアップウィンドウクローズ関数
function CloseSelfWindow() {
	if (window.opener && !window.opener.closed) {
		window.opener.location.reload(true);
	}
	
	window.self.close();
}


// 追加ウィンドウハンドル
hwRegistWin = false;

// 一時保存追加ウィンドウオープン関数
function OpenHalfwayRegistWindow(url) {

	if(!hwRegistWin || hwRegistWin.closed){
		hwRegistWin = window.open(url, 'hwRegist', 'width=660,height=500,scrollbars=yes,resizeable=no,status=no,');
	}
	else{
		hwRegistWin.focus();
		hwRegistWin.location.href = url;
	}
}

// 一時保存追加削除ウィンドウハンドル
hwDeleteWin = false;

// 一時保存追加削除ウィンドウオープン画面
function OpenHalfwayDeleteWindow(url) {
	if(!hwDeleteWin || hwDeleteWin.closed){
		hwDeleteWin = window.open(url,'hwDelete', 'width=660,height=500,scrollbars=no,resizeable=no,status=no,');
	}else{
		hwDeleteWin.focus();
		hwDeleteWin.location.href = url;
	}
}


// 一時保存案件詳細ウィンドウハンドル
hwDetailWin = false;

// 一時保存追加削除ウィンドウオープン画面
function OpenHalfwayDetailWindow(url) {
	if(!hwDetailWin || hwDetailWin.closed){
		//hwDetailWin = window.open(url,'hwDetail', 'width=660,height=550,scrollbars=yes,resizeable=no,status=no,');
		hwDetailWin = window.open(url,'hwDetail');
	}else{
		hwDetailWin.focus();
		hwDetailWin.location.href = url;
	}
}
		
// 一時保存追加一覧ウィンドウオープン関数
function OpenHalfwayListWindow(url) {
	var hwListWin = window.open(url,'hwList');
	
	hwListWin.focus();
	window.self.close();
}

// 一時保存削除確認画面「はい」ボタンクリック処理
function OpenReloadWindow(url)
{
	if( opener.closed )
	{
		NewWin = window.open( "" , "NewWindow" );
		NewWin.location.href = url;
	}
	else
	{
		opener.location.href = url;
		window.self.close();
	}
}

// セミナー詳細ウィンドウハンドル
hwSeminarSearchWin = false;

// セミナー検索ウィンドウハンドル
function OpenSeminarSearchWindow(url) {
	if(!hwSeminarSearchWin || hwSeminarSearchWin.closed){
		//BR50SIR0000 2006/11/8 Ayano Komatsu MODIFY Start
//		hwSeminarSearchWin = window.open(url,'hwSeminarSearch', 'width=550,height=450,scrollbars=yes,resizeable=no,status=no');
		hwSeminarSearchWin = window.open(url,'hwSeminarSearch', 'width=560,height=500,scrollbars=yes,resizeable=no,status=no');
		//BR50SIR0000 2006/11/1 Ayano Komatsu MODIFY End
	}else{
		hwSeminarSearchWin.focus();
		hwSeminarSearchWin.location.href = url;
	}
}


// セミナー詳細ウィンドウオープン画面
function OpenSeminarDetailWindow(url) 
	{
		window.open( url, 'OpenSeminarDetail');
	}

	// タイムアウト処理
	function redirect()
	{
		setTimeout('replace()', 5000);
	}

	// ログイン画面遷移
	function replace()
	{
		document.location.href="http://doda.jp/";
	}

	// ヘルプ画面起動処理	
	function window_open_help(where){
		window_open(where, 510, 320);
	}

	// 自動ログインヘルプ画面起動処理
	function window_open_autologin_help(where){

		if(!fwin || fwin.closed){
			window.open(where, 'flow', 'width=660,height=350,scrollbars=yes,resizeable=yes,status=no');
		}
		else{
			fwin.focus();
			fwin.location.href = where;
		}
	}

	/*************************************
	* 画面幅、高さを設定した画面表示処理
	**************************************/
	fwin = false;
	function window_open(where,width,height){
		if(!fwin || fwin.closed){
			fwin = window.open(where,'flow','width=' + width + ',height=' + height + ',scrollbars=yes,resizeable=no,status=no,top=10,left=10');
			fwin.focus();
		}
		else{
			fwin.focus();
			fwin.location.href = where;
		}
	}
	
	function window_open_noscrollbars(where,width,height){
		if(!fwin || fwin.closed){
			fwin = window.open(where,'flow','width=' + width + ',height=' + height + ',scrollbars=no,resizeable=no,status=no,top=10,left=10');
			fwin.focus();
		}
		else{
			fwin.focus();
			fwin.location.href = where;
		}
	}
	
	// BRLIVSIR5351 ADD 2008/02/05 Tadaichiro Nakano Start
	function window_open_noscrollbars_avoid_popup(where,width,height,name){
		if(!fwin || fwin.closed){
			fwin = window.open(where,name,'width=' + width + ',height=' + height + ',scrollbars=no,resizeable=no,status=no,top=10,left=10');
			fwin.focus();
		}
		else{
			fwin.focus();
		}
	}
	// BRLIVSIR5351 ADD 2008/02/05 Tadaichiro Nakano End
	
	// BRLIVSIR5351 ADD 2008/02/18 Eiki Kudaka Start
	function window_open_popup_login_avoid_popup(where,width,height,name){
		if(!fwin || fwin.closed){
			fwin = window.open(where,name,'width=' + width + ',height=' + height + ',scrollbars=yes,resizeable=no,status=no,top=10,left=10');
			fwin.focus();
		}
		else{
			fwin.focus();
		}
	}
	// BRLIVSIR5351 ADD 2008/02/18 Eiki Kudaka End
	
	// BRLIVSIR5351 ADD 2009/01/07 yiwano Start
	function window_open_popup_avoid_popup_nofwin(where,width,height,name){
		var tempwin = window.open(where,name,'width=' + width + ',height=' + height + ',scrollbars=yes,resizeable=no,status=no,top=10,left=10');
		tempwin.focus();
		
		if(fwin == tempwin)
		{
			fwin = false;
		}
	}
	// BRLIVSIR5351 ADD 2009/01/07 yiwano End
	
	// BR50SIR0905 ADD 2006/12/01 Tomoki Okazaki Start
	/*****************************************
	*ログインポップアップで使用する 
	*ポップアップウィンドウオープン画面
	******************************************/
	function window_open_popup_login(where,width,height){
		if(!fwin || fwin.closed){
			fwin = window.open(where,'popup_login','width=' + width + ',height=' + height + ',scrollbars=yes,resizeable=no,status=no,top=10,left=10');
			fwin.focus();
		}
		else{
			fwin.focus();
			fwin.location.href = where;
		}

	}		
	// BR50SIR0905 ADD 2006/12/01 Tomoki Okazaki End
	
	/*****************************************
	*求人詳細画面で使用する 
	*ポップアップウィンドウオープン画面
	******************************************/
	function window_open_job(where, winName){
		// BR51SIR0408 MODIFY 2007/08/22 Masaru Kato Start
		window.open(where,winName).focus();
		// BR51SIR0408 MODIFY 2007/08/22 Masaru Kato End
	}
	
	/*************************************
	* Defaultボタンを無効に設定する。
	* 1.event ：event
	* 2.target：デフォルトボタンに設定したいボタン名
	**************************************/
	var __notIE = (window.navigator.appName.toLowerCase().indexOf('explorer') == -1);
	var __defaultFired = false;
	function FireDefaultButton(event, target) {
		if (!__defaultFired &&
			 event.keyCode == 13 &&
			 event.srcElement.type != "textarea" &&
			 event.srcElement.type != "submit" &&
			 event.srcElement.type != "image") {
			var defaultButton;
			if (__notIE) {
				defaultButton = document.getElementById(target);
			}
			else {
				defaultButton = document.all[target];
			}
			if (defaultButton.click != undefined) {
				__defaultFired = true;
				defaultButton.click();
				event.cancelBubble = true;
				return false;
			}
		}
		return true;
	}
	
	/*************************************
	* 求人詳細画面で使用
	* 親ウィンドウを再表示させて、親ウィンドウで画面遷移させる
	**************************************/
	function Reload_Opener(path) {	
		if(document.location.search.indexOf('scoutlist_id') != -1)
		{
			window.self.location.href = path;		
		}
		else
		{
			if (isOpenerTransition()) {
				// 親ウィンドウが存在している場合は、親ウィンドウを画面遷移させる
				// BR60SIR1287 ADD 2007/10/26 Start by Yuichiro Mori
				window.opener.top.location.href = path;
				// BR60SIR1287 ADD 2007/10/26 End by Yuichiro Mori
				window.opener.focus();	
			} else {
				// 親ウィンドウが存在していない場合は、自分自身を画面遷移させる
				window.self.location.href = path;
			}
		}
	}

	/*************************************
	* 求人詳細画面で使用
	* 親ウィンドウを遷移させるか判定
	**************************************/
	function isOpenerTransition() {
		// Netscapeの場合
		if (navigator.userAgent.indexOf("Gecko") > -1) {
			// 親ウィンドウが存在している場合は、親ウィンドウを画面遷移させる
			try
			{
				if( window.opener && window.opener.location.href.indexOf('MyPageSatelliteArea.aspx') == -1 && window.opener.location.href.indexOf('BannerCreateCall.aspx') == -1 )
				{
					return window.opener;
				}
				else
				{
					return false;
				}
			}
			catch(e)
			{
				return false;
			}
		}
		// MacのIEは親ウィンドウを扱えないので、falseに固定
		if (navigator.userAgent.indexOf("Mac") > -1) {
			return false;
		}
		// WindowsのIEの場合
		// 親ウィンドウが存在している場合は、親ウィンドウを画面遷移させる
		try
		{
			if( window.opener && window.opener.location.href.indexOf('MyPageSatelliteArea.aspx') == -1 && window.opener.location.href.indexOf('BannerCreateCall.aspx') == -1 )
			{
				return !window.opener.closed;
			}
			else
			{
				return false;
			}
		}
		catch(e)
		{
			return false;
		}
	}
-->
