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()");
document.writeln("{");
document.writeln(" if(Trim(document.s.k.value) == \"\" || Trim(document.s.k.value) == \"输入搜索的内容\" )");
document.writeln(" {");
document.writeln("  alert(\"请输入关键字\");");
document.writeln("  return false;");
document.writeln(" }");
//document.writeln(" document.s.action = \"http:\/\/search.yidaba.com\/\" + search.php;");
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 name=s  method=get target=_blank onsubmit=\"return sub()\" 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=1 selected>搜资讯<\/OPTION>");
document.writeln("	  <OPTION value=2>搜企业<\/OPTION>");
//document.writeln("	  <OPTION value=offerinfo>供应信息<\/OPTION>");
//document.writeln("	  <OPTION value=purchaseinfo>求购信息<\/OPTION>");
document.writeln("	  <OPTION value=3>搜产品<\/OPTION>");
document.writeln("  	  <OPTION value=10>搜商友<\/OPTION>");
document.writeln("  	  <OPTION value=12>搜网店<\/OPTION>");
document.writeln("	<\/SELECT> ");
document.writeln("	<INPUT class=sea_sub type=submit value=\"搜 索\">");
document.writeln("  <\/form>");