//显示询盘篮
my_pro_cok=getCookie('pro_cok');
//
//
////产品
if( my_pro_cok=="" || typeof(my_pro_cok)=="undefined" || my_pro_cok=="undefined")
{ 
my_pro_cok_num=0; 
addCookie("pro_cok","",168); 
}
else
{
if(my_pro_cok.substr(my_pro_cok.length-1,1)==",")    { my_pro_cok=my_pro_cok.substr(0,my_pro_cok.length-1); } 
my_pro_arr=my_pro_cok.split(",");
my_pro_len=my_pro_arr.length;
my_pro_cok_num=my_pro_len;
}
//
////获得总和
var cok_total= parseInt(my_pro_cok_num);
if(lan_set==0)
{
document.write("&nbsp;&nbsp;<a href='order.asp' class='aLblue'><img border='0' src='/js/basket.gif' align='absmiddle' style='margin-right:4px;'><strong class='f-arial'>Inquiry basket</strong>(<span id='cok_num'>"+ cok_total +"</span>)</a>");
}

if(lan_set==1)
{
document.write("&nbsp;&nbsp;<a href='cn_order.asp' class='aLblue'><img border='0' src='/js/basket.gif' align='absmiddle' style='margin-right:4px;'><strong class='f-arial'>询盘篮</strong>(<span id='cok_num'>"+ cok_total +"</span>)</a>");
}

if(lan_set==2)
{
document.write("&nbsp;&nbsp;<a href='fan_order.asp' class='aLblue'><img border='0' src='/js/basket.gif' align='absmiddle' style='margin-right:4px;'><strong class='f-arial'>Inquiry basket</strong>(<span id='cok_num'>"+ cok_total +"</span>)</a>");
}





var bg = new Array(3); var count=bg.length;bg[0] = '#ff0000'; bg[1] = '#0066FF';bg[2] = '#FF9933';bg[3] = '#CC00CC';bg[4] = '#00CC00';var times=0;//全局数组,定义关键字背景颜色
function highlight(key) {
try {
var key = key.split('|'); for (var i=0; i<key.length; i++) { var rng = document.body.createTextRange(); 
var color_str=bg[times];times++;//随机颜色
while (rng.findText(key[i])) rng.pasteHTML('<span style="background:\''+color_str+'\';color:white;font-weight:bold;">'+key+'</span>'); } rng.scrollIntoView(); 
}
catch (e) {}
}