
function GoCmps(){

	// 空値チェック
	if (document.SrchCmps.CmpsKey.value == ""){
		alert("大学名を入力してください。");
		document.SrchCmps.CmpsKey.focus();
		return;
	}


	var  blnGetSend	   // GETでデータ送信するか判断するフラグ

	// ブラウザ判定（ "IE"  or  "FireFox"  or  "Other" ）
	if( window.ActiveXObject ){
		// IE
		try {
			// MSXML2（IE6.0〜）
			blnGetSend = 1;
		} catch( e ){
 			try {
				// MSXML（IE5.0）
				blnGetSend = 1;
			} catch(oc) {
				// Other
				blnGetSend = 0;
			}
		}
	} else if( window.XMLHttpRequest ) {
		// Firefox
		blnGetSend = 0;
	} else {
		// Other
		blnGetSend = 0;
	}

	// 新しいウィンドウを開く
	if ( blnGetSend == 1 ) {
		// IE5.0〜7.0等の「XMLHttpRequest」をサポートしないブラウザは、
		// 新しいウィンドウを開く際に、SelCmps.aspにGETでデータ（検索文字列、SrhKbn、UseKbn）を送信し、検索結果を表示する。

		var winmap = window.open( "../map_search/SelCmps.asp?UseKbn=0&SrhKbn=13&CmpsKey=" + document.SrchCmps.CmpsKey.value, "SelCmps", "width=1000,height=700,scrollbars=yes,resizable=yes,toolbar=no,status=no,left=5,top=5" )
		winmap.focus();
	} else {
		// FireFox等の「XMLHttpRequest」をサポートするブラウザは、
		// 新しいウィンドウを開いた後に、SelCmps.aspにPOSTでデータ（検索文字列、SrhKbn、UseKbn）を送信し、検索結果を表示する。

		var winmap = window.open( "../map_search/SelCmps.asp", "SelCmps", "width=1000,height=700,scrollbars=yes,resizable=yes,toolbar=no,status=no,left=5,top=5" )
		winmap.focus();
		document.SrchCmps.submit();
	}

}

