
/* ---------------------------- */
/* XMLHTTPRequest Enable */
/* ---------------------------- */
function createObject() {
var request_type;
var browser = navigator.appName;
if(browser == "Microsoft Internet Explorer"){
request_type = new ActiveXObject("Microsoft.XMLHTTP");
}else{
request_type = new XMLHttpRequest();
}
return request_type;
}

var http = createObject();


function productlisting(intProductId,intcategoryid) {

nocache = Math.random();

http.open('get', '/ajax.cfm?ajaxpage=productlisting&p='+intProductId+'&c='+intcategoryid+'&clickfrom=list&nocache = '+nocache);
http.onreadystatechange = function() {
    ViewProductDetails(intProductId);
};
http.send(null);
}


function ViewProductDetails(intProductId) {
 if(http.readyState == 4){ 
 var ProductDetailresponse = http.responseText;
{
document.getElementById('productlisting'+intProductId).innerHTML = ProductDetailresponse;
}
}
}




function productlisting_small(intProductId,intcategoryid) {

nocache = Math.random();

http.open('get', '/ajax.cfm?ajaxpage=productlisting_small&p='+intProductId+'&c='+intcategoryid+'&clickfrom=list&nocache = '+nocache);
http.onreadystatechange = function() {
    ViewProductListing_small(intProductId);
};
http.send(null);
}


function ViewProductListing_small(intProductId) {
 if(http.readyState == 4){ 
 var Productresponse = http.responseText;
{
document.getElementById('productlisting'+intProductId).innerHTML = Productresponse;
}
}
}
