function isEmail(str){
	var objRegExp =  /^((?:(?:(?:(\w|~)[~\.\-\+]?)*)(\w|~))+)\@((?:(?:(?:\w[\.\-\+]?){0,62})\w)+)\.([a-zA-Z]{2,6})$|^$/;
	return objRegExp.test(str);
}  

function checkForm()
{	
	check = "true";

	errors = "Errors:\n";

	if (document.forms.mappe.Name.value=="" || document.forms.mappe.Name.value=="Name")
	{
		errors += "--> Please fill your Last Name into the box\n";
		check = "false"; 
	}
	if (!isEmail(document.forms.mappe.Email.value) || document.forms.mappe.Email.value=="")
	{
		errors += "--> Please insert a correct email adress\n";
		check = "false"; 
	}
		if (check=="false")
	{
		alert (errors);
	}
	else
	{
		document.forms.mappe.submit();
	}
}
