
 var t;
   function display(){
		 getdata();
		 t=setTimeout("display()",15000);
    }
function stoper(){clearTimeout(t);}

function showless(i){document.getElementById("showless"+i).style.display="";document.getElementById("showall"+i).style.display="none";}

function showall(i){document.getElementById("showless"+i).style.display="none";document.getElementById("showall"+i).style.display="";stoper();}



var xmlHttp; 
  // Start Testimonial data fetch 
function getdata()
 { xmlHttp=GetXmlHttpObject();
    if (xmlHttp==null)
   { alert ("Browser does not support HTTP Request"); return; } 
  	var url="http://www.trafficexchangeshop.com/testimonial.php?q=1";
 	url=url+"&sid="+Math.random();
 	xmlHttp.onreadystatechange=stateChanged;
	xmlHttp.open("POST",url,true);
	xmlHttp.send(null);
  } 
   function stateChanged() 
  {   if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){
	     document.getElementById("randomly").innerHTML=xmlHttp.responseText;
 	  }}
 // End Testimonials data fetch

function GetXmlHttpObject()
{ var objXMLHttp=null;
   if(window.XMLHttpRequest)
 { 
     objXMLHttp=new XMLHttpRequest();}
     else if(window.ActiveXObject)
   {
	 objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");}
     else if(window.ActiveXObject)
   {
	 objXMLHttp=new ActiveXObject("Msxml2.XMLHTTP");}
   
   return objXMLHttp;
}
