//Writed by QQ:190988779 at 2002-09-19

document.write("<table width='160' border='0' cellspacing='0' cellpadding='0'>");
document.write("<FORM onsubmit='return CheckMe();'  method=post name=SearchAll target=_blank>");
document.write("<tr>");
document.write("<td align=left valign=top>");
document.write("<input type=text name='keywords' maxlength=80 size=16 value=搜索友康 onBlur=if(this.value=='')this.value='搜索友康' onfocus=if(this.value=='搜索友康')this.value='' style='text-align:center;font-size: 9pt; background-color: #FFFFFF; color: #000000;'>");
document.write("&nbsp;");
document.write("<select name=key_type style='font-size: 9pt; background-color: #FFFFFF; color: #000000; border: 1 double'>");
document.write("<option value='u_all' selected>产品搜索</option>");
document.write("<option value='u_names'>&nbsp;&nbsp;├名称</option>");
document.write("<option value='u_type'>&nbsp;&nbsp;├型号</option>");
document.write("<option value='u_use'>&nbsp;&nbsp;├特点</option>");
document.write("<option value='u_tech'>&nbsp;&nbsp;├指标</option>");
document.write("<option value='c_all' style='color:#FF0000'>技术文档</option>");
document.write("<option value='c_titles'>&nbsp;&nbsp;├FAQ</option>");
document.write("<option value='c_texts'>&nbsp;&nbsp;├回答</option>");
document.write("<option value='c_type'>&nbsp;&nbsp;├类型</option>");
document.write("<option value='c_chks'>&nbsp;&nbsp;├Serv</option>");
document.write("<option value='' style='color:#FF0000'>驱动升级</option>");
document.write("<option value=''>&nbsp;&nbsp;├驱动</option>");
document.write("<option value=''>&nbsp;&nbsp;├手册</option>");
document.write("<option value=''>&nbsp;&nbsp;├测试</option>");
document.write("<option value=''>&nbsp;&nbsp;├升级</option>");
document.write("</select>");
document.write("<input type=hidden name=checkx value=''>");
document.write("<input type=hidden name=checkx1 value='QQ:190988779'>");
document.write("<input type=hidden name=typeid value=''>");
document.write("&nbsp;");
document.write("<input type=submit name=Enter value='搜索' style='font-size: 9pt; background-color: #FFFFFF; color: #000000; border: 1 double'>");
document.write("</td>");
document.write("</tr>");
document.write("</form>");
document.write("</table>");


var UrlHead = "http://www.ucom.com.cn/"
function CheckMe()
{
	var iForm = document.SearchAll;
	var MySay= iForm.keywords.value;
	while(MySay.indexOf(" ") != -1)
	{
		MySay = MySay.replace(" ","");
	}
	if (MySay==""||iForm.keywords.value=="搜索友康")
	{
		alert("请先输入关键字，谢谢！");
		iForm.keywords.value="";
		iForm.keywords.focus();
		return false;
	}	
	if(iForm.checkx.value==iForm.keywords.value && iForm.checkx1.value==iForm.key_type.value)
	{
		alert("不能重复搜索！谢谢！");
		iForm.keywords.select();
		return false;
	}
    document.SearchAll.checkx.value = iForm.keywords.value;
	document.SearchAll.checkx1.value = iForm.key_type.value;
	var KeyType = iForm.key_type.value;
	if (KeyType == "u_all"|| KeyType == "u_names"||KeyType == "u_type"||KeyType == "u_use"|| KeyType == "u_tech")
	{
		iForm.action = UrlHead + 'u_product/index.asp';
	}
	if (KeyType == "c_all"|| KeyType == "c_titles"||KeyType == "c_texts"||KeyType == "c_type"|| KeyType == "c_chks")
	{
		iForm.action = UrlHead + 'u_question/search.asp';
	}
	if (KeyType == "")
	{
		iForm.action = UrlHead + 'u_download/search.asp';
	}
}

