// <!--
docRef = document.referrer;
locHost = location.host;

feedbackWindow = "closed";
feedbackForm = "";
function feedBack(reportName){
locHost = location.host;
//alert("reportName = " + reportName)
  if (reportName != "pageError" )
    {
    alert("This option is not yet available for " + reportName + " — but, soon, you can give us input on this activity.")
    }
    else
       {
       if (feedbackWindow != "closed")
         {
         feedbackWindow.close();
         }
       movTo = (screen.width - 300)/2;
       feedbackForm = "../scripts/page_error_feedback_form.html#" + reportName;
       feedbackWindow=window.open(feedbackForm,"feedbackWindow","resizable=yes,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,width=348,height=575")
       feedbackWindow.moveTo(movTo,-2);
       }
}



//Sending = "not"
function checkInfo(){
 if (form1.AccessAttempt1.checked!=1 && form1.AccessAttempt2.checked!=1 && form1.AccessAttempt3.checked!=1)
   {
   alert("Please select one of the three choices at the top of the form.")
   location="#Top";
   stop=1;
   }

 if (hideLine!='1' && form1.lineOne.value=="(Type site's name here.)")
   {
   form1.lineOne.value = "";
   }
 if (form1.lineTwo.value=="http://")
   {
   form1.lineTwo.value = "";
   }
 if (form1.lineThree.value=="http://")
   {
   form1.lineThree.value = "";
   }
 if (form1.lineFour.value=="(Type answer here.)")
   {
   form1.lineFour.value = "";
   }
 if (form1.Comments.value=="Comments?")
   {
   form1.Comments.value = "";
   }
 if (stop!=1 && form1.lineOne.value=="" && form1.lineTwo.value=="" && form1.lineThree.value=="" && form1.Comments.value=="")
   {
   msgL1 = "Please provide information in one of the first "
   if (topLines==3)
     {
     msgL2 = "three";
     }
     else msgL2 = "two";
   msgL3 = " blanks or the Comments box so we can try to find a solution."
     alert(msgL1 + msgL2 + msgL3)
   stop=1;
   location="#Middle";
   }
 if ( (stop!=1 && form1.replyRequested.checked==true) && (form1.lineFive.value=="" || form1.lineFive.value=="YourUserName@yourISP.com") )
   {
   alert("Enter your e-mail address or uncheck box.")
   location="#E-mail";
   stop=1;
   }
}

stop=0;
function feedbackSubmit(){
  checkInfo();
  if (stop!=1 && confirm("O.k. to send feedback?"))
     {
     form1.submit();
     }
     else stop=0;
}

hideLine = 0;
topLines = 3;
function showHide(hideLine){
  if (hideLine=='1')
    {
    OtherSite.style.visibility = "hidden"
    topLines = 2;
    }
  if (hideLine!='1')
    {
    OtherSite.style.visibility = "visible"
    topLines = 3;
    }

}

// -->
