function jumplink(genre) {
loc=document.genreform.genrelist.options
    [document.genreform.genrelist.selectedIndex].value;
location.href = loc
}

function flash() {
    new Fx.Color('update', 'color', {duration:2500}).fromColor('#008000');
}

function disableForm(form) {
    if($type(form) == 'string') var form = $(form);
    $ES('*', form).each(function(el, i) {
	el.setProperty('disabled','true');
    });
}


var myWindow;
function openCenteredWindow(url, mWidth, mHeight) {
    var width = mWidth;
    var height = mHeight;
    var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    var windowFeatures = "width=" + width + ",height=" + height + 
        ",left=" + left + ",top=" + top + 
        "screenX=" + left + ",screenY=" + top;
    myWindow = window.open(url, "subWind", windowFeatures);
}

function jumplink(artist) {
loc=document.artistform.artistlist.options
    [document.artistform.artistlist.selectedIndex].value;
location.href = loc
}

var Color = new Array();
Color[7] = "#fff200";
Color[6] = "#ffe900";
Color[5] = "#ffce00";
Color[4] = "#ffac00";
Color[3] = "#ff8a00";
Color[2] = "#ff6f00";
Color[1] = "#ff6600";
var errorElement; 

function fadeIt(where, el) {
    errorElement = el;
    fadeIn(where);
}
function fadeIn(where) {
    element = document.getElementById(errorElement);
    element.style.display = 'block';
  if (where >= 1) {
      element.style.backgroundColor =  Color[where];
    if (where > 1) {
      where -= 1;
      if(where == 6) {
	  setTimeout("fadeIn("+where+")", 1000);
      } else {
	  setTimeout("fadeIn("+where+")", 100);
      }
    } else {
      where -= 1;
      setTimeout("fadeIn("+where+")", 100);
    }
  }
}
