function showImage(myPage, myName)
 {
   var winl = (screen.width - 600)/2;
   var wint = (screen.height - 600)/2;
   winprops = 'height = 500, width = 600, top = ' + wint + ', left = ' + winl + ', scrollbars=yes, resizeable';
   win = window.open(myPage, myName, winprops);
   if (parseInt(navigator.appVersion) >= 4)
     win.window.focus();
 }  // End the showImage function

function showPage(myPage, myName)
 {
   var winl = (screen.width - 600)/2;
   var wint = (screen.height - 600)/2;
   winprops = 'height = 500, width = 600, top = ' + wint + ', left = ' + winl + ', scrollbars=yes, status = yes, toolbar = yes, menubar = yes, resizeable';
   win = window.open(myPage, myName, winprops);
   if (parseInt(navigator.appVersion) >= 4)
     win.window.focus();
 }

function checkCommentIn()
 {
   var goodMsg = 0
   if ((document.COMMENTS.name.value == "") && (document.COMMENTS.email.value == ""))
     alert("Must have a name OR an email address");
   else if (document.COMMENTS.email.value != "")
    {
      var em = document.COMMENTS.email.value;
      var index = em.indexOf("@");
      if (index < 0)
        alert("Something is wrong with your email address, missing @ sign");
      else if (em.indexOf(".") < 0)
        alert("Email address is missing dot");
      else
        goodMsg = 1;
    }  // End the else if
   if (document.COMMENTS.comment.value == "")
    {
      goodMsg = 0;
      alert("Please share with us a comment");
    }
   else
    {
      document.COMMENTS.camefrom.value = document.COMMENTS.comment_topic.value;
      if (document.COMMENTS.name.value == "")
        document.COMMENTS.name.value = "null";
      if (document.COMMENTS.email.value == "")
        document.COMMENTS.email.value = "null";
      goodMsg = 1;
    }  // End the else
   if (goodMsg)
     document.COMMENTS.submit();
 }

function getPageIndex()
 {
   if (document.page_index.comment_topic.selectedIndex > 0)
     document.page_index.camefrom.value = (document.page_index.comment_topic.selectedIndex + 3);
   document.page_index.submit();
 }  

