function sendfriend()
{
	var xmlhttp;
	var yemail = document.getElementById('efYourEmail').value;
	var yname = document.getElementById('efYourName').value;
	var femail = document.getElementById('efFriendsEmail').value;
	var fname = document.getElementById('efFriendsName').value;
	
	if (window.XMLHttpRequest)
	{
		// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp=new XMLHttpRequest();
	}
	else if (window.ActiveXObject)
	{
		// code for IE6, IE5
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	else
	{
		alert("Your browser does not support XMLHTTP!");
	}

	xmlhttp.onreadystatechange=function()
	{
		if(xmlhttp.readyState==4)
		{
			if(xmlhttp.responseText == 'good')
			{
				document.getElementById('divEmail1').style.display = 'none';
				document.getElementById('divEmail2').style.display = 'block';
			}
			else
			{
				alert("This page could not be sent.  Please ensure all fields are correct and try again.");
			}
		}
	}

	xmlhttp.open("GET","http://www.commoncircle.com/wp-content/themes/comcir15/sendfriend.php?ye=" + escape(yemail) + "&yn=" + escape(yname) + "&fe=" + escape(femail) + "&fn=" + escape(fname) + "&p=" + escape(top.location),true);
	xmlhttp.send(null);
}