function ajaxSend(file,div,form_data,dop) { //alert(document.getElementById(form_name).length); // form = document.getElementById(form_name); form_data = document.getElementById(form_data); //alert(div); if (dop !== null) {file = file + '?' + dop;} else file=file; //alert(file); data = { q: form_data } JsHttpRequest.query( file, data, function(responseJS, responseText) { //document.getElementById(obj).innerHTML=""; // Write debug information too (output become responseText). document.getElementById(div).innerHTML = responseText; }, false // do not disable caching ); } /* function ajaxSend(file,div,form_data) { if (dop!=null) {file = file + '?' + dop;} else file=file; alert(div); data = { q: form_data } JsHttpRequest.query( file, data, function(responseJS, responseText) { document.getElementById(div).innerHTML = responseText; }, false // do not disable caching ); } */