﻿	function doOpenTateya(){
		//document.all.open.style.display			= 'none';
		//document.all.New_Tateya.style.display	= 'block';
		document.getElementById("mot").style.display			= 'none';
		document.getElementById("New_Tateya").style.display		= 'block';
	}

	function doCloseTateya(){
		document.getElementById("mot").style.display			= 'block';
		document.getElementById("New_Tateya").style.display		= 'none';
	}


	function doDispArea(){
		if( document.Frm_Kaigi.Cmb_Pref.value == '011' ){
			document.getElementById("Tokyo_Area").style.display	= 'block';
		} else {
			document.Frm_Kaigi.Cmb_Area.selectedIndex	= 0;
			document.getElementById("Tokyo_Area").style.display	= 'none';

		}
	}

	//マップを表示
	function open_map(pt_map_name) {
		var map_win;

		map_win=window.open(pt_map_name + ".asp","","height=640,width=640,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=yes");
		map_win.focus();
	}

	//レンタルオフィスバナーへ
	function ToRental(){
		window.open('http://www.rental-o.com/asp/Counter.asp','_other','');
	}

	//2007-11-16 K.hirose 追加
	//IT企業データバンクバナーへ
	function ToItkigyo(){
		window.open('http://www.it-databank.com/','_other','');
	}

	//お問い合わせ画面へ
	function ToInquiry(){
		window.open('https://www.kaigishitu.com/asp/inquiry_input.asp','INQUIRY','width=657,status=no,scrollbars=yes,directories=no,menubar=no,resizable=yes,toolbar=no');
	}

	//カウンタ
	function onLoad(){
		if( document.Frm_Kaigi.Cmb_Pref.value == '011' ){
			document.getElementById("Tokyo_Area").style.display	= 'block';
		} else {
			document.Frm_Kaigi.Cmb_Area.selectedIndex	= 0;
			document.getElementById("Tokyo_Area").style.display	= 'none';
		}

		if((window.event+"") == "undefined"){
			function emu_event(e){
				this.x=e.clientX;
				this.y=e.clientY;
			}
			var events=["mousedown","mouseover","mouseout", "mousemove","mousedrag","click","dblclick"]; 
			for(var i=0;i<events.length;i++){ 
				window.addEventListener(events[i], function(e){window.event = new emu_event(e);}, true); 
		    }
		}
	}

	// OS名の取得
	function doOsName(){
		var Lt_User_Data;		// ユーザー情報
		var Lt_Os;				// OSの種類

		// ユーザー情報取得
		Lt_User_Data = navigator.userAgent;

		// OSの種類設定
		if(Lt_User_Data.indexOf("Windows NT 6.0") >= 0){
			Lt_Os	=	"Windows Vista";
		} else if(Lt_User_Data.indexOf("Win NT 6.0") >= 0){
			Lt_Os	=	"Windows Vista";
		} else if(Lt_User_Data.indexOf("Windows NT 5.2") >= 0){
			Lt_Os	=	"Windows Server 2003";
		} else if(Lt_User_Data.indexOf("Win NT 5.2") >= 0){
			Lt_Os	=	"Windows Server 2003";
		} else if(Lt_User_Data.indexOf("Windows NT 5.1") >= 0){
			Lt_Os	=	"WindowsXP";
		} else if(Lt_User_Data.indexOf("Win NT 5.1") >= 0){
			Lt_Os	=	"WindowsXP";
		} else if(Lt_User_Data.indexOf("Windows NT 5.0") >= 0){
			Lt_Os	=	"Windows2000";
		} else if(Lt_User_Data.indexOf("Win NT 5.0") >= 0){
			Lt_Os	=	"Windows2000";
		} else if(Lt_User_Data.indexOf("Windows NT") >= 0){
			Lt_Os	=	"WindowsNT";
		} else if(Lt_User_Data.indexOf("Win NT") >= 0){
			Lt_Os	=	"WindowsNT";
		} else if(Lt_User_Data.indexOf("Windows 9x 4.90") >= 0){
			Lt_Os	=	"WindowsMe";
		} else if(Lt_User_Data.indexOf("Win 9x 4.90") >= 0){
			Lt_Os	=	"WindowsMe";
		} else if(Lt_User_Data.indexOf("Windows 98") >= 0){
			Lt_Os	=	"Windows98";
		} else if(Lt_User_Data.indexOf("Win 98") >= 0){
			Lt_Os	=	"Windows98";
		} else if(Lt_User_Data.indexOf("Windows 95") >= 0){
			Lt_Os	=	"Windows95";
		} else if(Lt_User_Data.indexOf("Win 95") >= 0){
			Lt_Os	=	"Windows95";
		} else if(Lt_User_Data.indexOf("Windows CE") >= 0){
			Lt_Os	=	"WindowsCE";
		} else if(Lt_User_Data.indexOf("Mac") >= 0){
			Lt_Os	=	"Macintosh";
		} else if(Lt_User_Data.indexOf("Linux") >= 0){
			Lt_Os	=	"Linux";  
		} else if(Lt_User_Data.indexOf("Sun") >= 0){
			Lt_Os	=	"SunOS";  
		} else {
			Lt_Os	=	"その他";  
		}

		// OS名を返す
		return Lt_Os;
	}

	// ブラウザ名の取得
	function doBrowserNm(){
		var Lt_User_Data;		// ユーザー情報
		var Lt_Nm;				// ブラウザの名前
		var Lt_Ver;				// ブラウザのバージョン
		var Lt_Start;			// 検索文字位置の開始位置
		var Lt_End;				// 検索文字位置の終了位置
		var Lt_Flg;				// 処理フラグ
								// 'FIND'	検索文字列が見つかった場合
		// ユーザー情報取得
		Lt_User_Data	=	navigator.userAgent;

		//Lt_User_Dataに文字列Operaが入っていた場合（Opera)の処理
		if (Lt_User_Data.match(/Opera[\/\s](\d\.\d+)/)) {
			Lt_Nm	="Opera " + RegExp.$1;

		//Lt_User_Dataに文字列MSIEが入っていた場合（IE)の処理。
		//Operaにも文字列MSIEが入っているため、Operaの処理の後に行います。
		} else if (Lt_User_Data.match(/MSIE (\d\.\d+)/)) {
			Lt_Nm	="Internet Explorer " + RegExp.$1;

		//Lt_User_Dataに文字列Mozillaに続いて4が入っていた場合（NetscapeComunicator4)の処理。
		} else if (Lt_User_Data.match(/Mozilla\/(4\.[5678]\d?)/)) {
			Lt_Nm	="Netscape Communicator " + RegExp.$1;

		//Lt_User_Dataに文字列Netscape6が入っていた場合（Netscape6）の処理。
		} else if (Lt_User_Data.match(/Netscape6?\/([\.\d]+)/)) {
			Lt_Nm	="Netscape " + RegExp.$1;

		//Lt_User_Dataに文字列Netscape7が入っていた場合（Netscape7）の処理。
		} else if (Lt_User_Data.match(/Netscape\/(7[\.\d]+)/)){
			Lt_Nm	=	"Netscape"+RegExp.$1; //Netscape7

		}else if (Lt_User_Data.match(/Safari\/([\.\d]+)/)) {
			Lt_Nm	=	"Safari " + RegExp.$1;

		} else if (Lt_User_Data.match(/Gecko/)) {
			if (Lt_User_Data.match(/(Firebird|Firefox)\/([\.\d]+)/)) {
				Lt_Nm	=	"Mozilla " + RegExp.$1 + " " + RegExp.$2;
			} else if (Lt_User_Data.match(/Thunderbird\/([\.\d]+)/)) {
				Lt_Nm	=	"Mozilla Thunderbird " + RegExp.$1;
			} else if (Lt_User_Data.match(/rv:([\.\d]+)/)) {
				Lt_Nm	=	"Mozilla " + RegExp.$1;
			} else {
				Lt_Nm	=	"Mozilla";
			}

		//上記以外の処理
		} else {
			Lt_Nm	=	navigator.appName; //それ以外のブラウザ
		}

		// ブラウザ情報設定
		return	Lt_Nm;
	}