function doWindow(url,width,height,scrollbars){
  var mywin = window.open(url,"newWin","Width="+width+",Height="+height+",Toolbar=0,Location=0,Directories=0,Resizable=0,Status=0,Scrollbars="+scrollbars+",Menubar=0,Copyhistory=0").focus();
}

function confirmURL(strLink,strText){
  if(confirm(strText)==true){
    self.location = strLink;
  }
}

function confirmClick(strText){
  return confirm(strText);
}

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;
}
