function changeListRowActivation(id) {
    var node = dojo.byId(id);
    console.debug(node);
    if(node) {
        if(dojo.hasClass(node, 'activated-list-row')) {
            dojo.removeClass(node, 'activated-list-row');
        } else {
            dojo.addClass(node, 'activated-list-row');
        }
    }
}

function unique(a)
{
   var r = new Array();
   o:for(var i = 0, n = a.length; i < n; i++) {
      for(var x = i + 1 ; x < n; x++)
      {
         if(a[x]==a[i]) continue o;
      }
      r[r.length] = a[i];
   }
   return r;
}

function wwsPopup(url, title, width, height, options) {
    var w = 1024, h = 768;
    if (document.all || document.layers) {
        w = screen.availWidth;
        h = screen.availHeight;
    }

    var posX = (w - width) / 2
    var posY = (h - height) / 2;
    var wdw = window.open(url, title, "width="+width+",height="+height+","+options+",left="+posX+",top="+posY+",screenX="+posX+",screenY="+posY);
    wdw.focus();
    return wdw;
}
