function zebra(s_classname, s_tagname, s_skiptag)
{
	if(s_classname 	== '') s_classname 	= 'zebra';
	if(s_tagname 		== '') s_tagname 		= 'stripe';
	if(s_skiptag 		== '') s_skiptag 		= 'skip';

	var a_element = document.getElementsByTagName('table');
	if(!a_element) return;

	var i_size = a_element.length;
	for(var i=0; i < i_size; i++)
	{
		var o_item = a_element[i];

		var pattern = new RegExp(s_classname,"i");
		if(!pattern.test(o_item.className)) continue;

		var o_header = o_item.firstChild;
		if(!o_header) continue;

		while(o_header && o_header.nodeName != 'TBODY') o_header = o_header.nextSibling;
		if(!o_header) continue;

		//var a_row = o_item.childNodes[1].childNodes;
		var a_row = o_header.childNodes;
		if(!a_row) continue;

		var b_stripe = true;
		var i_rowsize = a_row.length;
		for(var j=0; j < i_rowsize; j++)
		{
			var o_obj = a_row[j];
			if(!o_obj) continue;
			if(o_obj.nodeName != 'TR') continue; 

			(o_obj.className != s_skiptag && b_stripe) ? o_obj.className = s_tagname : b_stripe = false;
			b_stripe = !b_stripe;
		}
	}
}

function hoverover(obj)
{
	obj.style.cursor = 'hand';
	var clr = '#eaeaea';
	obj.style.backgroundColor  = clr;
}
function hoverout(obj)
{
	var clr = '';
	obj.style.backgroundColor = clr;	
}
function details(href)
{
	if(href == "") return true;
	window.location.href = href;
}
