function rd(valor){for(i=0;i<valor.length;i++)if(valor[i].checked) return valor[i].value;}
function $(el){return document.getElementById(el);}

function imn(o,e){
if (o.style.display == "none"){o.style.display = "";if(e != '') {$(e).className = "mas"; }
}else{o.style.display = "none";if(e != '') {$(e).className = "";}}
}

function j(Elemento){$(Elemento).focus(); $('f-'+$(Elemento).alt).innerHTML = '<span  class="fr-1" style="position:absolute"></span><span  class="fr-2">'+$(Elemento).title+'</span>';  }
function e(Elemento){$('f-'+$(Elemento).alt).innerHTML = ''}
function r(c1, c2, orig)
{
	str 	= new String(orig);
	rExp	= "/"+c1+"/g";
	rExp	= eval(rExp);
	newS	= String(c2);
	str = new String(str.replace(rExp, newS));
	return str;
}


function ax(){
	var xmlhttp=false;
	try {
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
		try {
		   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (E) {
			xmlhttp = false;
  		}
	}

	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		xmlhttp = new XMLHttpRequest();
	}
	return xmlhttp;}

