function Validate()
{
     var Msg="";

     if (document.getElementById("name").value.length == 0)
     { Msg=Msg + "* Your Name\n"; }
     
     if (document.getElementById("company").value.length == 0)
     { Msg=Msg + "* Your Company\n"; }

     if (document.getElementById("position").value.length == 0)
     { Msg=Msg + "* Your Position\n"; }

     if (document.getElementById("phonenumber").value.length == 0)
     { Msg=Msg + "* Your Phone Number\n"; }

     if (document.getElementById("address").value.length == 0)
     { Msg=Msg + "* Your Address\n"; }

     if (document.getElementById("city").value.length == 0)
     { Msg=Msg + "* Your City\n"; }

     if (document.getElementById("state").options[document.getElementById("state").selectedIndex].value == "")
     { Msg=Msg + "* Your State\n"; }

     if (document.getElementById("zipcode").value.length == 0)
     { Msg=Msg + "* Your Zip Code\n"; }

     if (document.getElementById("email").value.length == 0)
     { Msg=Msg + "* Your Email Address\n"; }

	else
	{
		if ((Msg == "") && ((document.getElementById("email").value.indexOf("@") == -1) || (document.getElementById("email").value.indexOf(".") == -1)))
	     { Msg=Msg + "* Your Email Address\n"; }
	}

	if (Msg != "")
	{ alert('Sorry, but before proceeding, you\nmust fill-in the following field(s):\n\n' + Msg); }

	else
     { return true; }

	return false;
}

if (typeof document.getElementById("signupfrm").addEventListener != "undefined")
{ document.getElementById("signupfrm").onsubmit=Validate; }

if (typeof document.getElementById("signupfrm").attachEvent != "undefined")
{ document.getElementById("signupfrm").attachEvent("onsubmit",Validate); }
