function newXMLHttpRequest() {
var xmlreq = false;
if (window.XMLHttpRequest) {
xmlreq = new XMLHttpRequest();
} else {
if (window.ActiveXObject) {
try {
xmlreq = new ActiveXObject("Msxml2.XMLHTTP");
}catch (e1) {
try {
xmlreq = new ActiveXObject("Microsoft.XMLHTTP");
}catch (e2) {}
}
}
}
return xmlreq;
}
function changeCarat(shp,prd,cnt){
var req = newXMLHttpRequest();
req.onreadystatechange = getReadyStateHandler(req, updateCart);
req.open("POST", "http://www.ganeshaspeaks.com/productboxpages/changestoreproduct.jsp", true);
req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
req.send("id="+prd+"&cnt="+cnt+"&ship="+shp);
//req.send("month="+mon);
}
function getReadyStateHandler(req, responseXmlHandler) {
return function () {
if (req.readyState == 4) {
if (req.status == 200) {
responseXmlHandler(req.responseText);
} else {
alert("HTTP error: " + req.status);
}
}
};
}
function updateCart(strval){}
