function checkform() {
	msg = "";

	// contact details
	if (document.frm.fname.value == "")  msg = msg + "- Your first name\n";
	if (document.frm.lname.value == "")  msg = msg + "- Your last name\n";
	if (!emailcheck(document.frm.email.value)) msg = msg + "- A valid email address\n";
	
	// display the form check	
	if (msg!="")
		{
		alert ("Please complete the following:\r\n\r\n"+msg);
		return false;
		}
}

