                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     }
    }
    return qstr;
}
function updatepage(str,responsediv){
    document.getElementById(responsediv).innerHTML = str;
}


function popolacommenti(FID,tipo){
        var xmlHttpReq = false;
    var self2 = this;
    // Xhr per Mozilla/Safari/Ie7
    if (window.XMLHttpRequest) {
        self2.xmlHttpReq = new XMLHttpRequest();
    }
    // per tutte le altre versioni di IE
    else if (window.ActiveXObject) {
        self2.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self2.xmlHttpReq.open('GET', '/dblog/ricevi_commenti.asp?articolo='+FID+'&tipologia='+tipo, true);
    self2.xmlHttpReq.send(null)
	self2.xmlHttpReq.onreadystatechange = function() {
        if (self2.xmlHttpReq.readyState == 4) {
            updatepage(self.xmlHttpReq.responseText,'commentidiv');
        }
    }
    //self2.xmlHttpReq.send(getquerystring(formname));

}