//<script language="javascript">
function checkSubmit(frm)
{
	// make sure they supplied name, company, and email address
	if (trim(frm.realname.value) == '' ||
		trim(frm.company.value) == '' ||
		trim(frm.email.value) == '')
	{
		alert("Please supply your name, company, and email address.");
		return false;
	}
	else
	{
		// check for a validly formatted email address
		var testval = new String(frm.email.value);

		if (testval.indexOf('\@') < 1 || testval.indexOf('.') == -1 ||
			testval.lastIndexOf('.') < testval.indexOf('\@') + 2 || testval.lastIndexOf('.') >= testval.length - 2)
		{
			alert( 'Please supply a valid email address' );
			frm.email.focus();
			return false;
		}
	}
	return true;
}
