//----------------------------------------------------------------------//
// 選択された検索エンジンの処理を実行する				//
//----------------------------------------------------------------------//
function select_submit( type )						//
{									//
    if (( type == 0 ) && ( document.F1.S1.selectedIndex == 0 ))		//
	return false ;							//
    else if ( document.F1.query.value == "" )				// 検索内容が未入力？
    {									//
	alert( "検索する内容を入力してください。\n" ) ;			//
	return false ; 							//
    }									//
    else								// 検索内容入力された？
    {									//
	if (( document.F1.S1.selectedIndex == 0 ) ||			// 選択してください？
	    ( document.F1.S1.selectedIndex == 1 ))			// GooGle 検索？
	{								//
	    document.F1.action = "http://www.google.co.jp/search" ;	//
	    document.F1.KEY.value = "" ;				// RAKUTEN-BOOK VALUE CLS
	}								//
	else if ( document.F1.S1.selectedIndex == 2 )			// POTATO 検索？
	{								//
	    document.F1.action = "http://mint.hokkai.net/cgi-bin/search.cgi" ; //
	    document.F1.KEY.value = "" ;				// RAKUTEN-BOOK VALUE CLS
	}								//
	else if ( document.F1.S1.selectedIndex == 3 )			// RAKUTEN-BOOK 検索？
	{								//
	    document.F1.KEY.value = document.F1.query.value ;		//
	    document.F1.action = "http://books.rakuten.co.jp/bsearch/s.cgi" ; //
	}								//
	document.F1.submit( ) ;						//
	return true ;							//
    }									//
}									//
									//
//----------------------------------------------------------------------//
// リターンキーが押された時に、現在選択された検索エンジン処理を実行する	//
//----------------------------------------------------------------------//
function returnkey_jump( )						//
{									//
    if ( window.event.keyCode == 13 )					// Enter KEY ?
	return select_submit( 1 ) ;					//
}									//
									//
//----------------------------------------------------------------------//
// ブラウザ下部(ステータスバー)に指定文字を表示／消去を行う		//
//----------------------------------------------------------------------//
function statusbar_write( string, mode )				//
{									//
    if ( mode == 1 )							// ステータスに書込み？
	status = string ;						//
    else								// ステータス文字列消去？
	status = "" ;							//
    return true ;							//
									//
}									//
