<!--
   function validateForm () 
       {if  (document.guestbook.vname.value.length < 1)
            {alert("You have left your name blank.  Please tell us who you are.");
             return false;
            }
        if  (document.guestbook.email.value.length < 1)
            {alert("Please enter your email, even if you do not want it published!");
             return false;
            }
        emailvalue = document.guestbook.email.value;
        emaillen = document.guestbook.email.value.length;
        dotctr = 0;
        atctr = 0;
        for (i=0; i<emaillen; i++)
            {var onechr = emailvalue.substring(i,i+1);
             if  (onechr == '@')
                 {atctr++;}
             if  (onechr == '.')
                 {dotctr++;}
            }
        if  (dotctr == 0 || atctr == 0)
            {alert("Email must be of the form yourname@yourdomain.com!");
             return false;
            }
        commentvalue = document.guestbook.comments.value;
        commentlen = document.guestbook.comments.value.length - 4;
        httpctr = 0;
        urlctr=0
        for (i=0; i<commentlen; i++)
            {var fourchr = commentvalue.substring(i,i+3);
             if  (fourchr == 'http')
                 {httpctr++;}
             if  (fourchr == 'aref')
                 {urlctr++;}
            }
        if  (httpctr > 1 || urlctr > 0)
            {alert("You are a spammer.  Go away and f___ yourself!");
             return false;
            }

        if  (document.guestbook.geoloc.value.length < 1)
            {alert("You forgot to put your geographic location.");
             return false;
            }
        var copieschk = 'n';
        for (i=0; i<4; i++)
            {if  (document.guestbook.copies[i].checked)
                 {copieschk = 'y';}
            }
        if  (copieschk == 'n')
            {alert("Please answer the \"how many copies\" question.");
             return false;
            }
        var howfindchk = 0;
        for (i=0; i<6; i++)
            {if  (document.guestbook.howfind[i].checked)
                  {howfindchk = i + 1;}
            }
        if  (howfindchk == 0)
            {alert("Please tell us how you found this website.");
             return false;
            }
        if  (howfindchk == 2 && document.guestbook.friend.value.length < 1)
            {alert("Please identify the \"friend/relative\" that gave you our website.");
             return false;
            }
        if  (howfindchk == 6 && document.guestbook.others.value.length < 1)
            {alert("Please fill-in the \"please specify\" box on how you found our website.");
             return false;
            }
        if  (document.guestbook.comments.value.length < 1)
            {alert("Surely you have some comments to make (preferably a nice one!).");
             return false;
            }
        if  (document.guestbook.photofile.value.length > 0
             && document.guestbook.caption.value.length < 1)
            {alert("Please put some descriptive caption about your picture.");
             return false;
            }
        return true;
       }

//  -->
