function menu_home() {	
	location.href = _Web_Url + '/index.php/web/index/';
}
//公司簡介
function menu_about() {	
	location.href =_Web_Url + '/index.php/web/about/';
}
//產品系列
function menu_service() {	
	location.href =_Web_Url + '/index.php/web/service/';
}
//我要訂購
function menu_products() {	
	location.href =_Web_Url + '/index.php/web/products/';
}
//最新消息
function menu_news() {	
	location.href =_Web_Url + '/index.php/web/news/';
}
//聯絡我們
function menu_contact() {	
	location.href =_Web_Url + '/index.php/web/contact/';
}
//留言版
function menu_guestbook() {	
	location.href =_Web_Url + '/index.php/web/guestbook/';
}
//線上訂房
function menu006() {	
	var xmlhttp;
	if (window.XMLHttpRequest) {
		xmlhttp = new XMLHttpRequest();
	}else if (window.ActiveXObject) {
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
	var url;
	url = _Web_Url + '/index.php/web/check/' + new Date().getTime();
	xmlhttp.onreadystatechange=function()
		{
			if (xmlhttp.readyState == 4){
				if (xmlhttp.status == 200) {
					if (xmlhttp.responseText==0){
						window.location = _Web_Url+'/index.php/web/membership/';
					}else{
						window.open( _Web_Url +'/index.php/web/line_date/','newWin','width=658,height=800,toolbar=No,location=No,scrollbars=Yes,status=No,resizable=Yes,fullscreen=No');
					}
				}
			}
		};
	xmlhttp.open('POST',url,false);
	xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded');
	xmlhttp.send(null);
}

function red01() {	
	location.href =_Web_Url + '/index.php/web/service/19/';
}
function red02() {	
	location.href =_Web_Url + '/index.php/web/service/18/';
}
function red03() {	
	location.href =_Web_Url + '/index.php/web/service/14/';
}

function my_favorites() {	
   if (document.all){
        window.external.AddFavorite(_Web_Url, "Enter Title");
    } else {
        window.sidebar.addPanel("Enter Title", _Web_Url, "");
	}
}
