
	function checkform() {
		var the=document.myform;
		if (the.name.value=="" && the.user_id.value=="") {
			alert('Please enter your name');
			the.name.focus();
			return false;
		}
		if (the.email.value=="" && the.user_id.value=="") {
			alert('Please enter your email address');
			the.email.focus();
			return false;
		}
		if (((the.email.value.indexOf('@')==-1) || (the.email.value.indexOf('.',the.email.value.indexOf('@')+2)==-1) || (the.email.value.lastIndexOf('.')==the.email.value.length-1)) && the.user_id.value=="") {
			alert('Please enter a valid email address.');
			the.email.focus();
			return false;
		}
		if (the.comment.value=="") {
			alert('Please enter text in your message.');
			the.comment.focus();
			return false;
		}
		return true;
	}

 
