function Validate()
{
	var Msg="";

	if (document.getElementById("name").value.length == 0)
	{ Msg=Msg + "* Your Name\n"; }

	if (document.getElementById("contactmebyemail").checked == true)
	{
		if (document.getElementById("email").value.length == 0)
		{ Msg=Msg + "* Your Email Address\n"; }

		if (Msg == "")
		{
			if (document.getElementById("email").value.indexOf("@") == -1)
			{ Msg=Msg + "* Your Email Address\n"; }

			else if (document.getElementById("email").value.indexOf(".") == -1)
			{ Msg=Msg + "* Your Email Address\n"; }
		}
	}

	if (document.getElementById("contactmebyphone").checked == true)
	{
		if (document.getElementById("phone").value.length == 0)
		{ Msg=Msg + "* Your Phone Number\n"; }
	}

	if (document.getElementById("sendto").options[document.getElementById("sendto").selectedIndex].value == "")
	{ Msg=Msg + "* To Whom Should The Message Be Sent\n"; }

	if (document.getElementById("message").value.length == 0)
	{ Msg=Msg + "* Your Message\n"; }

	if (Msg != "")
	{ alert('Sorry, but before proceeding, you\nmust fill-in the following field(s):\n\n' + Msg); }

	else
     { return true; }

	return false;
}

document.getElementById("contactfrm").onsubmit=Validate;