//Edited By  Alexanderia_lover


function caller()  //to call ticker loading function
{
callTicker();
setTimeout("caller()",15000);
}

//creating ajax object

if (window.ActiveXObject)
	{
	 xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
	}
else  
	{
	 xmlHttp = new XMLHttpRequest();
	}

//calling the data page using ajax object

	function callTicker()
		{
			
			xmlHttp.open("GET","prices.php", true);
			xmlHttp.onreadystatechange = theHandler;
			xmlHttp.send(null);			
		}
		
//handling the response of the ajax object and assign the data to the marqee

	function theHandler()
		{
			
			if (xmlHttp.readyState == 4) 
				{
				
				document.getElementById("ticker").innerHTML = xmlHttp.responseText;
				
				}	
		}





);
