function adimg(htmlpic,htmllink,htmltext,imgtxt,width,height){
	<!--	
var focus_width=width  
var focus_height=height
var text_height=imgtxt
var swf_height = focus_height+text_height

var pics=htmlpic
var links=htmllink
var texts=htmltext
	
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
	document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="/images/pixviewer.swf"><param name="quality" value="high"><param name="bgcolor" value="#ffffff">');
	document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
	document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
	document.write('<embed src="/images/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#ffffff" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
	//-->
	}
	
function regstate()
{
	if(document.getElementById('usercheck').checked==true)
	{document.getElementById('userbutton').style.backgroundImage='url(../images/regbutton.jpg)';document.getElementById('userbutton').disabled='';}
	else
	{document.getElementById('userbutton').style.backgroundImage='url(../images/regbutton1.jpg)';document.getElementById('userbutton').disabled='disabled';}
}

function chk_reg(chktype,uservalue,othervalue)
{
	 var XmlHttp = new ActiveXObject("Msxml2.XMLHTTP")
	 XmlHttp.Open( "POST","chkreg.asp?chk=" + chktype + "&uservalue="+ uservalue + "&othervalue=" + othervalue, false );
	 XmlHttp.Send();
     if (XmlHttp.status == 200)
	 {	
		document.getElementById('lb_' + chktype).innerHTML=XmlHttp.responseText;
	 }
}

function chksubmit()
{
	var lb_1=document.getElementById('lb_username').innerHTML;
	var lb_2=document.getElementById('lb_userpass').innerHTML;
	var lb_3=document.getElementById('lb_userconfirm').innerHTML;
	var lb_4=document.getElementById('lb_usertel').innerHTML;
	var lb_5=document.getElementById('lb_checkcode').innerHTML;
	if(lb_1==''&&lb_2==''&&lb_3==''&&lb_4==''&&lb_5=='')
	{return true;}
	else
	{return false;}
}

function fontZoom(size)
{
<!--
 document.getElementById('temp_content').style.fontSize=size+'px'
//-->
}


function SelectDate(DivID)
{
     var fullPath="../include/share/PopDate.Htm";
     var strDate;	//Chinese date formate
     var intDate;	//Integer date formate
     var objEffectDate=eval("frmForm." + DivID);
     intDate=showModalDialog(fullPath,window,"dialogWidth=360px;dialogHeight=260px;center=yes;border=this;help=no");
     if (intDate!=null)
     {
         objEffectDate.value=intDate.substr(0,4)+"-"+intDate.substr(5,2)+"-"+intDate.substr(8,2);
         if (objEffectDate.value!="undefined")
         {
             strDate=intDate.substr(0,4)+"-"+intDate.substr(5,2)+"-"+intDate.substr(8,2);
             objEffectDate.value=strDate;
         }
         else
         {
             objEffectDate.value="";
         }
     }
     event.returnValue =false;
}


function hotelimg(ID)
{
	var XmlHttp = new ActiveXObject("Msxml2.XMLHTTP")
	 XmlHttp.Open( "POST","hotel.asp?action=hotelimg&ID=" + ID, false );
	 XmlHttp.Send();
     if (XmlHttp.status == 200)
	 {	
		document.getElementById('hotel_img').src=XmlHttp.responseText;
		document.getElementById('hotel_img_link').href=XmlHttp.responseText;
	 }
}

function hotelstars(ID)
{
	var XmlHttp = new ActiveXObject("Msxml2.XMLHTTP")
	 XmlHttp.Open( "POST","hotel.asp?action=hotelstars&ID=" + ID, false );
	 XmlHttp.Send();
     if (XmlHttp.status == 200)
	 {	
		document.getElementById('stars').innerHTML=XmlHttp.responseText;
	 }
}

function hotelpreview(ID)
{
	var XmlHttp = new ActiveXObject("Msxml2.XMLHTTP")
	 XmlHttp.Open( "POST","hotel.asp?action=hotelpreview&ID=" + ID, false );
	 XmlHttp.Send();
     if (XmlHttp.status == 200)
	 {	
		document.getElementById('preview').innerHTML=XmlHttp.responseText;
	 }
}


function addhits(ID)
{
	var XmlHttp = new ActiveXObject("Msxml2.XMLHTTP")
	 XmlHttp.Open( "POST","/include/addhits.asp?ID=" + ID, false );
	 XmlHttp.Send();
	 if (XmlHttp.status == 200)
	 {
	 	document.getElementById('hits').innerHTML=XmlHttp.responseText;
	 }
}

function showmenu(ID)
{
	document.getElementById('nav' +ĦĦID).style.display='block';
}

function hidemenu(ID)
{
	document.getElementById('nav' +ĦĦID).style.display='none';
}
