/* <![CDATA[ */
function check(e) {
	ok = "1234567890qwertyuiop[]asdfghjklzxcvbnm.@-_QWERTYUIOPASDFGHJKLZXCVBNM";
	for(h=0; h < e.length ;h++){
		if(ok.indexOf(e.charAt(h))<0){ 
			return (false);
		}		
	} 
	if (document.images) {
		re = /(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;
		re_two = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
		if (!e.match(re) && e.match(re_two)) {
			return (-1);		
		} 
	}
}

function check_f(f){
	if(f.name.value.length < 1){
		alert("Please enter your name");
		f.name.focus();
		return (false);
	}
	if(f.telephone.value.length < 1){
		alert("Please enter your telephone number");
		f.telephone.focus();
		return (false);
	}
	if(!check(f.email.value)){
		alert("Please enter a valid e-mail address");
		f.email.focus();
		return (false);
	}		
	if(f.message.value.length < 1){
		alert("Please enter a short message");
		f.message.focus();
		return (false);
	}
}
/* ]]> */