<!-- Begin hiding from old browsers
/*Break frames*/
     if (top.frames.length!=0)
     top.location=self.document.location;
/*Pop-up page, variable width, height; closes when focus is lost*/
var openwin = null;
function KeepTop ()
{
   if (openwin != null && openwin.open) openwin.close();
}
function WinSize(loc,winwidth,winheight)
{
wintype =
'width='+winwidth+',height='+winheight+',toolbar=no,menubar=no,location=no,status=no,copy history=no,scrollbars=yes,resizable=yes,top=0,left=0,screenX=0,screenY=0';
openwin = window.open(loc,'CtrlWindow',wintype);
}
window.onfocus=KeepTop;
/*Forms Handler: Recommend page; Email This*/
function reset() {
document.emailform.visitorname.value="";
document.emailform.visitormail.value="";
document.emailform.friendname.value="";
document.emailform.friendmail.value="";
document.emailform.name.value="";
document.emailform.fromemail.value="";
document.emailform.toemail.value="";
}
function checkFields() {
if ( (document.emailform.visitorname.value=="")  ||
     (document.emailform.visitormail.value=="") ||
     (document.emailform.friendname.value=="") ||
     (document.emailform.friendmail.value=="") )
   {
   alert("Please enter your Name and Email Address, and your friend's Name and Email Address. \n\nThen re-submit this form.");
   return false;
   }}
function fieldsCheck() {
if ( (document.emailform.name.value=="")  ||
     (document.emailform.fromemail.value=="") ||
     (document.emailform.toemail.value=="") )
   {
   alert("Please enter your Name and Email Address, and the Recipient\'s Email Address. \n\nThen re-submit this form.");
   return false;
   }}
/*Disable Submit While Sending*/
function disableForm(theform) {
if (document.all || document.getElementById) {
for (i = 0; i < theform.length; i++) {
var tempobj = theform.elements[i];
if (tempobj.type.toLowerCase() == "submit" || tempobj.type.toLowerCase() == "reset")
tempobj.disabled = true;
}}}
/*Block right clicks*/ 
var message="Please write the webmaster for permission to use materials from this site.  Thanks!";
 function click(z) {
  if (document.all) {
   if (event.button == 2) {
    alert(message);
    return false;
   }
  }
  if (document.layers) {
   if (z.which == 3) {
    alert(message);
    return false;
   }
  }
 }
 if (document.layers) {
  document.captureEvents(Event.MOUSEDOWN);
 }
 document.onmousedown=click;
// End hiding from old browsers-->
