Ciao

ho modificato questa funzione in modo da poter gestire

- richieste multiple ajax
- notificare o meno all'utente il caricamento della pagina
- decidere in che div stampare il risultato della richeista GET

codice:
    function makeRequest(id_div_output,notify_waiting,url) {


        http_request = false;

        if (window.XMLHttpRequest) { // Mozilla, Safari,...
            http_request = new XMLHttpRequest();
            if (http_request.overrideMimeType) {
                http_request.overrideMimeType('text/xml');
                // See note below about this line
            }
        } else if (window.ActiveXObject) { // IE
            try {
                http_request = new ActiveXObject("Msxml2.XMLHTTP");
            } catch (e) {
                try {
                    http_request = new ActiveXObject("Microsoft.XMLHTTP");
                } catch (e) {}
            }
        }

        if (!http_request) {
            alert('Giving up :( Cannot create an XMLHTTP instance');
            return false;
        }

		if(notify_waiting){
			document.getElementById(id_div_output).innerHTML='<img src=\"http://'+document.location.hostname+'/files/getbyname/wait.gif\" />';
		}
		//alert(url);
        http_request.onreadystatechange = function() { alertContents(http_request,id_div_output); };
        http_request.open('GET', url, true);
        http_request.send(null);

    }

    function alertContents(http_request,output) {

        if (http_request.readyState == 4) {
            if (http_request.status == 200) {
			risposta=http_request.responseText;
			//alert(output);
			document.getElementById(output).innerHTML=risposta;
            } else {
                alert('There was a problem with the request.');
            }
        }

    }
funziona tutto bene a parte le richieste simultanee, nel senso che se faccio una cosa del genere:

codice:
clicca
solo una richiesta (la seconda) funziona mentre l'altra non esegue mai alertContents

dove sto sbagliando?

grazie