function doWindow(url,width,height,scrollbars){
  var peabPopWin = null;
  var peabPopWin = window.open(url,"peabPopWin","Width="+width+",Height="+height+",Toolbar=0,Location=0,Directories=0,Resizable=1,Status=0,Scrollbars="+scrollbars+",Menubar=0,Copyhistory=0").focus();
}

function setTRColor(theRow, theNewColor){
  var theCells = null;
  
  if(typeof(theRow.style) == 'undefined'){
    return false;
  }
  
  if(typeof(document.getElementsByTagName) != 'undefined'){
    theCells = theRow.getElementsByTagName('td');
  }else if(typeof(theRow.cells) != 'undefined'){
    theCells = theRow.cells;
  }else{
    return false;
  }

  var rowCellsCnt = theCells.length;
  var domDetect = null;
	
  if(typeof(window.opera) == 'undefined' && typeof(theCells[0].getAttribute) != 'undefined'){
    domDetect = true;
  }else{
    domDetect = false;
  }

  if(theNewColor){
    var c = null;
    if(domDetect){
      for(c = 0; c < rowCellsCnt; c++){
        theCells[c].setAttribute('bgcolor', theNewColor, 0);
      }
    }else{
      for(c = 0; c < rowCellsCnt; c++){
        theCells[c].style.backgroundColor = theNewColor;
      }
    }
  }
  return true;
}
