function resetform () {
		if (confirm('Are you sure you want to reset ALL the fields?') )
			return true;
		else 
			return false;
		}

		function submitform (personalform){
			if (!validchar(personalform.Firstname.value))
				{
				alert("Please check the 'Name' entry. You can type Anonymous if you want....");
				personalform.Firstname.focus();
				personalform.Firstname.select();
				return false;
				}
			
			if (!validphone(personalform.Telephone.value))
				{
				alert("Please check the telephone number!");
				personalform.Telephone.focus();
				personalform.Telephone.select();
				return false;
				}

			if (!validchar2(personalform.comment.value))
				{
				alert("Please check message and avoid using carriage return (Enter key) and invalid characters!");
				personalform.comment.focus();
				personalform.comment.select();
				return false;
				}	

			
			else 
			return true;



		}

		function validchar(field) {

			invalidChars = "/:;#^&*";
			if (field == "") {
				return false;
			}
		
			for (i=0; i<invalidChars.length; i++) {
				badChar = invalidChars.charAt(i);
				if (field.indexOf(badChar,0) > -1) {
					return false;
				}
			}
			
			return true;
		}

		function validchar2(field) {

			invalidChars = "\r#^&";
			if (field == "") {
				return false;
			}
		
			for (i=0; i<invalidChars.length; i++) {
				badChar = invalidChars.charAt(i);
				if (field.indexOf(badChar,0) > -1) {
					return false;
				}
			}
			
			return true;
		}
		
		function validphone(field) {

			OKChars = "1234567890-/";
			if (field == "") {
				return false;
			}
		
			for (i=0; i<field.length; i++) {
				Char = field.charAt(i);
				if (OKChars.indexOf(Char,0) < 0) {
					return false;
				}
			}
			
			return true;
		}

		function validEmail(email) {
			invalidChars = "/:,;";
			if (email == "") {
				return false;
			}
		
			for (i=0; i<invalidChars.length; i++) {
				badChar = invalidChars.charAt(i);
				if (email.indexOf(badChar,0) > -1) {
					return false;
				}
			}
		
			atPos = email.indexOf("@",1);
			if (atPos == -1) {
				return false;
			}
			if (email.indexOf("@", atPos+1)>-1) {
				return false;
			}
			periodPos = email.indexOf(".",atPos);
			if (periodPos == -1) {
				return false;
			}
			if (periodPos+2 > email.length) {
				return false;
			}
			return true;
		}