<!-- misc -->
function changeStyle(id,nr) {
  document.getElementById("tab1_"+id).className='header_tab_l'+nr;
  document.getElementById("tab2_"+id).className='header_tab_r'+nr;
  document.getElementById("tab3_"+id).className='header_tab_m'+nr;
}

<!-- preview -->
var idPlaying = 0;
function openPreview(id, muteLink) {
  SoundExplorer = window.open(id, "SoundExplorer", "width=320,height=220,location=no");
  wid = (screen.width - 320)/2;
  hei = (screen.height - 220)/2;
  if (wid > 0 && hei > 0) {
    SoundExplorer.moveTo(wid, hei);
  }
  SoundExplorer.focus();
}
function closePreview() {
  openPreview(idPlaying);
}

<!-- Sound Explorer -->
var SoundExplorer;          // the popup window
function startSoundExplorer(link) {
  //window.name='soundon';
  try {
    SoundExplorer.focus();
  }
  catch (e) {
    SoundExplorer = window.open(link, "SoundExplorer", "width=320,height=280,location=no");
    wid = (screen.width - 320)/2;
    hei = (screen.height - 220)/2;
    if (wid > 0 && hei > 0) {
      SoundExplorer.moveTo(wid, hei);
    }
  }
}
function muteSoundExplorer(muteLink) {
  try {
    if (window.name == 'soundon') {
      SoundExplorer = window.open(muteLink, "SoundExplorer", "width=320,height=280,location=no");
      SoundExplorer.blur();
    }
  }
  catch (e) { }
}
function endSoundExplorer(windowClosed) {
  SoundExplorer = null;
  window.name='soundoff';
}
function reportAlive() {
  window.name='soundon';
}

<!-- mod_editplaylist.jsp -->
function checkTA(counterField, formField, maxl) {
  if (maxl < formField.value.length) formField.value = formField.value.substr(0, maxl);
}

<!-- mod_mymusic_header.jsp -->
function changeTStyle(id,nr) {
  document.getElementById("mtab1_"+id).className='header_tab_l'+nr;
  document.getElementById("mtab2_"+id).className='header_tab_r'+nr;
  document.getElementById("mtab3_"+id).className='header_tab_m'+nr;
}

<!-- mod_mypreferences.jsp -->
function selectall(mgname, value) {
  elems = document.genreform.elements;
  for (var i=0; i<elems.length; i++) {
    if (elems[i].name.lastIndexOf(mgname)>=0){
      document.getElementsByName(elems[i].name)[0].checked = value;
    }
  }
}
function setCheckboxes(contentClusterId, val) {
  var elems = document.genreform.elements;
  for (var i = 0; i < elems.length; i++) {
    if (elems[i].type == 'checkbox' && elems[i].value.indexOf(contentClusterId) == 0){
      document.getElementsByName(elems[i].name)[0].checked = val;
    }
  }
}