/**
 * Validate the form.
 */
function validateForm(form)
{
    var retStr = "";
    
    //Name
    if (!valNonEmpty(form.name))
		retStr += "\n\t- Name must not be empty";
	//Email
	if (!valEmail(form.email))
		retStr += "\n\t- Email address is not valid";
		
	if (retStr != "")
	{
		retStr = "There was a problem with your details:" + retStr
		alert( retStr );
		return false;
	}
	else
		return true;
}
