function tdmouseover(el) {
	el.style.color = "yellow";
	el.style.backgroundColor = "#c0c0c0";
}

function tdmouseout(el) {
	el.style.color = "black";
	el.style.backgroundColor = "white";
}


function ShowHideElement(id) {
	var lista=$(id);	
	if (lista.style.display=='none' || lista.style.display=='') {
		lista.style.display = 'block';
	}
	else {
		lista.style.display = 'none';		
	} 
}

function ShowHide(id) {
	var lista=document.getElementById(id);	
	if (lista.style.display=='none' || lista.style.display=='') {
		 HideAll();
		lista.style.display = 'block';
	}
	else {
		 HideAll();
		//lista.style.display = 'none';		
	} 
}

function HideAll() {
	document.getElementById('SearchTable').style.display = 'none';	
	document.getElementById('registoTable').style.display = 'none';	
}

function ShowHide2(id) {
	var lista=document.getElementById(id);	
	if (lista.style.overflow=='hidden' || lista.style.overflow=='') {
		 HideAll2();
		lista.style.overflow = 'visible';
	}
	else {
		 HideAll2();
		//lista.style.display = 'none';		
	} 
}


function HideAll2() {
	document.getElementById('SearchTable').style.overflow = 'hidden';	
	document.getElementById('registoTable').style.overflow = 'hidden';	
}


function loadURL(DivID,url_) {
	var date = new Date();
	var d  = date.getDate();
	var randomnumber=Math.floor(Math.random()*111010101);
	new Request.HTML({
		url:url_,
		method: 'get',
		update: $(DivID),
		data: 'date='+randomnumber,
		evalScripts: true	
	}).send();
}

// mootools 1
function sendForm(DivID,formulario,url) {
	$(formulario).action=url;
	$(formulario).send({
		method: 'get',
		evalScripts: true,
		update: DivID
		});
}



