function LoadSearchBox_1()
{
var SearchHtml="";
SearchHtml+="
产品 文章
";
SearchHtml+="
";
SearchHtml+="
";
document.write("
"+SearchHtml+"
");
}
LoadSearchBox_1();
function searchbox_1_1()
{
var Language="cn";
var Js1,Js2;
if(Language=="en")
{
Js1="Please enter your search product name or type keywords!";
Js2="Keyword must be greater than 2 characters!";
}
else
{
Js1="请输入要搜索的产品名称或型号关键字!";
Js2="关键字必须大于2个字符!";
}
var Keycode=escape(document.getElementById("searchkey_1").value);
var Target="1";
if(Keycode=="")
{
alert(Js1);
document.getElementById("searchkey_1").focus();
return;
}
else
{
if(Keycode.length<2)
{
alert(Js2);
document.getElementById("searchkey_1").focus();
return;
}
else
{
if(Target==1)
{
window.open("/include/search.aspx?keycode="+Keycode+"&type=1&language="+Language, "search");
}
else
{
location.href="/include/search.aspx?keycode="+Keycode+"&type=1&language="+Language;
}
}
}
}
function searchbox_2_1()
{
var Language="cn";
var Js1,Js2;
if(Language=="en")
{
Js1="Please enter your search to the title of the article or profile keyword!";
Js2="Keyword must be greater than 2 characters!";
}
else
{
Js1="请输入要搜索的文章标题或简介关键字!";
Js2="关键字必须大于2个字符!";
}
var Keycode=escape(document.getElementById("searchkey_1").value);
var Target="1";
if(Keycode=="")
{
alert(Js1);
document.getElementById("searchkey_1").focus();
return;
}
else
{
if(Keycode.length<2)
{
alert(Js2);
document.getElementById("searchkey_1").focus();
return;
}
else
{
if(Target==1)
{
window.open("/include/search.aspx?keycode="+Keycode+"&type=2&language="+Language, "search");
}
else
{
location.href="/include/search.aspx?keycode="+Keycode+"&type=2&language="+Language;
}
}
}
}
function searchbox_3_1()
{
var Obj=document.getElementById("sboxradio1_1");
if(Obj.checked)
{
searchbox_1_1();
}
else
{
searchbox_2_1();
}
}
function Trim(str)
{
var Astr=str.split('');
var str1="";
for(i=0;i