// Function to clear the word "search" out of the search box in navbar

function clearText(thefield){
  if (thefield.defaultValue==thefield.value)
thefield.value = ""
}


// Function for scrolling through array of pictures

function chgSlide(direction) {
  if (document.images) {
    thisPic = thisPic + direction
    if (thisPic > imgCt) {
      thisPic = 0
    }
    if (thisPic < 0) {
      thisPic = imgCt
    }
    document.myPicture.src=myPix[thisPic]
  }
}

function BBpopup(myURL)
{
  newwindow=window.open(myURL,'card','scrollbars=no,width=525,height=450');
  if (window.focus) {newwindow.focus()}
  return false;
}

function cornerPopup(myURL)
{
  newwindow=window.open(myURL,'card','scrollbars=no,width=350,height=350');
  if (window.focus) {newwindow.focus()}
  return false;
}
