document.writeln("<SCRIPT language=javascript>");
document.writeln("function LTrim(str)");
document.writeln("{");
document.writeln("    var whitespace = new String(\" \\t\\n\\r\");");
document.writeln("    var s = new String(str);");
document.writeln("    if (whitespace.indexOf(s.charAt(0)) != -1)");
document.writeln("    {");
document.writeln("        var j=0, i = s.length;");
document.writeln("        while (j < i && whitespace.indexOf(s.charAt(j)) != -1)");
document.writeln("        {");
document.writeln("            j++;");
document.writeln("        }");
document.writeln("        s = s.substring(j, i);");
document.writeln("    }");
document.writeln("    return s;");
document.writeln("}");
document.writeln("function RTrim(str)");
document.writeln("{");
document.writeln("    var whitespace = new String(\" \\t\\n\\r\");");
document.writeln("    var s = new String(str);");
document.writeln("    if (whitespace.indexOf(s.charAt(s.length-1)) != -1)");
document.writeln("    {");
document.writeln("        var i = s.length - 1;");
document.writeln("        while (i >= 0 && whitespace.indexOf(s.charAt(i)) != -1)");
document.writeln("        {");
document.writeln("            i--;");
document.writeln("        }");
document.writeln("        s = s.substring(0, i+1);");
document.writeln("    }");
document.writeln("    return s;");
document.writeln("}");
document.writeln("function Trim(str)");
document.writeln("{");
document.writeln("    return RTrim(LTrim(str));");
document.writeln("}");
document.writeln("function sub_search()");
document.writeln("{");
document.writeln(" if(Trim(s_form.k.value) == \"\" || Trim(s_form.k.value) == \"输入搜索的内容\" )");
document.writeln(" {");
document.writeln("  alert(\"请输入关键字\");");
document.writeln("  return false;");
document.writeln(" }");
document.writeln("\/\/ s.action += s.ktype.value; \/\/导致action相加");
//document.writeln(" s_form.action = \"http:\/\/search.yidaba.com\/\" + s_form.ktype.value;");
document.writeln(" return true;");
document.writeln("}");
document.writeln("<\/SCRIPT>");
document.writeln("");
document.writeln(" <link href=\"http:\\\\images.cms.yidaba.com\\www\\images\\heafot.css\" rel=\"stylesheet\" type=\"text\/css\" \/>");
document.writeln(" <form id=s_form name=s_form method=get target=_blank onsubmit=\"return sub_search()\" action='http://search.yidaba.com/search.php'>");
document.writeln("  <INPUT class=sea_keys onBlur=\"if(this.value==\'\'){this.value=\'输入搜索的内容\';this.style.color=\'#999\';}\" onFocus=\"this.value=\'\';this.style.color=\'#333\';\" value=输入搜索的内容 name=k>");
document.writeln("<SELECT class=sea_sel id=search name=s_type>");
document.writeln("	  <OPTION value=information>资讯<\/OPTION>");
document.writeln("	  <OPTION value=company selected>企业黄页<\/OPTION>");
document.writeln("	  <OPTION value=product>产品信息<\/OPTION>");
document.writeln("  	  <OPTION value=exhibition>会展信息<\/OPTION>");
document.writeln("	<\/SELECT> ");
document.writeln("	<INPUT class=sea_sub type=submit value=\"搜 索\">");
document.writeln("  <\/form>")
