function checkRegForm()
{
	var message="Your information was not submitted because of the following error(s):\n\n"
	var found=0

	//CHECK REQUIRED TEXT FIELDS
	if (document.form1.Email.value.length != 0 )
	{
		if (document.form1.Email.value.indexOf("@") == -1 || document.form1.Email.value.indexOf(".") == -1)
		{
			if (found==0)
			{
				found=1
				document.form1.Email.focus();
			}
			message=message+"* E-mail Address is incorrect.\n";
		}
	}
	if (document.form1.Email.value.length == 0 || document.form1.Email.value.indexOf(" ") == 0)
	{
		if (found==0)
		{
			found=1
			document.form1.Email.focus();
		}
		message=message+"* E-mail Address was not entered.\n";
	}
	if (document.form1.EmailVerify.value.length != 0 )
	{
		if (document.form1.EmailVerify.value.indexOf("@") == -1 || document.form1.EmailVerify.value.indexOf(".") == -1)
		{
			if (found==0)
			{
				found=1
				document.form1.EmailVerify.focus();
			}
			message=message+"* Verify E-mail Address is incorrect.\n";
		}
	}
	if (document.form1.EmailVerify.value.length == 0 || document.form1.EmailVerify.value.indexOf(" ") == 0)
	{
		if (found==0)
		{
			found=1
			document.form1.EmailVerify.focus();
		}
		message=message+"* Verify E-mail Address was not entered.\n";
	}
	if (document.form1.AccountPassword.value.length == 0 || document.form1.AccountPassword.value.indexOf(" ") == 0)
	{
		if (found==0)
		{
			found=1
			document.form1.AccountPassword.focus();
		}
		message=message+"* Password was not entered.\n";
	}
	if (document.form1.AccountPasswordVerify.value.length == 0 || document.form1.AccountPasswordVerify.value.indexOf(" ") == 0)
	{
		if (found==0)
		{
			found=1
			document.form1.AccountPasswordVerify.focus();
		}
		message=message+"* Verify Password was not entered.\n";
	}
	if (document.form1.FirstName.value.length == 0 || document.form1.FirstName.value.indexOf(" ") == 0){
		if (found==0)
		{
			found=1
			document.form1.FirstName.focus();
		}
		message=message+"* First Name was not entered.\n";
	}
	if (document.form1.LastName.value.length == 0 || document.form1.LastName.value.indexOf(" ") == 0)
	{
		if (found==0)
		{
			found=1
			document.form1.LastName.focus();
		}
		message=message+"* Last Name was not entered.\n";
	}		
	if (document.form1.CompanyName.value.length == 0 || document.form1.CompanyName.value.indexOf(" ") == 0)
	{
		if (found==0)
		{
			found=1
			document.form1.CompanyName.focus();
		}
		message=message+"* Company Name was not entered.\n";
	}
	

	
	//IF ALL REQUIRED FIELDS HAVE VALUES, SUBMIT FORM	
	if  (found==1)
	{
		alert(message)
	}
	else
	{
		document.form1.submit()
	}
}//function