function createRequestObject() {
var ro;
var browser = navigator.appName;
if(browser== "Microsoft Internet Explorer"){
ro = new ActiveXObject("Microsoft.XMLHTTP");
}else{
ro = new XMLHttpRequest();
}
return ro;
}

var http = createRequestObject();

function sndReq(file,action,divId) {
http.open("get", file+"?action="+action);
http.onreadystatechange = handleResponse;

http.send(null);
}
function handleResponse() {
if(http.readyState == 4){
var response = http.responseText;

document.getElementById(divId).innerHTML = response;
//sndReq();
}
}

salve io utilizzo questo sistema ajax.
Io vorrei passare nella funzione sndReq(file,action,divId) il div di destinazione dell'ajax, a quanto sembra non posso passare questo valore divId con la funzione handleResponse.
Come possa fare???
grazie