function getXmlHttpObject()
{
	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 submitEmailAddress(url)
{
	emailForm = document.getElementById("mailing_list_address");
	emailAddress = emailForm.value;
	resultField = document.getElementById("mailing_list_result");
	xmlHttp = getXmlHttpObject();
	if(xmlHttp)
	{
		xmlHttp.onreadystatechange=function()
		{
			if(xmlHttp.readyState == 4)
			{
				resultField.innerHTML = xmlHttp.responseText;
			}
		}
		xmlHttp.open("POST",url,true);
		xmlHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		xmlHttp.send("robot=true&action=subscribe&emailAddress=" + emailAddress);
	}
}