var ajax_text;
function ajax_build(id, callback) {
 var http = createObject();
 http.open('GET', '/scripts/ajax_build.php?id='+id+'&nocache='+nocache); 
 http.onreadystatechange = function() {
  if(http.readyState == 4 && http.status == 200) {
    var response = http.responseText;
     if(response != '') {text=response;} 
  } 
} 
http.send(''); 
}
document.getElementById('div').innerHTML = text;