function LoadSearchBox_1()
{
var SearchHtml="";
SearchHtml+="
";
SearchHtml+="
";
document.write(""+SearchHtml+"
");
}
LoadSearchBox_1();
function searchbox_1_1()
{
var Language="cn";
var Js1,Js2;
if(Language=="en")
{
Js1="Please enter keywords to search products!";
Js2="Keyword must be greater than 2 characters!";
}
else
{
Js1="请输入要搜索的产品关键字!";
Js2="关键字必须大于2个字符!";
}
var Keycode=escape(document.getElementById("searchkey_1").value);
var Target="0";
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 keywords to search for articles!";
Js2="Keyword must be greater than 2 characters!";
}
else
{
Js1="请输入要搜索的文章关键字!";
Js2="关键字必须大于2个字符!";
}
var Keycode=escape(document.getElementById("searchkey_1").value);
var Target="0";
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