		function validate()
		{
		errormsg="";
		var pattern=/^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-Z])+/;
		
			if(document.contactform.name.value == ""){
				errormsg += "Name \n";
			}
			
			if(document.contactform.email.value == ""){
				errormsg += "E-mail \n";
			} else {
				if(pattern.test(document.contactform.email.value)==false){	
						errormsg += "Your e-mail is not correct \n";
					}
			}
			if(document.contactform.message.value == ""){
				errormsg += "Message \n";
			}
			
			if (errormsg=="") {
				document.contactform.submit();
			} else {			
				alert("You have forgotten some of the fields or filled them in incorrectly: \n" + errormsg);
			}
			
			
		}
