function putProdToCart(ProdPK){
        xh = false;
        if(window.XMLHttpRequest){ // Mozilla,Safari,IE7...
		xh = new XMLHttpRequest();
		if (xh.overrideMimeType) {
			xh.overrideMimeType('text/xml');
		}
        }else if(window.ActiveXObject){ // IE
		try{
                	xh = new ActiveXObject("Msxml2.XMLHTTP");
		}catch (e){
			try{
				xh = new ActiveXObject("Microsoft.XMLHTTP");
                	}catch (e) {}
		}
        }

        if(!xh){
		alert('Browser does not support AJAX capability.');
		return false;
        }
        xh.onreadystatechange = ResultContents;
        xh.open('GET',"api/xh_putProdToCart.asp?ProdPK="+ProdPK,true);
        xh.send(null);
}
function ResultContents(){
	if (xh.readyState == 4) {
		if (xh.status == 200) {
			var Result = xh.responseText;
			if(!Result){
				alert('Product does not exist.');
			}else{
				if(document.getElementById("LabShopCart") != null){
        				LabShopCart.innerHTML = Result
        			}
        			alert('Product has been Add to Cart.');
			}
		} else {
                	alert('The system is busy, please try again later.');
		}
	}

}
