var xmlHttp

function goAjax(module,section,divid,variables,method)
{
      xmlHttp = false;

xmlHttp=GetXmlHttpObject()
if (xmlHttp.overrideMimeType) { 
xmlHttp.overrideMimeType('text/xml; charset=utf-8'); 
} 
if (xmlHttp==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }
var url="page.php"
url=url+"?section="+module
url=url+"&opt="+section
url=url+"&howto="+method
url=url+"&sid="+Math.random()
url=url+"&"+variables

var loadimg ='<div align="center"><img src="images/loadingBig.gif" width="200" height="200"></div>';
var loadtxt1 ='<div align="center"><img src="images/loadingBig1.gif" width="200" height="200"></div>';
var loadtxt2 ='<div align="center"><img src="images/loadingBig2.gif" width="200" height="200"></div>';

xmlHttp.onreadystatechange = function () {

if(divid == "content" || divid == "kontent"){
 if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 {
 document.getElementById(divid).innerHTML=xmlHttp.responseText
 }else if(xmlHttp.readyState==1){
 document.getElementById(divid).innerHTML=loadimg;
 }else if(xmlHttp.readyState==2){
 document.getElementById(divid).innerHTML=loadtxt2;
 }else if(xmlHttp.readyState==3){
 document.getElementById(divid).innerHTML=loadtxt1;
 }else{
 document.getElementById(divid).innerHTML=loadimg2;
 }
}else{
 if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
 {
 document.getElementById(divid).innerHTML=xmlHttp.responseText
 }
}
}

xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}