function sf(){document.f.search.focus();}
function change(theButton, theImage){
  document.getElementById(theButton).style.backgroundImage  = "url(/graphics/"+theImage+"_an.gif)";
}
function changeBack(theButton,theImage){
 document.getElementById(theButton).style.backgroundImage  = "url(/graphics/"+theImage+"_bar.gif)";
}

function activate(theButton) {
 document.getElementById(theButton).className += " menuButtonActive";
}
function deactivate(theButton) {
 document.getElementById(theButton).className += "menuButton";
}

var fieldstocheck = new Array();
    fieldnames = new Array();

function checkform() {
  for (i=0;i<fieldstocheck.length;i++) {
    if (eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].value") == "") {
      alert("Please enter your "+fieldnames[i]);
      eval("document.subscribeform.elements['"+fieldstocheck[i]+"'].focus()");
      return false;
    }
  }
  return true;
}
function addFieldToCheck(value,name) {
  fieldstocheck[fieldstocheck.length] = value;
  fieldnames[fieldnames.length] = name;
}
