// JavaScript Document
function hide()
{
for(i=0; j=arguments[i];i++){
  document.getElementById(j).style.display="none";
	}
}
function show()
{
for(i=0; j=arguments[i];i++){
  document.getElementById(j).style.display="block";
	}
}
function get_bigimg(N){
	var big_img=document.getElementById('big_img');
	big_img.src="images/menu/"+N+".jpg";
	}
function openImg(SRC,title){
if(title==undefined)title="Fortune Group";
OpenWindow=window.open("", "newwin", "width=930px,toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no");
//写成一行
OpenWindow.document.write("<HTML>")
OpenWindow.document.write("<TITLE>"+title+"</TITLE>")
OpenWindow.document.write("<BODY align='center'><div style='width:100%;align:center; margin:0 auto'>")
OpenWindow.document.write("<img src='"+SRC+"' style='width:900px'>")
OpenWindow.document.write("</div></BODY>")
OpenWindow.document.write("</HTML>")
OpenWindow.document.close()
}
function checkit()
{	
	var form1=document.getElementById('form1');
    var result1=form1.email.value;
	var result2=form1.message.value;
	var email=form1.email;
	var email_F=form1.email.value.indexOf("@",0)
 
    if(result1=="Your Email" || result2=="Your Message"){alert ("Your email and message are necessary! Please check it.");return false;}
	if(email_F < 1){alert ("Please enter a valid email address."); email.select(); return false}
    return true;
}
function getHTTPObject()       
    {                       
          var http;
          var browser = navigator.appName;
          if(browser == "Microsoft Internet Explorer") { http = new ActiveXObject("Microsoft.XMLHTTP"); }
          else{ http = new XMLHttpRequest(); }
          return http;
    }
function get_url(url,ID){
	var obj=document.getElementById(ID);
    var ajax = getHTTPObject();
				 ajax.open("GET", url, true); 
				 ajax.onreadystatechange = function()  
				 {   
				 if(ajax.readyState==1){obj.innerHTML = "Loading data ...";}
				 if (ajax.readyState == 4 && ajax.status == 200)   
				  {    
					   obj.innerHTML = ajax.responseText; 
				  } 
			   }
          ajax.send(null); 	
	}
