function checkform() {
	msg = "";

	// contact details
	if (document.frm.yname.value == "")  msg = msg + "- Your Name\n";
	if (document.frm.fname.value == "")  msg = msg + "- Friends 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;
		}
}

