var xmlHttp;

function GetXmlHttpObject()
{
	var xmlHttp=null;

	try
	{
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		// Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("http://www.dirt-n-turf.com/votd/Msxml2.XMLHTTP");
		}
		catch (e)
		{
			xmlHttp=new ActiveXObject("http://www.dirt-n-turf.com/votd/Microsoft.XMLHTTP");
		}
	}

	return xmlHttp;
}

function showVerse()
{
	xmlHttp=GetXmlHttpObject()

	if (xmlHttp==null)
	{
		document.getElementById("verse").innerHTML="Sorry, your browser does not support the technology used to display the Verse of the Day.";
		return;
	} 

	var url="http://www.dirt-n-turf.com/votd/votd/get_verse.php";
	xmlHttp.onreadystatechange=stateChanged;
	xmlHttp.open("POST",url,true);
	xmlHttp.send(null);
} 

function stateChanged() 
{ 
	if (xmlHttp.readyState==4)
	{ 
		document.getElementById("verse").innerHTML=xmlHttp.responseText;
	}
}



