	//開啟程式視窗,進入程式(以傳入的字串當作該視窗名稱)
	
	function checkBrowser() {
		
		if ( document.ag==null || document.ag.einit!=1 || document.ag.setroom(room)==0  ) {
			i= navigator.appVersion.indexOf('MSIE');
			if (navigator.appVersion.indexOf('MSIE') == -1 ||  parseFloat(navigator.appVersion.toString().substring(i+4,i+8)) < 5.5) 	{
				alert("此系統必需是IE的瀏灠器 5.5 以上的版本才可使用");
				return false;
			}
   
			if (!navigator.javaEnabled())   {
				alert("瀏覽器必需Java Enabled");
				return false;
			}
		}
		return true;
	}

	function bye()	{
		clearInterval(tid);
	}
	
	var w = null;
	function start(winname) {
		if (w != null) w.close();
		//開全螢幕的屬性
		//w = open(url,"fubon",'fullscreen=1,left=1 top=1 width=0 height=0 scrollbars=1 resizable=1 menubar=1');
		if (checkBrowser()){
			str=',scrollbars=no,status=yes,fullscreen=0,menubar=0,screenX=0,screenY=0,Left=0,Top=0';
			//str=',screenX=0,screenY=0,Left='+(screen.Width-screen.availWidth)+',Top='+(screen.Height-screen.availHeight);
			w = open("",winname,'resizable=no,width='+(screen.availWidth-10)+',height='+(screen.availHeight-50)+' '+str);
			document.openform.submit();
		}
	}
	
