function updateTop10()  {
    var xmlHttpReq = false;
    var self = this;
	var strURL="/blocks/top10.php";
    // 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() {
    qstr = '' ;  // NOTE: no '?' before querystring
    return qstr;
}

function updatepage(str){ 
    document.getElementById('top10Audio').innerHTML = "<h1>Top 10 Songs</h1>Courtesy <a href=Dishant.com>Dishant.com</a>\n" + str;
	document.getElementById('top10Video').innerHTML	= "<h1>Top 10 Video</h1>\n\
					<object width='100%' height='100'>\n\
						<param name='movie' value='http://www.youtube.com/v/bqljb1GBhPw&hl=en&fs=1'></param>\n\
						<param name='allowFullScreen' value='true'></param>\n\
						<param name='allowscriptaccess' value='always'></param>\n\
						<embed src='http://www.youtube.com/v/bqljb1GBhPw&hl=en&fs=1' \n\
							type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='true' \n\
							width='100%' height='100'>\n\
						</embed>\n\
					</object>\n\
					";
}

function play(songid){
 var URL = "http://www.dishant.com/jukebox.php?songid="+songid;
newwin = window.open(URL,'plays','width=730,height=350,left=150,top=150,scrollbars=0,resizable=0');
}

