function goldtrust_showSearchForm_wid_g(){
var toocle_default_search_action;
if(toocle_default_search=='toocle_p'){
	toocle_default_search_action="china-products-directory";
	}else{
	toocle_default_search_action="china-supplier-directory";
	}	
document.writeln("<link href=\"http://www.toocle.com/css/english1.css\" rel=\"stylesheet\" type=\"text/css\">");
document.writeln("<table cellpadding=0 cellspacing=0 class=\"bian4\">");
document.writeln("  <form name=\"goldtrustSearch_wid_g\" method=\"post\" action=\"http://www.toocle.com/"+toocle_default_search_action+"/psearch.cgi\">");
document.writeln("     <tr>");
document.writeln("        <td valign=\"top\" nowrap>&nbsp;&nbsp;");
document.writeln("		  <a href=\"http://www.toocle.com/suppliers/\" target=\"_blank\"><img src=\"http://www.toocle.com/about_us/searchbox2aa.gif\" alt=\"trading circle connecting sellers around one buyer\" vspace=\"8\" border=\"0\"></a>");
document.writeln("        </td>");
document.writeln("          <td valign=\"top\" nowrap ><br>");
document.writeln("            <input class=\"sear001a\" name=\"terms\">");
document.writeln("            <input type='hidden' name='t' value='search' > ");
document.writeln("		 <div  class=\"sear002a\">");
if(toocle_default_search=="toocle_c")
	{
		document.writeln("	<input name=\"gts_radio\" type=radio value=\"product\"  onclick=\"goldtrust_changesearch_wid_g(this,'p')\">Product Search");
		document.writeln("	<input name=\"gts_radio\" type=radio value=\"company\" checked onclick=\"goldtrust_changesearch_wid_g(this,'c')\">Company Search ");
	}
	else
	{
		document.writeln("<input type=radio name=\"gts_radio\" value=\"product\" checked onclick=\"goldtrust_changesearch_wid_g(this,'p')\">Product Search ");
		document.writeln("	<input type=radio name=\"gts_radio\" value=\"company\" onclick=\"goldtrust_changesearch_wid_g(this,'c')\">Company Search ");
	}
document.writeln("		  </div>");
document.writeln("		</td>");
document.writeln("       <td valign=\"top\" nowrap  class=\"sear007a\"><br>");
document.writeln("         <input name=search type=submit class=\"sear003\" id=\"search\" value=\"Search\"></td>");
document.writeln("       </tr>");
document.writeln("      </form>");
document.writeln("</table>");
}
function goldtrust_changesearch_wid_g(obj,searchtype){
	var formname = obj.parentNode.parentNode.parentNode.parentNode.parentNode;
	if(searchtype=="c")
	{
		formname.action="http://www.toocle.com/china-supplier-directory/psearch.cgi";
	}
	else
	{
		formname.action="http://www.toocle.com/china-products-directory/psearch.cgi";
	}
}
goldtrust_showSearchForm_wid_g();