// JavaScript Document
function getmoreitems() {
	document.body.style.cursor = 'wait';
	xmlhttpPost("featured_items_render.php");
}
function xmlhttpPost(strURL) 
{
    var xmlHttpReq = false;
    var self = this;
    // Mozilla/Safari
    if (window.XMLHttpRequest) 
	{
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) 
	{
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('POST', strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() {
        if (self.xmlHttpReq.readyState == 4) {
			updatepage(self.xmlHttpReq.responseText);
        }
    }
    self.xmlHttpReq.send(getquerystring());
}

function getquerystring() {
    var a;
    qstr = 'a=ok';  // NOTE: no '?' before querystring
    return qstr;
}

function updatepage(str){
		document.getElementById("fetuted_items").innerHTML = str;
		document.body.style.cursor = 'default';
}
