// JavaScript Document

var popUpWin =0;
function popUpWindow(URLStr, left, top, width, height,scrollb)
{
  width = width + 40;
  height = height + 20;
  left = screen.width/2 - width/2
  top = screen.height/2 - height/2
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin= open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+scrollb+',resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

var popUpWin2 =0;
function popUpWindow2(URLStr, left, top, width, height)
{
  left = screen.width/2 - width/2
  top = screen.height/2 - height/2
  if(popUpWin2)
  {
    if(!popUpWin2.closed) popUpWin2.close();
  }
  popUpWin2 = open(URLStr, 'popUpWin2', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}



function confirmar(pregunta,texto,opcion,id_registro,form)
{
	var question =  pregunta + "\n" + texto;
	var respuesta=confirm(question); 
		if (respuesta==true) 
		{
		 form.opcion.value=opcion;
		 form.id_registro.value=id_registro;
		 form.submit();
		} 
		else
		{
		 form.opcion.value='';
		 form.id_registro.value='';
		 return;
		}
}


minsize=8;
maxsize=18;
deft=10;
actual=13;

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";
}


function printPage() { print(document); }


