// SHOW & HIDE DIVS

function showhide(layer_ref,state) {
			if (document.all) { //IS IE 4 or 5 (or 6 beta)
			eval( "document.all." + layer_ref + ".style.display = state");
			}
			if (document.layers) { //IS NETSCAPE 4 or below
			document.layers[layer_ref].display = state;
			}
			if (document.getElementById &&!document.all) {
			hza = document.getElementById(layer_ref);
			hza.style.display = state;
			}
}

function popPage(page, titulo, myWidth, myHeight) {

myWidth=myWidth+20;
myHeight=myHeight+20;

newWind=window.open(page,titulo,"width="+myWidth+",height="+myHeight+",toolbar=no,status=no,scrollbars=yes,location=no,menubar=no,directories=no,resizable=no,screenX=0,screenY=0,top=0,left=0");
		if(newWind.opener == null) {
			newWind.opener = window;
		}
		else {
			newWind.focus();
		}
	}



function resize(winWidth, winHeight) {
br=navigator.appName;

x1=winWidth;
y1=winHeight;
x2=x1+22;
y2=y1+34;

if (br=="Microsoft Internet Explorer")
  {
  window.resizeTo(x2,y2);
  }
else
  {
  window.resizeTo(x1,y1);
  }
}





// SAFE MAIL FUNCTIONS

function safeMail2(tld, domain, user, obj){
  var a,b;
  b = '@';
  a = 'mai';
  a+= 'lto:';
  user+= b + domain + '.' + tld;
  obj.href = a+user;
 }

function safeMail(text, domain, user, sub){
  var a,b,c;
  a = '<' + 'a hr' + 'ef' + '="&#109;&#97;&#105;';
  if(sub!='') b='?subject=' + sub;
  b+= '">';
  a+= '&#108;&#116;&#111;:';
  c = '&#0' + (60 + 4) +';';
  d = '</a>';
  if(text==''){text=user+' ARROBA '+domain;}
  user+= c + domain;
  document.write(a+user+b+text+d);
}








