/**
@param string rowid the id o fthe row you want to make disappear
@param oject  opts  Effect options such as {duration:3}
*/
function fadeTableRow(rowid,opts){
    if(!opts){
        opts = {};
    }
    var row  = $(rowid);
    var cells= row.childNodes;
    for(i=0;i<cells.length;i++){
        if(cells[i].tagName == 'TD'){
            new Effect.Fade(cells[i],opts);
        }
    }
    new Effect.Fade(row,opts);
}

function showLoader()
{
        var el = $('loader');
		if(el != undefined)
			el.parentNode.removeChild(el);
			
		//create div and set attributes
		el = document.createElement('div');
		el2 = document.createElement('div');
		el.appendChild(el2);
		el.setAttribute('id','loader' );
		el.style.display = 'none';
		
		el2.innerHTML = '<img src="/images/spinner.gif" />';
		
		//insert the div before all else in the DOM's body
		var parent = document.getElementsByTagName('body').item(0);
		parent.insertBefore(el,parent.firstChild);
		
		Effect.Appear('loader',{ duration: 0.5});//pretty effects
}

function hideLoader()
{
	Effect.Fade('loader',{ duration: 0.5});//pretty effects
}