var xmlHttp;

function teaserdis(next)
{ 

xmlHttp1=GetXmlHttpObject()
if (xmlHttp1==null)
 {
 alert ("Browser does not support HTTP Request")
 return
 }

showProgress('slideShow');






var url="modules/users/next5.php"
url=url+"?next="+next;
xmlHttp1.onreadystatechange=stateChanged2
xmlHttp1.open("GET",url,true)
xmlHttp1.send(null)
}
function stateChanged2() 
{ 
if (xmlHttp1.readyState==4 || xmlHttp1.readyState=="complete")
 { 

  hideProgress('teaser');
  document.getElementById("teaser").innerHTML=xmlHttp1.responseText;

}
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttp=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttp;
}

function showProgress(name)
   {
       prg = "<IMG SRC='loading_animation.gif'>";
       progressViewer = document.getElementById(name);
       progressViewer.innerHTML = prg;
   }
   
   function hideProgress(name)
   {
       progressViewer = document.getElementById(name);
       progressViewer.innerHTML = "";
   }
