function upDate(){qty="0";sub="0.00";querystring=parent.document.URL.substring(document.URL.indexOf('?')+1);if(querystring.charAt(0)!="q"){querystring="";}
if(querystring){today=new Date();millisecs_in_half_hour=1800000;expireDate=new Date(today.getTime()+millisecs_in_half_hour);document.cookie=querystring+"&exp="+expireDate+";path=/;expires="+expireDate.toGMTString();}
else
{if(document.cookie!=""){thisCookie=document.cookie.split("; ");for(i=0;i<thisCookie.length;i++){if(thisCookie[i].split("=")[0]=="qty"){querystring=thisCookie[i];expireDate=thisCookie[i].split("exp=")[1];}}}}
if(querystring)
{querystring=querystring.split("&");qty=querystring[0].split("=")[1];if(qty==""){qty="0";}qty=parseInt(qty);sub=querystring[1].split("=")[1];if(sub==""){sub="0.00";}}
if(qty=="0")
{update=document.write("<p>You currently have no items in your shopping bag.</p>");}
else if(qty=="1")
{update=document.write("<p>You currently have 1 item in your shopping bag.</p><br /><p class='center'>Subtotal: "+"&pound;"+sub+"</p><br/><p class='center'><strong>Click to checkout</strong></p>");}
else{update=document.write("<p>You currently have "+qty+" items in your shopping bag.</p><br /><p class='center'>Subtotal: "+"&pound;"+sub+"</p><br/><p class='center'><strong>Click to checkout</strong></p>");}
return update;}
   


