скрипты нужно вызывать просто через function loadXMLDoc(what_to_run)
<script type='text/javascript'>
//<![CDATA[
function loadXMLDoc(what_to_run)
{
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
document.getElementById(what_to_run).innerHTML="<BLINK> processing ...</BLINK>"
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById(what_to_run).innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","/ajaxrun?run="+what_to_run,true);
xmlhttp.send();
}
//]]>
и бит от <BODY>
<td>
<button onclick='loadXMLDoc("login_build")' type='button'>
run
</button>
</td>
<td>
<div id='login_build'>script results</div>
</td>