function ajaxFunction()
{
	var xmlHttp;
	try
    {
    	// Firefox, Opera 8.0+, Safari
	    xmlHttp=new XMLHttpRequest();
    }
	catch (e)
    {
    	// Internet Explorer
	    try
    	{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			try
			{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e)
			{
				alert("Your browser does not support AJAX!");
				return false;
			}
		}
    }
    xmlHttp.onreadystatechange=function()
    {
      if(xmlHttp.readyState==4)
      {
		displayer = document.getElementById("exoquotes");
		//alert(xmlHttp.responseText);
		eval(xmlHttp.responseText);	
		try
		{ 
			//displayer.innerHTML = "<a href='http://www.ecotwits.com/detail.php?index=" + zohometapsyche.form[1].records[0].index + "' style='text-decoration: none; color: #003300;'>" + zohometapsyche.form[1].records[0].tip + "</a>";
			displayer.innerHTML = "&quot<span style='font-size:14px; font-weight:bold;'>" + zohometapsyche.form[1].records[0].exoquote + "&quot;</span><br /><span style='float: right; font-size: 9px'>~" + zohometapsyche.form[1].records[0].exoquotes_author + "</span>";
		}
		catch (e)
		{
			displayer.innerHTML = choose();
		}		
       }
	}
	xmlHttp.open("GET","http://www.exoplanetology.com/exoquotes.php",true);
	xmlHttp.send(null);
}

function choose()
{
	var niceTips = new Array("We are made from recycled stardust.");
	var l = niceTips.length;
	var rnd_no = Math.round((l-1)*Math.random());
	var tip = niceTips[rnd_no];
	return tip;	
}