
var cnt=0;
function Slide(){
  cnt++;
  cnt%=8;
  num=cnt+1;
  document.SlideShow.src="./Photos/s-meeting"+num+".jpg";
}


function AvoidBlankName(){
  if(document.add.nm.value==''){
    alert("You cannot leave this blank");
    document.add.nm.focus();
  }
}
function AvoidBlankEvent(){
  if(document.add.event.value==''){
    alert("You cannot leave this blank");
    document.add.event.focus();
  }
}
function AvoidBlankDate(){
  if(document.add.date.value==''){
    alert("You cannot leave this blank");
    document.add.detail.value="Detail";document.add.detail.focus();
    document.add.date.focus();document.add.detail.value="";
  }
}
function AvoidBlankDetail(){
  if(document.add.detail.value==''){
    alert("You cannot leave this blank");
    document.add.nm.focus();document.add.detail.focus();
  }
}


//focus() works when it was not at the originating form
var visible=true; var prevLayer=false;
function HiddenDetail(nmLayer){
//HONORARY'S HIDE (ERASE FOOTER)
  if(nmLayer=='BLANK'){
    if(document.layers){//NN
      document.layers['footer'].visibility="show";}
    if(document.getElementById){//IE and NC6
      document.getElementById('footer').style.visibility="visible";}
  }else{
    if(document.layers){//NN
      document.layers['footer'].visibility="hide";}
    if(document.getElementById){//IE and NC6
      document.getElementById('footer').style.visibility="hidden";}
  }
//http://www.quirksmode.org/js/select.html
  if(nmLayer=='h'){
    box=document.forms['H'].list; //alert(box.selectedIndex);
    id=box.options[box.selectedIndex].value;
    if( id ) nmLayer=id;
  }else if(nmLayer=='o'){
    box=document.forms['O'].list; //alert(box.selectedIndex);
    id=box.options[box.selectedIndex].value;
    if( id ) nmLayer=id;
  }
//http://www.usagi-js.com/ ?
  if(document.layers){//NN
    if(prevLayer){ document.layers[prevLayer].visibility="hide";}
    else if(prevLayer==nmLayer){ document.layers[nmLayer].visibility="hide";}
    document.layers[nmLayer].visibility="show";}
  if(document.getElementById){//IE and NC6
    if(prevLayer){ document.getElementById(prevLayer).style.visibility="hidden";}
    else if(prevLayer==nmLayer){ document.getElementById(nmLayer).style.visibility="hidden";}
    document.getElementById(nmLayer).style.visibility="visible";}
  prevLayer=nmLayer;
}
  