function imprimir() {
    version = parseInt(navigator.appVersion);
    if (version >= 4)
      window.print();
  }
  
function autofitIframe(id){
	margen = 70;
	if (!window.opera && !document.mimeType && document.all && document.getElementById){
		altura = margen + this.document.body.offsetHeight;
	}
	else if(document.getElementById) {
		altura = margen + this.document.body.scrollHeight;
	}
	parent.document.getElementById(id).style.height = altura + 'px';
}
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);


function zoomText(Accion,Elemento){
//inicializacion de variables y parámetros 
var obj=document.getElementById(Elemento);
var max = 200 //tamaño máximo del fontSize
var min = 70 //tamaño mínimo del fontSize
if (obj.style.fontSize==""){
obj.style.fontSize="100%";
}
actual=parseInt(obj.style.fontSize); //valor actual del tamaño del texto 
incremento=10;// el valor del incremento o decremento en el tamaño 

//accion sobre el texto 
if( Accion=="reestablecer" ){
obj.style.fontSize="100%"
}
if( Accion=="aumentar" && ((actual+incremento) <= max )){
valor=actual+incremento;
obj.style.fontSize=valor+"%"
}
if( Accion=="disminuir" && ((actual+incremento) >= min )){
valor=actual-incremento;
obj.style.fontSize=valor+"%"
}
} 






