// JavaScript Document

// Confirmation Delete Action
function Confirm(elem)
{
	result =confirm("Do you really want to delete this user?");
	return result;
}


// Alterning Rows
function alternateRows(x) {
el = document.getElementById(x);
rw = el.getElementsByTagName("tr");
  for (i=1; i<rw.length; i++) rw[i].className = "row" + (i % 2);
  for (z=1; z<rw.length; z++) {
	  rw[z].onmouseover = function () {
		  this.className += " ruled"; return false
		  }
	  rw[z].onmouseout = function () {
		  this.className = this.className.replace("ruled", ""); return false
		  }
	  }
}