/**
 * HitTours site
 * Package_Domestic_Search javascript
 *
 * Noriko Shimazaki
 * 2007/12/23(Sun.)
 */
	var	document_root;
	var	pageURL;

	/**
	 * load時の処理
	 */
	function initialize() {
		// ドキュメントルートを取得（開発処置）
		document_root = getDocumentRoot();
		pageURL = document_root + '/package/domestic/tour/';

		/**
		 * Eventハンドラ追加
		 */
		// Clickイベント
		Event.observe( $( 'btn_search' ), 'click', function(){ sendForm();  }, false );

		// 画像の入れ替え
		new Image().src = document_root + '/images/button/toursearch1r.gif';
		pageEffect = new PageEffect();
		pageEffect.imageRollOver( $( 'btn_search' ), document_root + '/images/button/toursearch1r.gif', document_root + '/images/button/toursearch1.gif' );
	}

	/**
	 * SendForm
	 */
	 function sendForm()	{
		var dm_m_prefecture_id = $( 'dm_m_prefecture_id' ).value;

		if( dm_m_prefecture_id < 1 )	{
			alert( '目的地を選択してください' );
			return false;
		}

		 $( 'frm_condition' ).submit();
	 }

	/**
	 * load時のイベントハンドラをセットする
	 */
	Event.observe( window, 'load', initialize, false );


