var sNameCookie="GalleryName";
var sEmailCookie="GalleryEmail";

function validateForm() {
   var o = document.getElementById("comment");
   if(o.value=='') {
      alert("Comment is required");
	  o.focus();
	  return false
   }
   if(!checkLen(o,500)) {
      alert("Sorry, there is a 500-character limit for the comment");
	  o.focus();
	  return false
   }
   o = document.getElementById("name");
   if(o.value=='') {
      alert("Name is required");
	  o.focus();
	  return false
   }
   o = document.getElementById("email");
   if(o.value=='') {
      alert("Email address is required");
	  o.focus();
	  return false
   }
   if(!checkEmail(o.value)) {
      alert("Email address is invalid");
	  o.focus();
	  return false
   }
   return true
}
function sayWhy() {
   alert('Sorry for the inconvenience, but this site was overridden by an army of\nscum-sucking spammers.  Spambots have a hard time figuring out things like\nthe code at left, so this blocks them.  I just want to make sure you\'re\na human who actually wants to comment on the image!');
}

