/* <![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.from.value.length < 1){
		alert("Please enter your name");
		f.from.focus();
		return (false);
	}
	if(f.name.value.length < 1){
		alert("Please enter their name");
		f.name.focus();
		return (false);
	}
	if(!check(f.email.value)){
		alert("Please enter their e-mail address");
		f.email.focus();
		return (false);
	}		
}
/* ]]> */
