function Validate()
{
	var Msg="";

	if ((document.getElementById("employee").checked == false) && (document.getElementById("employer").checked == false))
	{ Msg=Msg + "* Select whether you are an employee or employer.\n"; }

	if (document.getElementById("username").value.length == 0)
	{ Msg=Msg + "* Your Username\n"; }

	if (document.getElementById("password").value.length == 0)
	{ Msg=Msg + "* Your Password\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("loginfrm").onsubmit=Validate;
