// POPUP
function Popup(url,name,width,height,resize,scroll) {
var dialogWin = new Object();
dialogWin.width = width;
dialogWin.height = height;
now = new Date();
var millis=now.getTime();
var mstr=""+millis;
if (navigator.appName == "Netscape") {
dialogWin.left = window.screenX + ((window.outerWidth - dialogWin.width) / 2);
dialogWin.top = window.screenY + ((window.outerHeight - dialogWin.height) / 2);
var attr = 'screenX=' + dialogWin.left + ',screenY=' + dialogWin.top + ',resizable=' + resize + ',width=' + dialogWin.width + ',height=' + dialogWin.height + ',scrollbars=' + scroll + ',menubar=no,location=no,toolbar=no,status=no,directories=no';
} else if (document.all) {
dialogWin.left = (screen.width - dialogWin.width) / 2;
dialogWin.top = (screen.height - dialogWin.height) / 2;
var attr = 'left=' + dialogWin.left + ',top=' + dialogWin.top + ',resizable=' + resize + ',width=' + dialogWin.width + ',height=' + dialogWin.height + ',scrollbars=' + scroll + ',menubar=no,location=no,toolbar=no,status=no,directories=no';
}
window.open(url,name,attr);
}


// DETECCION DE BROWSER
var BrowserName=navigator.appName;
var BrowserVersn = parseInt(navigator.appVersion);

if ((BrowserName == "Microsoft Internet Explorer") && (BrowserVersn >= 4)) {
//do nothing
}
else if ((BrowserName == "Netscape") && (BrowserVersn >= 5)) {
//do nothing
}
else if ((BrowserName == "Opera") && (BrowserVersn >= 5)) {
//do nothing
}
else if ((BrowserName == "Mozilla") && (BrowserVersn >= 4)) {
//do nothing
}
else {
Popup('/img/msg/nocompatible.html','nocompatible',400,350,'no','no');
// window.location.href="/img/msg/nocompatible.html";
}


// MANEJO DE TAMANO FUENTE
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.all[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;
}

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+"'");
}
}

ACTUAL_FONTSIZE = 16;
SMALLEST_FONTSIZE = 12;
LARGEST_FONTSIZE = 24;

function LoadActualFontSize() {
tempArray = document.cookie.split(";");
for (tA = 0; tA < tempArray.length; tA++){
if (tempArray[tA].indexOf('fontSize') > -1){
fontSizeValue = tempArray[tA].split("=")
ACTUAL_FONTSIZE = parseInt(fontSizeValue[1]);
Setear();
}
}
}

function SaveActualFontSize() {
var expire = new Date ();
expire.setTime (expire.getTime() + (6000 * 24 * 3600000));
expire = expire.toGMTString();
document.cookie="fontSize="+ACTUAL_FONTSIZE+"; path=/; expires="+expire;
}

function Setear() {
if (ACTUAL_FONTSIZE > LARGEST_FONTSIZE) { ACTUAL_FONTSIZE = LARGEST_FONTSIZE }
ChangeProp('text','','style.fontSize',ACTUAL_FONTSIZE,'SPAN');
SaveActualFontSize();
}

function Mayor() {
ACTUAL_FONTSIZE = ACTUAL_FONTSIZE+1;
if (ACTUAL_FONTSIZE > LARGEST_FONTSIZE) { ACTUAL_FONTSIZE = LARGEST_FONTSIZE }
ChangeProp('text','','style.fontSize',ACTUAL_FONTSIZE,'SPAN');
SaveActualFontSize();
}

function Menor() {
ACTUAL_FONTSIZE = ACTUAL_FONTSIZE-1
if (ACTUAL_FONTSIZE < SMALLEST_FONTSIZE) { ACTUAL_FONTSIZE = SMALLEST_FONTSIZE }
ChangeProp('text','','style.fontSize',ACTUAL_FONTSIZE,'SPAN');
SaveActualFontSize();
}

function irNivel(id)
 {
  document.Nivel.idNivel.value = id;
  document.Nivel.submit();	       
 }

function irCurso(id,id2)
 {
  document.Curso.idcurso.value = id;
  document.Curso.idNivel.value = id2;
  document.Curso.submit();	       
 }

function irMateria(id)
 {
  document.Materia.idmateria.value = id;
  document.Materia.submit();	       
 }

function irContenido(id)
 {
  document.Contenido.idcontenido.value = id;
  document.Contenido.submit();	       
 }

function irlegal(id)
 {
  document.legal.CdLegales.value = id;
  document.legal.submit();	       
 }

<!--//Hide JavaScript from Java-Impaired Browsers 
var isn1=null; 
var isn2=false; 
today=new Date(); 
 
function stopit() 
{ 
   if (isn2) 
   { 
      clearTimeout(isn1); 
   } 
   isn2 = false; 
} 
 
function startit() 
{ 
   stopit(); 
   isnclock(); 
} 
 
function isnclock() 
{ 
   var now=new Date(); 
   var hrs=now.getHours(); 
   var min=now.getMinutes(); 
   var sec=now.getSeconds(); 
} 
 
// Build an array initializer 
function isnArray() 
{ 
   argnr=isnArray.arguments.length 
   for (var i=0; i < argnr; i++) 
   { 
      this[i+1] = isnArray.arguments[i]; 
   } 
} 
 
// And months and day arrays 
var isnMonths=new isnArray("enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"); 
 
var isnDays= new isnArray("Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Domingo"); 
 
isnDays[0]="Domingo"; 
 
function jumpTo(url) 
{ 
  parent.window.close() 
  parent.opener.location.href = url; 
} 

<!--
function setearEstilo(cual)
{
	var expire = new Date ();
	expire.setTime (expire.getTime() + (40000 * 24 * 3600000)); 
	expire = expire.toGMTString();
	document.cookie="estiloSB="+cual+"; path=/; domain=lanacion.com.ar; expires="+expire;
	document.location.href=document.location.href;
	alert (document.location.href);
}
//-->
