
function start_hk_search(hk)
{
	var g_type =$get("search_type").value;
	 
	var t_kw = escape(encodeURIComponent(hk))  ;
	if(g_type==1)
	{
		 
		var t_url = "/proSearch.html?kw="+t_kw;
		 
		location.href=t_url;
	}
	else if(g_type==2)
	{
		var t_url = "/supSearch.html?kw="+t_kw;
		location.href=t_url;
	}
	else
	{
		var t_url = "/buyerSearch.html?kw="+t_kw;
		location.href=t_url;
	}
}
function start_t_search()
{
	
	var t_kw = $get("t_kw").value;
	var g_type =$get("search_type").value;
	
	
	if(t_kw=="Please input the keyword")
	{
		alert("Please input the keyword");
		return;
	}
	if(t_kw=="")
	{
		alert("Please input the keyword");
		return;
	}
	
	
	t_kw = parameStr(t_kw);
	if(g_type==1)
	{
		var t_url = "proSearch.html?kw="+t_kw;
		location.href=t_url;
	}
	else if(g_type==2)
	{
		var t_url = "supSearch.html?kw="+t_kw;
		location.href=t_url;
	}
	else
	{
		var t_url = "buyerSearch.html?kw="+t_kw;
		location.href=t_url;
	}
}

function start_p_search()
{
	var p_kw = $get("p_kw").value;
	var t_url = "";
	
		t_url = "supSearch.html?kw="+p_kw;
	
	location.href=t_url;
}

