function imageError(image)
{
	image.src = "/images/dashboard/missing_cover.gif";
}
function ajax(nameOfFunction,arguments) {
        var url = '.';
        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', url, true);
        self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
        self.xmlHttpReq.onreadystatechange = function() {
                if (self.xmlHttpReq.readyState == 4) {
                //	updatepage(self.xmlHttpReq.responseText);
                        eval(nameOfFunction + '("' + self.xmlHttpReq.responseText + '");');
                }
        }
        self.xmlHttpReq.send(arguments);
}
function hidediv(divName)
{ 
        if (document.getElementById) { // DOM3 = IE5, NS6 
                document.getElementById(divName).style.display = 'none';
        } else
        { 
                if (document.layers)
                { // Netscape 4 
                        document.divName.visibility = 'hidden'; 
                } else
                { // IE 4 
                        document.all.divName.style.visibility = 'hidden'; 
                } 
        } 
} 
        
function showdiv(divName)
{ 
        if (document.getElementById)
        { // DOM3 = IE5, NS6 
                document.getElementById(divName).style.display = 'block'; 
        } else
        { 
                if (document.layers)
                { // Netscape 4 
                        document.divName.visibility = 'visible'; 
                } else
                { // IE 4 
                        document.all.divName.style.visibility = 'visible'; 
                } 
        } 
}
