/**** función para cambiar el tamaño del texto ****/
minsize=8;
maxsize=16;
defecto=10;
actual=10;

function masTxt(div){
actual = actual+1;
if (actual > maxsize) {
actual = maxsize
}
var divID = document.getElementById(div);
divID.style.fontSize = actual+"px";
// px porque estoy usando css
}

function menosTxt(div) {
actual = actual-1;
if (actual < minsize) {
actual = minsize
}
var divID = document.getElementById(div);
divID.style.fontSize = actual+"px";
}

/**** función para manejar el teclado ****/
function pulsar(e,obj) {
  tecla = (document.all) ? e.keyCode : e.which;
  if (tecla==13 || tecla==32) obj.onclick;
}

// JavaScript Document
function abrirImagen(imageName,imageWidth,imageHeight) {
posLeft=0;
posTop=0;

   newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
   newWindow.document.open();
   newWindow.document.write('<html><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">'); 
   newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt=" ">');
   newWindow.document.write('</body></html>');
   newWindow.document.close();
   newWindow.focus();
}


