	function getHTMLValue(address, name, website, email, tel, fax, vhid, addrid, eventid, image, desc, category)
	{
          var html = "";		  	
		  		  
		  html =  html + "<table border='0'>";		  
		  
		  var namehtml = "";
		  if(category!=null &&category!="" &&(category=="diningDistrict"||category=="shopDistrict")) {
		  	  if(website!=null&&website!=""&&website.indexOf("http:")==-1) {
		  	      namehtml = "<a href='../"+website+"' style='color:#FF6101'><b><font color='#FF6101'>"+name+"</font></b></a>";
		  	  }else if(website!=null&&website!="") {
					namehtml = "<b><a href='"+website+"' style='color:#FF6101'><font color='#FF6101'>"+name+"</font></a></b>";
			  } else {
		  	  	  namehtml = "<b><font color='#FF6101'>"+name+"</font></b>"; 
		   	  }	  
		  } else if(vhid!="" && vhid!=null) {
	  	  	namehtml = "<a href='javascript:getHotelDetail(" + vhid + ", "+ addrid + ")'><b>"+name+"</b></a>";
		  } else
		  {
		  	if(eventid!="" && eventid!=null) {
		  		namehtml = "<a href='javascript:getEventDetail(" + eventid + ")'><b>"+name+"</b></a>";
		  	}else {
		  		namehtml = "<b><font color='#FF6101'>"+name+"</font></b>"; 
		  	
		  		}
		  }
		  
		  var imghtml = "";
		  
		  if(image!="" && image!=null)
		  {
	  	  	imghtml = "<img src=\"/eng/dining/images/"+ image +"\" width=\"80\" height=\"70\" border=\"0\" /><br/>";
	  	  }					  		  		  
		  
		  if(imghtml!="")
		  {
		  	html = html + "<tr>";			
			html = html + "<td width='80px'>";
			html = html + imghtml;
			html = html + "</td>";
			html = html + "<td width='220' align='left'>";
			html = html + namehtml;
			html = html + "</td>";		
			html = html + "</tr>";		  
		  }
		  else
		  {
			html = html + "<tr>";			
			html = html + "<td width='300'>";
			html = html + namehtml;
			html = html + "</td>";		
			html = html + "</tr>";		  			  
		  }		   
          
          html = html + "</table>";
          
          
          html =  html + "<table border='0'>";
          
          var colorIndex = 0;
          
          if(address!="" && address!=null)
          	html = addCol(html, "Address : ", address, colorIndex++);
          	
          if(website!="" && website!=null)
          {
          	if(category=="shopDistrict" || category=="diningDistrict")
          	{
          		//var websitehtml = "<a href="+website+" target=_blank>Click here</a>";
          		//html = addCol(html, "網址 : ", websitehtml , colorIndex++);
          	}
          	else
          	{
          		//var websitehtml = "<a href="+website+" target=_blank>"+ website +"</a>";
          		//html = addCol(html, "網址 : ", websitehtml , colorIndex++);
          	}
          }
          	
          if(email!="" && email!=null)
          	html = addCol(html, "Email : ", email, colorIndex++);

          if(tel!="" && tel!=null)
          	html = addCol(html, "Phone : ", tel, colorIndex++);
			
		  if(fax!="" && fax!=null)
		  	html = addCol(html, "Fax : ", fax, colorIndex++);

		  if(desc!="" && desc!=null)
		  	html = addCol(html, "Description : ", desc, colorIndex++);
		
			html = html + "</table>";		  		  
		  
			html = html + "<br>";	
	
		return html;				  
	}
	
	function addCol(html, colname, value, color)
	{
		var htmlOut = html;
		var bgcolor = ((color%2)==0)?"#f4f4f2":"#ffffff";

		htmlOut = htmlOut + "<tr>";			
		htmlOut = htmlOut + "<td bgcolor='"+bgcolor+"' width='50' valign='top' style='font-size:13px;letter-spacing:0px;'>";
		htmlOut = htmlOut + colname;
		htmlOut = htmlOut + "</td>";
		htmlOut = htmlOut + "<td bgcolor='"+bgcolor+"' width='250' valign='middle' style='font-size:13px;letter-spacing:0px;'>";
		htmlOut = htmlOut + value;
		htmlOut = htmlOut + "</td>";		
		htmlOut = htmlOut + "</tr>";
		
		return htmlOut;				  
	}
	
