// JavaScript Document
var oRegex = new Object() ;
oRegex.UriProtocol = /^(((http|https|ftp|news):\/\/)|mailto:)/gi ;

function ofuscarMail() {
var links = document.getElementsByTagName('a');
for (var i = 0; i < links.length; i++) {
	urlUrl = links[i].getAttribute('href');
	urlText = links[i].innerHTML;
	var sProtocol = oRegex.UriProtocol.exec( urlUrl ) ;
	if ( sProtocol ) { urlUrl = urlUrl.substr( sProtocol[0].length ) ;
		if (sProtocol[0] == 'mailto:') { 
			links[i].setAttribute('href', sProtocol[0] + urlUrl.replace('@',' en '));
			links[i].innerHTML = links[i].innerHTML.replace('@',' en ');
		 }
	} 	//else if ( oRegex.UrlOnChangeTestOther.test( urlText ) ) { //GetE('cmbLinkProtocol').value = '' ; }
}
}
function oBi() {
  this.name = navigator.appName; this.codename = navigator.appCodeName; this.version = navigator.appVersion.substring(0,4);
  this.platform = navigator.platform; this.javaEnabled = navigator.javaEnabled();
  this.screenWidth = screen.width;  this.screenHeight = screen.height;
}
function cookieHabilitada() {
var Habilitada = navigator.cookieEnabled; var rEs;
if (Habilitada) rEs = true;
else rEs = false;
return rEs;
}
function pRt(psBarra) { 
var rEs; 
if (psBarra) rEs = location.protocol + "//";
else rEs = location.protocol; 
return rEs; }
function hL(e)  {
if (e) { 
	    if (e.className == "P") { e.className = "T"; }
	    else if (e.className == "T") { e.className = "P"; }
}}
function iRa(href) { location.href=href;}
function dSm(msj) { status=msj;  document.rEs = true;}
function oBw(theURL,winName,features) { window.name='WebPrincipal';  window.open(theURL,winName,features);}
function rPa(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
rPa(true);
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

