function DISCLAIMER(){
document.write(' This site is the unofficial site of the FHS Panthers hockey team and is operated by a fan. &nbsp; &nbsp; &nbsp;  This site has no affiliation to Franklin Public Schools, the Franklin High School ice hockey team<br /> or Franklin Ice Arena. The opinions are mine and do not reflect the views of the school, the team or the ice arena   Every effort is made to make sure  the information is accurate ');
}

function RIGHTS(){
document.write(' &copy; 2008 Franklin High School Boosters &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; <a href="http://www.elliottgraphics.net" OnFocus="this.blur()" target="_blank">Site by Elliott Graphics</a> ');
}

function OPENWINDOW(page) {
OpenWin = this.open(page, "CtrlWindow", "scrollbars=no,resizable=yes,height=400,width=400");
}

function NAV() {
document.write(' <a href="index.html" class="nav" OnFocus="this.blur()">Home</a> &nbsp;  ');
document.write(' <a href="varsity.html" class="nav" OnFocus="this.blur()">Varsity</a> &nbsp;  ');
document.write(' <a href="junior_varsity.html" class="nav" OnFocus="this.blur()">Junior Varsity</a> &nbsp;  ');
document.write(' <a href="booster_club.html" class="nav" OnFocus="this.blur()">Booster Club</a> &nbsp;  ');
document.write(' <a href="photo_gallery.html" class="nav" OnFocus="this.blur()">Photo Gallery</a> &nbsp;  ');
document.write(' <a href="off_season.html" class="nav" OnFocus="this.blur()">The Off-Season</a> &nbsp;  ');
document.write(' <a href="history.html" class="nav" OnFocus="this.blur()">History/Alumni</a> &nbsp;  ');
document.write(' <a href="links.html" class="nav" OnFocus="this.blur()">Links</a> &nbsp;  ');
document.write(' <a href="tv.html" class="nav" OnFocus="this.blur()">TV schedule</a> &nbsp;  ');
document.write(' <a href="sponsors.html" class="nav" OnFocus="this.blur()">Sponsors</a> &nbsp;  ');
document.write(' <a href="merchandise.html" class="nav" OnFocus="this.blur()">Merchandise</a> ');
}

function NAVSUB() {
document.write(' <a href="../index.html" class="nav" OnFocus="this.blur()">Home</a> &nbsp;  ');
document.write(' <a href="../varsity.html" class="nav" OnFocus="this.blur()">Varsity</a> &nbsp;  ');
document.write(' <a href="../junior_varsity.html" class="nav" OnFocus="this.blur()">Junior Varsity</a> &nbsp;  ');
document.write(' <a href="../booster_club.html" class="nav" OnFocus="this.blur()">Booster Club</a> &nbsp;  ');
document.write(' <a href="../photo_gallery.html" class="nav" OnFocus="this.blur()">Photo Gallery</a> &nbsp;  ');
document.write(' <a href="../off_season.html" class="nav" OnFocus="this.blur()">The Off-Season</a> &nbsp;  ');
document.write(' <a href="../history.html" class="nav" OnFocus="this.blur()">History/Alumni</a> &nbsp;  ');
document.write(' <a href="../links.html" class="nav" OnFocus="this.blur()">Links</a> &nbsp;  ');
document.write(' <a href="../tv.html" class="nav" OnFocus="this.blur()">TV schedule</a> &nbsp;  ');
document.write(' <a href="../sponsors.html" class="nav" OnFocus="this.blur()">Sponsors</a> &nbsp;  ');
document.write(' <a href="../merchandise.html" class="nav" OnFocus="this.blur()">Merchandise</a> ');
}

function showhide(id){ 
if (document.getElementById){ 
obj = document.getElementById(id); 
if (obj.style.display == "none"){ 
obj.style.display = ""; 
document.getElementById('def').style.visibility="hidden";
} else {
obj.style.display = "none";
document.getElementById('def').style.visibility="visible";
} 
} 
}


function VALIDATEALL()
{ 
 Status=VALIDFIRST();
 if (Status==false)
  {return Status;}
 Status=VALIDLAST();
 if (Status==false)
  {return Status;}
 Status=VALIDADDRESS(); 
 if (Status==false)
  {return Status;}
 Status=VALIDCITY(); 
 if (Status==false)
  {return Status;}
 Status=VALIDSTATE(); 
 if (Status==false)
  {return Status;}
 Status=VALIDZIP();
 if (Status==false)
  {return Status;}
 Status=VALIDPHONE();
 if (Status==false)
  {return Status;}
 Status=VALIDEMAIL();
 if (Status==false)
  {return Status;}
}

function VALIDFIRST()
  {
  if(document.CONTACTForm.realname.value == "")  
    {
	 document.CONTACTForm.realname.focus();
    alert("You must Enter Your First Name");
    return false;
    }
  return true;
  }

function VALIDLAST() 
  {
  if(document.CONTACTForm.LAST.value == "")  
    {
	 document.CONTACTForm.LAST.focus(); 
    alert("You must Enter Your Last Name");
    return false;
    }
  return true;
  }

function VALIDADDRESS() 
  {
  if(document.CONTACTForm.ADDRESS.value == "")  
    {
	 document.CONTACTForm.ADDRESS.focus();
    alert("You must Enter Your Address");
    return false;
    }
  return true;
  }

function VALIDCITY() 
  {
  if(document.CONTACTForm.CITY.value == "")
    {
    document.CONTACTForm.CITY.focus();
	 alert("You must Enter Your City");
    return false;
    }
  return true;
  }

function VALIDSTATE()
  {
  if(document.CONTACTForm.STATE.value == "")
    {
    document.CONTACTForm.STATE.focus();
	 alert("You must Enter Your State");
    return false;
    }
  return true;
  }

function VALIDZIP() 
  {
  if(document.CONTACTForm.ZIP.value == "")
    {
    document.CONTACTForm.ZIP.focus();
	 alert("You must Enter Your Zip Code");
    return false;
    }
  return true;
  }

function VALIDPHONE() 
  {
  if(document.CONTACTForm.PHONE.value == "")
    {
    document.CONTACTForm.PHONE.focus();
	 alert("You must your phone number");
    return false;
    }
  return true;
  }

function VALIDEMAIL () 
  {
   invalidChars = " /:,;";
   if(document.CONTACTForm.email.value == "") 
     {
     document.CONTACTForm.email.focus();
     alert("You must enter a valid email address");
     return false;
     }
   atPos = document.CONTACTForm.email.value.indexOf("@",1);
	if(atPos == -1)
     {
     document.CONTACTForm.email.focus();
	  alert("You must enter a valid email address");
     return false;
     }
   if(document.CONTACTForm.email.value.indexOf("@",atPos+1) != -1)
     {
     document.CONTACTForm.email.focus();
	  alert("You must enter a valid email address");
     return false;
     }
	periodPos = document.CONTACTForm.email.value.indexOf(".",atPos)
	if(periodPos == -1)
     {
	  document.CONTACTForm.email.focus();
     alert("You must enter a valid email address");
     return false;
     }
	if(periodPos+3 > document.CONTACTForm.email.length)
  	  {
	  document.CONTACTForm.email.focus();
	  alert("You must enter a valid email address");
	  return false;
	  }
	return true;
  }