
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+"%"
}
}

function imprimir() {
	if (window.print)
	window.print()
	else
	alert("Disculpe, su navegador no soporta esta opción.");
}

function agregar_favoritos(url,titulo){
if ((navigator.appName=="Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>=4)) {
window.external.AddFavorite(url,titulo);
}
else {
if(navigator.appName == "Netscape") 
alert ("Presione Crtl+D para agregar este sitio en sus Bookmarks");
}
}

function abrir_popup(url,ancho,alto,id,extras){
      if(navigator.userAgent.indexOf("Mac")>0){ancho=parseInt(ancho)+15;alto=parseInt(alto)+15;}
      var left = (screen.availWidth-ancho)/2;
      var top = (screen.availHeight-alto)/2;
      if(extras!=""){extras=","+extras;};
      var ventana = window.open(url,id,'width='+ancho+',height='+alto+',left='+left+',top='+top+',screenX='+left+',screenY='+top+extras);
      var bloqueado = "AVISO:\n\nPara ver este contenido es necesario que desactive\nel Bloqueo de Ventanas para este Sitio."
      //var bloqueado = "WARNING:\n\nIn order to use this functionality, you need\nto deactivate Popup Blocking."
      if(ventana==null || typeof(ventana.document)=="undefined"){ alert(bloqueado) }else{ return ventana; };
}

function chequear_busqueda()
{
  //document.formu.busqueda.value = document.formu.busqueda.value.replace(/ /g, '');
  if(document.formu.busqueda.value == '')
  {
    	alert("Debe Ingresar un texto para Buscar");
    	document.formu.busqueda.focus();
    	return false;
  }else{
    	document.formu.action = document.formu.redireccionar.value;
	document.formu.submit();
	return true;
  }
}




