/* Do nothing at this stage in an empty basket */
function getHTTPObject() {
    if (typeof XMLHttpRequest != 'undefined') {
        return new XMLHttpRequest();
    }
    try {
        return new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
        try {
            return new ActiveXObject("Microsoft.XMLHTTP");
        } catch (e) {}
    }
    return false;
}

window.onload = function() {

var noCache = new Date().getTime();

http = getHTTPObject()

var url = "http://www.thedigiboxshop.com/Shop/usercheck.asp";
var params = "id=quantity&time=" + noCache;
http.open("GET", url+"?"+params, true);
http.onreadystatechange = function() {//Call a function when the state changes.
	if(http.readyState == 4 && http.status == 200) {
		document.getElementById('thisItems').innerHTML = http.responseText;
	}
}
http.send(null);

http2 = getHTTPObject()

var url2 = "http://www.thedigiboxshop.com/Shop/usercheck.asp";
var params2 = "id=total&time=" + noCache;
http2.open("GET", url2+"?"+params2, true);
http2.onreadystatechange = function() {//Call a function when the state changes.
	if(http2.readyState == 4 && http2.status == 200) {
		document.getElementById('thisSubtotal').innerHTML = http2.responseText;
	}
}
http2.send(null);

}

document.write("<tr>")	
document.write("<td nowrap align=\'left\'>")
document.write("<a class=\'Basic\' href=\'http://www.thedigiboxshop.com/Shop/cart.asp\'>Items:</a>")
document.write("</td>")
document.write("<td nowrap align=\'left\'>")
document.write("<div style=\'padding-left:10px;\'>")
document.write("<strong><div id=\'thisItems\'></span></strong>")
document.write("<div>")
document.write("</td>")
document.write("</tr>")
document.write("<td align=\'left\'>")
document.write("<a class=\'Basic\' href=\'http://www.thedigiboxshop.com/Shop/cart.asp\'>Total:</a>")
document.write("</td>")
document.write("<td align=\'left\'>")
document.write("<div style=\'padding-left:10px;\'>")
document.write("<strong><div id=\'thisSubtotal\'></span></strong>")
document.write("<div>")
document.write("</td>")
document.write("</tr>")
