function getById( elemento ) {
	return document.getElementById( elemento );
}
function elemento( elemento ) {
	return getById( elemento );
}

function isVisivel( elemento ) {
	return getById( elemento ).style.display == 'block';
}

function mostra( elemento ) {
	getById( elemento ).style.display = 'block';
}
function esconde( elemento ) {
	getById( elemento ).style.display = 'none';
}

function mostraEsconde( elemento ) {
	if ( isVisivel(elemento) )
		esconde( elemento );
	else
		mostra( elemento );
}

function OpenImg(i, w, h) { //v2.0
	if(w){ w = w; } else{ w = 400; }
	if(h){ h = h; } else{ h = 300; }
	winName = 'Img';
	features = 'toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,resizable=yes,width=' + w + ',height=' + h;
	window.open(i,winName,features);
}
function OpenTxt(i, Oa, Ob, w, h) { //v2.0
	if(w){ w = w; } else{ w = 400; }
	if(h){ h = h; } else{ h = 300; }
	if(Oa){ Oa = Oa; } else{ Oa = 'no'; }
	if(Ob){ Ob = Ob; } else{ Ob = 'no'; }
	winName = 'Img';
	features = 'toolbar=no,location=no,status='+Oa+',menubar=no,scrollbars='+Ob+',resizable=yes,width=' + w + ',height=' + h;
	window.open(i,winName,features);
}
function Mov(obj){
	obj.style.backgroundColor = '#DDDDDD';
}
function Mou(obj){
	obj.style.backgroundColor = '#FFFFFF';
}
function Move(obj){
	obj.style.backgroundColor = '#CCCCCC';
}
function Mout(obj, cor){
	obj.style.backgroundColor = cor;
}
