var vEvAnterior;
vEvAnterior=1;
function imprimir(que) {
	var ventana = window.open("", "", "");
	var contenido = "<html><link rel='stylesheet' type='text/css' href='css/estilos.css' /><body style='background:#FFFFFF' onload='window.print();window.close();'><div style='width:570ppx; background:#FFFFFF'>" + document.getElementById(que).innerHTML + "</div></body></html>";
	ventana.document.open();
	ventana.document.write(contenido);
	ventana.document.close();
}
function zoomText(Accion,Elemento)
{	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=="normal" ){
		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+"%"
	}
} 
function NewWindow(mypage,myname,w,h,scrollbar,resi)
{	LeftPosition = (screen.width-w)/2
	TopPosition = (screen.height-h)/2 
	settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scrollbar+',resizable='+resi+',toolbar=no,directories=no,menubar=no,status=no'
	//window.open(mypage,myname,settings);
	
	var vent ;
	 vent =open(mypage,vent,settings);
	 vent.focus();
}
function changeSize(pVal)
{	var eventos = new Array();
	var pTxtSalida;
	eventos[0] = "disminuir";
	eventos[1] = "normal";
	eventos[2] = "aumentar";
	if(pVal!="3")
	{	switch(pVal)
		{	case 0:
				if((vEvAnterior=="1")||(vEvAnterior=="0"))
				{	document.getElementById("Tamizar").innerHTML='Tama&ntilde;o texto <a href="javascript:changeSize(3);" class="zoom10" title="Disminuir">A</a> <a href="javascript:changeSize(1);" class="zoom11" title="Normal">A</a> <a href="javascript:changeSize(2);" class="zoom12" title="Agrandar">A</a>';	}
				else
				{	document.getElementById("Tamizar").innerHTML='Tama&ntilde;o texto <a href="javascript:changeSize(0);" class="zoom10" title="Disminuir">A</a> <a href="javascript:changeSize(3);" class="zoom11" title="Normal">A</a> <a href="javascript:changeSize(2);" class="zoom12" title="Agrandar">A</a>';	}
				break;
			case 1:	document.getElementById("Tamizar").innerHTML='Tama&ntilde;o texto <a href="javascript:changeSize(0);" class="zoom10" title="Disminuir">A</a> <a href="javascript:changeSize(3);" class="zoom11" title="Normal">A</a> <a href="javascript:changeSize(2);" class="zoom12" title="Agrandar">A</a>';break;
			case 2:	
				if((vEvAnterior=="1")||(vEvAnterior=="2"))
				{	document.getElementById("Tamizar").innerHTML='Tama&ntilde;o texto <a href="javascript:changeSize(0);" class="zoom10" title="Disminuir">A</a> <a href="javascript:changeSize(1);" class="zoom11" title="Normal">A</a> <a href="javascript:changeSize(3);" class="zoom12" title="Agrandar">A</a>';	}
				else
				{	document.getElementById("Tamizar").innerHTML='Tama&ntilde;o texto <a href="javascript:changeSize(0);" class="zoom10" title="Disminuir">A</a> <a href="javascript:changeSize(3);" class="zoom11" title="Normal">A</a> <a href="javascript:changeSize(2);" class="zoom12" title="Agrandar">A</a>';	}
				break;
		}
		zoomText(eventos[pVal],"Lectura");
		vEvAnterior=pVal;
	}
}