
function NewWindow(mypage, myname, w, h, scroll)
{
    var winl = (screen.width - w) / 2;
    var wint = (screen.height - h) / 2;

        winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'

        window.opener = this.window;

        window.open(mypage, myname, winprops);
}


function openwindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

function abrirventana1() {
window.open('../pdf/ayuda.html','JavaScript','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=1,width=480,height=250,top=80,left=80');
}


function abrirventana2() {
window.open('../pdf/PDF_help.html','JavaScript','toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=1,width=480,height=250,top=80,left=80');
}


//===================== FUNCIONES DE TAMAŅO DEL TEXTO  ==============

var ACTUAL_FONTSIZE = 11;
var SMALLEST_FONTSIZE = 10;
var LARGEST_FONTSIZE = 22;


function ChangeProp(objName,x,theProp,theValue) { //v6.0
  var obj = FindObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}

function masGrande() {
  ACTUAL_FONTSIZE = ACTUAL_FONTSIZE+2;
  if (ACTUAL_FONTSIZE > LARGEST_FONTSIZE) { ACTUAL_FONTSIZE = LARGEST_FONTSIZE }
  ChangeProp('texto','','style.fontSize',ACTUAL_FONTSIZE,'SPAN');
  ChangeProp('texto2','','style.fontSize',ACTUAL_FONTSIZE,'SPAN');
   //SaveActualFontSize();
  //extenderDIV();
}

function masChica() {
  ACTUAL_FONTSIZE = ACTUAL_FONTSIZE-2
  if (ACTUAL_FONTSIZE < SMALLEST_FONTSIZE) { ACTUAL_FONTSIZE = SMALLEST_FONTSIZE }
  ChangeProp('texto','','style.fontSize',ACTUAL_FONTSIZE,'SPAN');
  ChangeProp('texto2','','style.fontSize',ACTUAL_FONTSIZE,'SPAN');
  //SaveActualFontSize();
  //extenderDIV();
}

function FindObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document;
  if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
  }
  if(!(x=d[n])&&d.all) x=d.getElementById(n);
  for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=FindObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

