// Google analytics
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-23612910-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
// end Google analytics


function doCart(thisDo,thisItem,thisQty,thisPrice,thisImg,thisName,thisElement,thisReg)
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
	//alert('updating ' + thisElement);
    document.getElementById(thisElement).innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","inc/functions.php?doJS="+thisDo+"&item=" + thisItem + "&qty="+thisQty+"&price="+thisPrice+"&img="+thisImg+"&name="+thisName+"&reg="+thisReg,true);
xmlhttp.send();
}

