function rowout(e){
  e.className = "row_out";

/*  e.style.background = "none"; */
}
function rowover(e){
  e.className = "row_over";


/*
  e.style.background = "#E2F5DC";
  e.style.backgroundImage = "url(/images/rowbg.gif)";
  e.style.backgroundRepeat = "repeat-x";
  e.style.backgroundPosition = "bottom left";
*/
}

function confirm_url (sleturl,cancelurl,confirmtxt) {
  if (confirm(confirmtxt)) {
      location.replace(sleturl);
  } else {
      location.replace(cancelurl);
  }
}

function confirm_submit(confirmtxt){
  if (confirm(confirmtxt)) {
    return true;
  }else{
    return false;
  }
}

addLoadEvent = function(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}

function init_onrowoverout() {
  if(document.getElementsByTagName('html')){
    var tables = document.getElementsByTagName('table');
    for(j=0; j < tables.length; j++){
      if(tables[j].id == 'table_list'){
        var tbody = tables[j].getElementsByTagName('tbody').item(0);
        var rows = tbody.getElementsByTagName('tr');  
        for(i = 0; i < rows.length; i++) {
          if(rows[i].tagName == 'TR'){
            rows[i].onmouseover = function() {rowover(this)};
            rows[i].onmouseout = function() {rowout(this)};
          }
        }
      }
    }
  }
}

addLoadEvent(init_onrowoverout);
