function check_email(e) {
	ok = "1234567890qwertyuiop[]asdfghjklzxcvbnm.@-_QWERTYUIOPASDFGHJKLZXCVBNM";
	for(i=0; i < e.length ;i++){
		if(ok.indexOf(e.charAt(i))<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_form(theform) {
	if(theform.yourname.value=='') {
		alert('Sorry! There seems to be a problem.\nPlease can you enter your name.');
		theform.yourname.style.backgroundColor='yellow';
		theform.yourname.focus();
		return false;
	} else if(!check_email(theform.email.value)) {
		alert('Sorry! There seems to be a problem.\nPlease can you enter a valid e-mail address.');
		theform.email.style.backgroundColor='yellow';
		theform.email.focus();
		return false;
	} else if(theform.comment.value == '') {
		alert('Sorry! There seems to be a problem.\nPlease can you enter your comment.');
		theform.comment.style.backgroundColor='yellow';
		theform.comment.focus();
		return false;
	} else if(theform.captchatext.value=='') {
		alert('Sorry! There seems to be a problem.\nPlease can you answer the question.');
		theform.captchatext.style.backgroundColor='yellow';
		theform.captchatext.focus();
		return false;
	} else {
		theform.doit.value='Please Wait...';
		theform.doit.disabled=true;
		return true;
	}
}
