﻿//显示询盘篮
my_sel_cok=getCookie('sel_cok');
my_pro_cok=getCookie('pro_cok');
my_oem_cok=getCookie('oem_cok');

//供应
if(my_sel_cok=="undefined" || my_sel_cok=="" || my_sel_cok==null)
{ my_sel_cok_num=0; addCookie("sel_cok","",168); }
else
{
if(my_sel_cok.substr(my_sel_cok.length-1,1)==",")    { my_sel_cok=my_sel_cok.substr(0,my_sel_cok.length-1); } 
my_sel_arr=my_sel_cok.split(",");
my_sel_len=my_sel_arr.length;
my_sel_cok_num=my_sel_len;
}

//产品
if(my_pro_cok=="undefined" || my_pro_cok=="" || my_pro_cok==null)
{ 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;
}

//oem
if(my_oem_cok=="undefined" || my_oem_cok=="" || my_oem_cok==null)
{ my_oem_cok_num=0; addCookie("oem_cok","",168);  }
else
{
if(my_oem_cok.substr(my_oem_cok.length-1,1)==",")    { my_oem_cok=my_oem_cok.substr(0,my_oem_cok.length-1); } 
my_oem_arr=my_oem_cok.split(",");
my_oem_len=my_oem_arr.length;
my_oem_cok_num=my_oem_len;
}

//获得总和
var cok_total=parseInt(my_sel_cok_num) + parseInt(my_pro_cok_num) + parseInt(my_oem_cok_num);
document.write("<a target='_blank' href='/search/basket.html'><img border='0' src='/search/images/basket.gif' align='absmiddle'><span id='Temp_3'>Inquiry basket</span>(<span id='cok_num'>"+ cok_total +"</span>)</a>");

