function go(object) {
  urlValue=object.options[object.selectedIndex].value;
  if ( urlValue ) {
    window.location.href = urlValue;
  }
}

function preCache(imagePath) {
  document.imgArray = new Array();
  for(i=0;i<=preCache.arguments.length;i++) {
    document.imgArray[i] = new Image();
    document.imgArray[i].src = imagePath + "/" + preCache.arguments[i+1];
  }
}

function setStart(obj) {
  obj.setHomePage('http://www.www.ptao.org/');
}

function addFavorite() {
  window.external.AddFavorite('http://www.ptao.org/','PTA of Ontario');
}

function on(item, color) { item.style.background=color; }

function popup(url,title,width,height) {
  options = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no';
  if ( width > 0 ) { options = options + ',width=' + width; }
  if ( height > 0 ) { options = options + ',height=' + height; }
  newWindow = window.open(url,title,options);
  newWindow.focus();
}

function popHelp(helpTitle,topic,entityType,level) {
  width=500;
  height=300;
  url = '/util/help.php3?level=' + level + '&width=' + width + '&entity=' + entityType + '&title=' + helpTitle + '#' + topic;
  popup(url,'popup_help',width,height);
}

function popImg(url,title,source,width,height) {
  width=Number(width)+50;
  height=Number(height)+100;
  url = '/util/img.php3?url=' + url + '&title=' + title + '&source=' + source;
  popup(url,'popup_img',width,height);
}

function closeWin(delay) {
  if (delay > 0) {
    setTimeout("closeWin(0)",delay);
  } else {
    self.close();
  }
}

function delay(waitInterval,commandString) {
  if (waitInterval > 0 ) {
    setTimeout(commandString,waitInterval);
  }
}

function gotoVal(obj) {
  window.location.href = obj.options[obj.selectedIndex].value;
}
