function validate_event() {

	var theform = document.frm_register;
	var thecompany = theform.company;
	var thename = theform.contact;
	var theemail = theform.email
	var thephone = theform.phone;
	
	if(thecompany.value == '') {
		thecompany.focus();
		alert('You must enter a company name!');
		return false;
	}

	if(thename.value == '') {
		thename.focus();
		alert('You must enter a contact name!');
		return false;
	}
	
	if(theemail.value == '') {
		theemail.focus();
		alert('You must enter a email address!');
		return false;
	}

	if(thephone.value == '') {
		thephone.focus();
		alert('You must enter a contact telephone number!');
		return false;
	}
	
	//all tests passed
	theform.submit();
	return true;
	
}