//DAT: 14-Jun-08

function adj(fil,lng)
{
if (parent.frames.length==0) // noch keine frames?   Vorsicht bei LEX !!!
 location.href="../../revfrm.php?fil="+location.pathname; // dann wirds aber Zeit!
 l=".php?fil="+location.pathname;//+"&lng="+top.txt.document.all.spr.lang;
     //alert (l);
 top.inh.location.href="../../revinh"+l; // no inh change for lex windows
 top.kpf.location.href="../../revkpf"+l;
 top.anm.location.href="../../revanm"+l;
 parent.parent.document.getElementById("s1").rows = "56,*,0";  
if (window.name=='lex')     // current window=lex-window (as opposed to txt)?
 top.txt.idx.location.href="lexkpf"+l;
 
 //else

}

function note(ref)
{
l=".php?note="+ref;
  //alert(l);
 top.anm.location.href="../../revnot"+l;
}

//------------------------------------------------------------------------------
// formatear .lastmodified, sello copyright
function sello()
{
var lm=new Date(document.lastModified);
if(top.inh) {
 l=top.txt.document.all.spr.lang;   // modulo  <<<
 switch(l) 
  {case "es":
    var monam = new Array("ene","feb","mar","avr","may","jun","jul","ago","set","oct","nov","dic");
    la="&uacute;ltima actualizaci&oacute;n: ";
    break;
   case "de":
    var monam = new Array("Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez");
    la="letzte Aktualisierung: ";
    break;
   case "en":
    var monam = new Array("jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec");
    la="last update: ";
    break;
   case "fr":break;
  }
 m=lm.getMonth();
 j=lm.getYear();  if (j<200) j +=1900;
 return la+lm.getDate()+"-"+monam[m]+"-"+j+"<br>"+
 "&copy; Colectivo Tropical de Revisionismo, Centroam&eacute;rica";
 }
}

function test()
{
alert("test");
}

//===Lex-functions=========================================================
function GoLex(x)
{var w = x.split("#");
    
if(w[0].substr(0,1)=="@")
 {selIdx(w[0].substr(1,w[0].length-1));
  return false;
 }
if(w[0]=="lex/bib")
 {sizeAnm(0);}
 else
 {sizeAnm(50);}

if ((typeof w[1])=="undefined")
 {w[1]="";}
 else
 {w[1]="#"+w[1];}

if(x == "nothing") 
 {document.forms[0].reset();
  document.forms[0].elements[0].blur();
  return true;
 }
 else 
 {
                //alert(" top.txt.lex.location.href->"+w[0]+".htm"+w[1]);
  top.txt.location.href = w[0]+".htm"+w[1];
  document.forms[0].reset();
  document.forms[0].elements[0].blur();
 }
 return false;
}
//---------------------------------------------------------
function selIdx(t)
{
           //alert("lst="+top.inh.document.all.lexlst.name);           
 if(top.inh.document.all.lexlst.Auswahl) //weil trotz setzen v location neues inh noch nicht ges ist
  {           
   l=t.length
   for(i = 0; i < top.inh.document.all.lexlst.Auswahl.length; i++)
   {if(top.inh.document.all.lexlst.Auswahl.options[i].text.slice(0,l).toLowerCase()==t.toLowerCase())
     {top.inh.document.all.lexlst.Auswahl.options[i].selected=true;
      return false;
      }
    }
  }
  else
  return false;
}
//---------------------------------------------------------
function sizeAnm(a)
{
 //top.s1.rows="54,*,"+a;    pruefen, fkt nicht
}

