
<!--
function trantourl(str)
		{
		   var strurl = str.replace("  ", "_");
	           strurl = strurl.replace(" ", "_");
			strurl = strurl.replace(">", "");
			strurl = strurl.replace("(", "");
			strurl = strurl.replace(")", "");
			strurl = strurl.replace(":", "");
			strurl = strurl.replace("|", "");
			strurl = strurl.replace("/", "_");
			strurl = strurl.replace("%", "_");
			strurl = strurl.replace("-", "_");
			strurl = strurl.replace("&", "");
			strurl = strurl.replace("@", "");
			strurl = strurl.replace("#", "");
			strurl = strurl.replace("!", "");
			strurl = strurl.replace("$", "");
			strurl = strurl.replace("^", "");
			strurl = strurl.replace("*", "");
			strurl = strurl.replace(", ", "_");
			strurl = strurl.replace(",", "_");
			strurl = strurl.replace("\'", "");
			strurl = strurl.replace(" ", "_");
			strurl = strurl.replace(".,","_");
			strurl = strurl.replace(".","");
			strurl = strurl.replace("'","");
			strurl = strurl.replace("__","_");
			return strurl;	
		}	
		function searchbtn() {  
			
			var ref = "";
			
			var strkeyword = document.search.keyword.value;
			if(strkeyword!="")
			{
				
				ref ="keyword=" + strkeyword;
			}
			else
			{
				alert("Please enter keyword");
				return false;
			}
			
			var country = document.search.com_country.value;
			if(country != "-1")
			{
				if(ref!="")
				{
					ref += "&";
				}
				ref +="country=" + country;	
			}
			var url = "http://www.embiz.net/ProductList.aspx?" + ref;
			document.search.action=url;
			
			return true;
			
		}
function DrawImage(ImgD,iwidth,iheight){

	var image=new Image();
	image.src=ImgD.src;
	if(image.width>0 && image.height>0){
		flag=true;
		if(image.width/image.height>= iwidth/iheight){
			if(image.width>iwidth){ 
				ImgD.width=iwidth;
				ImgD.height=(image.height*iwidth)/image.width;
			}else{
				ImgD.width=image.width; 
				ImgD.height=image.height;
			}
		}else{
			if(image.height>iheight){ 
				ImgD.height=iheight;
				ImgD.width=(image.width*iheight)/image.height; 
			}else{
				ImgD.width=image.width; 
				ImgD.height=image.height;
			}
		}
	}
}
function displayMoreIncluedKeywordsa(isMore){
			if(isMore == 1)
			{
				var div = document.getElementById("hotkeyword");
				div.style.display = "none";
				
				div = document.getElementById("hotkeywordmore");
				div.style.display = "";
			}
			else
			{
				var div = document.getElementById("hotkeywordmore");
				div.style.display = "none";
				
				div = document.getElementById("hotkeyword");
				div.style.display = "";
			}
				
		}
//-->