/* scripts-opac.js                                                            */
/*                                                                ANSI-Format */
/* dj 170707 TASK = "statistik.C";                                            */
/*                                                                            */
/* dj 231205 smFull amazon1                                                   */
/* dj 310405 if (FORM0 == "login")                                            */
/* dj 130603 frmLeft => fb ms mz ns op                                        */
/* created: dj 120201                                                         */
/*                appName   appVersion  userAgent    CodeName                 */
/* Firebird061 =  Netscape  5.0         Firebird061  Mozilla                  */
/* Mozilla14   =  Netscape  5.0         ./.          Mozilla                  */ 
/* Netscape701 =  Netscape  5.0         Netscape701  Mozilla                  */
/* Netscape621 =  Netscape  5.0         Netscape621  Mozilla                  */
/* Netscape47  =  Netscape  4.7         Mozilla47    Mozilla                  */
/* Netscape451 =  Netscape  4.51        Mozilla451   Mozilla                  */
/* Opera703    =  Opera     7.03        Opera703     Mozilla                  */
/* MSIE60      =  Micro...  4.0         MSIE60       Mozilla                  */   
/* */
/* ****************************************************************************/
<!-- vor alten Browsern verstecken
/* for all */
ns = (navigator.appName == "Netscape");

var uAgent = navigator.userAgent;
var aName  = navigator.appName;
var aVers  = parseFloat(navigator.appVersion);
var uAl    = uAgent.length;
var rVers  = /([0-9]..)/;
var client = "xx";
if (uAgent.indexOf("Firebird") >= 0) 
   client = "fb" + uAgent.substr(uAgent.indexOf("Firebird"),uAl);
if (uAgent.indexOf("MSIE")     >= 0) 
   client = "ms" + uAgent.substr(uAgent.indexOf("MSIE"),uAl);
if (uAgent.indexOf("Netscape") >= 0) 
   client = "ns" + uAgent.substr(uAgent.indexOf("Netscape"),uAl);
if (uAgent.indexOf("Opera")    >= 0) 
   client = "op" + uAgent.substr(uAgent.indexOf("Opera"),uAl);
vs = rVers.exec(client);
vs = (RegExp.$1);
if (client.slice(0,2) == "fb") client = "ns";
if (client.slice(0,2) == "ms") client = "ms";
if (client.slice(0,2) == "ns") client = "ns";
if (client.slice(0,2) == "op") client = "op";
if (ns && aVers == "4.7")      client = "ns4";
if (ns && aVers == "4.51")     client = "ns4";
if (client == "xx")            client = "ns";

window.onerror=null;
var newWin0=null;  /* nur opera       */  
var newWin1=null;  /* user            */  
var newWin2=null;  /* all help        */  
var newWin3=null;  /* context hilfe   */ 
var newWin4=null;  /* Bilder anzeigen */
var newWin5=null;  /* Warenkorb       */

framelen = parent.frames.length;

setwait = "scrollbars=no,resizable=no,height=250,width=250,top=300,left=300";
set800  = "scrollbars=yes,resizable=yes,height=400,width=380,top=130,left=400";
set1024 = "scrollbars=yes,resizable=yes,height=550,width=420,top=140,left=590";
set1280 = "scrollbars=yes,resizable=yes,height=800,width=560,top=165,left=705";
ful800  = "scrollbars=yes,resizable=no,height=595,width=695,top=1,left=100,status=no";
ful1024 = "scrollbars=yes,resizable=no,height=765,width=920,top=1,left=100,status=no";
ful1280 = "scrollbars=yes,resizable=no,height=1020,width=1175,top=1,left=100,status=no";
if (screen.width >= 800)  setWinOp = set800;
if (screen.width >= 1024) setWinOp = set1024;
if (screen.width >= 1280) setWinOp = set1280;
if (screen.width >= 800)  setFulOp = ful800;
if (screen.width >= 1024) setFulOp = ful1024;
if (screen.width >= 1280) setFulOp = ful1280;

var GHOST="";
/*
if   (window.location.port != "") var GHOST="//" + window.location.hostname + ":" + window.location.port;
else var GHOST="//" + window.location.hostname;
IA = IA.replace(/\(/,"");    IA = IA.replace(/\)/,"");  */
/* fin */
/* **************************************************************** LeftFrame */
function frmLeft(FORM0,IA)
{
 if (client == "ms")
 {
  parent.frames.location.target="_top";
  if (FORM0 == "lang")  parent.frames.location.replace("../index.html.S");
  if (FORM0 == "home")  parent.frames.location.replace("index_frm.html.S");
  if (FORM0 == "qsim")  parent.frames.location.replace("qsim_frm.html.S");
  if (FORM0 == "qsel")  parent.frames.location.replace("qsel_frm.html.S");
  if (FORM0 == "qext")  parent.frames.location.replace("qext_frm.html.S");
  if (FORM0 == "brow")  parent.frames.location.replace("brow_frm.html.S");
  if (FORM0 == "music") parent.frames.location.replace("music_frm.html.S");
  if (FORM0 == "union") parent.frames.location.replace("union_frm.html.S");
  if (FORM0 == "sugg")  parent.frames.location.replace("sugg_frm.html.S");
  if (FORM0 == "stat")  parent.frames.location.replace("stat_frm.html.S");
  if (FORM0 == "isrv")
  {
   if (newWin1 && !newWin1.closed) newWin1.close();
   file   = "/isrv/de/login_frm.html.S";
   newWin1=window.open(file, "newWin1", setFulOp);
  }
  if (FORM0 == "login") 
  {
   if (newWin1 && !newWin1.closed) newWin1.close();
   file   = "login_frm.html.S";
   newWin1=window.open(file, "newWin1", setFulOp);
  }
  if (FORM0 == "nacq")
  {
   if (framelen == 2) parent.frames.location.replace("nacq_frm.html.S");
   if (framelen == 3)
   {
    TASK = "../nacq2.C?LANG=" + IA
         + "&FUNC=nacq";
    parent.frames[2].location.href=TASK;
   }
  }
 }

 if (client == "ns" || client == "ns4")
 {
  parent.frames.location.target="_top";
  if (FORM0 == "lang")  parent.frames.location.replace("../index.html.S");
  if (FORM0 == "home")  parent.frames.location.replace("index_frm.html.S");
  if (FORM0 == "qsim")  parent.frames.location.replace("qsim_frm.html.S");
  if (FORM0 == "qsel")  parent.frames.location.replace("qsel_frm.html.S");
  if (FORM0 == "qext")  parent.frames.location.replace("qext_frm.html.S");
  if (FORM0 == "brow")  parent.frames.location.replace("brow_frm.html.S");
  if (FORM0 == "music") parent.frames.location.replace("music_frm.html.S");
  if (FORM0 == "union") parent.frames.location.replace("union_frm.html.S");
  if (FORM0 == "sugg")  parent.frames.location.replace("sugg_frm.html.S");
  if (FORM0 == "stat")  parent.frames.location.replace("stat_frm.html.S");
  if (FORM0 == "isrv")  
  {
   if (newWin1 && !newWin1.closed) newWin1.close();
   file   = "/isrv/de/login_frm.html.S";
   newWin1=window.open(file, "newWin1", setFulOp);
  }
  if (FORM0 == "login") 
  {
   if (newWin1 && !newWin1.closed) newWin1.close();
   file   = "login_frm.html.S";
   newWin1=window.open(file, "newWin1", setFulOp);
  }
  if (FORM0 == "nacq")
  {
   if (framelen == 2) parent.frames.location.replace("nacq_frm.html.S");
   if (framelen == 3)
   {
    TASK = "../nacq2.C?LANG=" + IA
         + "&FUNC=nacq";
    parent.frames[2].location.href=TASK; 
   }
  }
 }

 if (client == "op")
 {
  if (newWin0 && !newWin0.closed) newWin0.close();
  if (FORM0 == "lang")  newWin0 = window.open("../index.html.S",  "newWin0");
  if (FORM0 == "home")  newWin0 = window.open("index_frm.html.S", "newWin0");
  if (FORM0 == "qsim")  newWin0 = window.open("qsim_frm.html.S",  "newWin0"); 
  if (FORM0 == "qsel")  newWin0 = window.open("qsel_frm.html.S",  "newWin0");
  if (FORM0 == "qext")  newWin0 = window.open("qext_frm.html.S",  "newWin0");
  if (FORM0 == "brow")  newWin0 = window.open("brow_frm.html.S",  "newWin0");
  if (FORM0 == "music") newWin0 = window.open("music_frm.html.S", "newWin0");
  if (FORM0 == "union") newWin0 = window.open("union_frm.html.S", "newWin0");
  if (FORM0 == "sugg")  newWin0 = window.open("sugg_frm.html.S",  "newWin0");
  if (FORM0 == "stat")  newWin0 = window.open("stat_frm.html.S",  "newWin0");
  if (FORM0 == "isrv")
  {
   if (newWin1 && !newWin1.closed) newWin1.close();
   file   = "/isrv/de/login_frm.html.S";
   newWin1=window.open(file, "newWin1", setFulOp);
  }
  if (FORM0 == "login") 
  {
   if (newWin1 && !newWin1.closed) newWin1.close();
   file   = "login_frm.html.S";
   newWin1=window.open(file, "newWin1", setFulOp);
  }
  if (FORM0 == "nacq")
  {
   if (framelen == 2) newWin0 = window.open("nacq_frm.html.S", "newWin0");
   if (framelen == 3)
   {
    TASK = "../nacq2.C?LANG=" + IA
         + "&FUNC=nacq";
    parent.frames[2].location.href=TASK; 
   }
  }
 }
}
/* ************************************************************ end LeftFrame */

/* ***************************************************************** TopFrame */
/* ************************************************* stop */
function stFrm2(LANG) { window.stop(); }
/*                                               end stop */
/* ************************************************ print */
function prFrm2(LANG)
{
 parent.frames[2].focus();
 parent.print(); 
}
/*                                              end print */
/* ************************************************ reset */
function rsFrm2(LANG)
{
 formlen = parent.frames[2].document.forms.length;  
 if (formlen <= 0) window.open("../nothing.html.S", "nothing", setwait);
 else 
 {
  FORM0 = parent.frames[2].document.forms[0].name;
  parent.frames[2].document.forms[0].reset();
  if (FORM0 == "qsim") parent.frames[2].document.qsim.BI.focus();  
  if (FORM0 == "qsel") parent.frames[2].document.qsel.FLD1.focus(); 
  if (FORM0 == "brow") parent.frames[2].document.brow.FLD.focus();
 }
}
/*                                              end reset */
/* ***************************************** back history */
function bwFrm2() { parent.frames[2].history.back(); }
/*                                       end back history */
/* ***************************************** forw. history*/
function fwFrm2() { parent.frames[2].history.forward(); }
/*                                       end forw.history */
/* ******************************************* select all */
function slAll2(LANG)
{
 formlen = parent.frames[2].document.forms.length; 
 if (formlen <= 0) window.open("../nothing.html.S", "nothing", setwait);
 else
 {
  FORM0 = parent.frames[2].document.forms[0].name;
  if (FORM0 == "stl" || FORM0 == "medkl" || FORM0 == "vorml")
  {
   ellen = parent.frames[2].document.forms[0].elements.length;
   for(var i = 2; i < ellen; i++)
   {
    parent.frames[2].document.forms[0].elements[i].checked = 1;
   }
  }
  else window.open("../nothing.html.S", "nothing", setwait);
 }
}
/*                                         end select all */
/* ******************************************* remark all */
function rsMark2(LANG)
{
 formlen = parent.frames[2].document.forms.length; 
 if   (formlen <= 0) window.open("../nothing.html.S", "nothing", setwait);
 else
 {
  FORM0 = parent.frames[2].document.forms[0].name;
  if (FORM0 == "stl" || FORM0 == "medkl" || FORM0 == "vorml")
  {
   parent.frames[2].document.forms[0].reset();
  }
  else window.open("../nothing.html.S", "nothing", setwait);
 }
}
/*                                         end remark all */
/* ************************************************************* end TopFrame */

/* **************************************************************** MainFrame */
function smFrm2(LANG,FUNC)
{
 formlen = parent.frames[2].document.forms.length; 
 if (formlen <= 0) window.open("../nothing.html.S", "nothing", setwait);
 else
 {
  FORM0 = parent.frames[2].document.forms[0].name;

  /* ************************************************************************ */
  if (FORM0 == "qsim" || FORM0 == "qsel" || FORM0 == "qext")
  {
   i = 1;
   done = 0;
   ellen = parent.frames[2].document.forms[0].elements.length;
   for (var i = 1; i < ellen; i++)
   {
    if (parent.frames[2].document.forms[0].elements[i].value != "")
    {
     if (parent.frames[2].document.forms[0].elements[i].name == "BI") done = 1;
     if (parent.frames[2].document.forms[0].elements[i].name == "AW") done = 1;
     if (parent.frames[2].document.forms[0].elements[i].name == "TW") done = 1;
     if (parent.frames[2].document.forms[0].elements[i].name == "DW") done = 1;
     if (parent.frames[2].document.forms[0].elements[i].name == "SG") done = 1;
     if (parent.frames[2].document.forms[0].elements[i].name == "IS") done = 1;
     if (parent.frames[2].document.forms[0].elements[i].name == "PU") done = 1;
     if (parent.frames[2].document.forms[0].elements[i].name == "PP") done = 1;
     if (parent.frames[2].document.forms[0].elements[i].name == "PY") done = 1;
     if (parent.frames[2].document.forms[0].elements[i].name == "LA") done = 1;
     if (parent.frames[2].document.forms[0].elements[i].name == "TA") done = 1;
     if (parent.frames[2].document.forms[0].elements[i].name == "FLD1") done = 1;
     if (parent.frames[2].document.forms[0].elements[i].name == "FLD2") done = 1;
     if (parent.frames[2].document.forms[0].elements[i].name == "FLD3") done = 1;
     if (parent.frames[2].document.forms[0].elements[i].name == "FLD4") done = 1;
     if (parent.frames[2].document.forms[0].elements[i].name == "FLD5") done = 1;
     if (parent.frames[2].document.forms[0].elements[i].name == "FLD6") done = 1;
     if (parent.frames[2].document.forms[0].elements[i].name == "FLD7") done = 1;
     if (parent.frames[2].document.forms[0].elements[i].name == "FLD8") done = 1;
     if (parent.frames[2].document.forms[0].elements[i].name == "FLD9") done = 1;
     if (parent.frames[2].document.forms[0].elements[i].name == "TAREA") done =1;
    }
   }
   if (done == 0) window.open("../nothing.html.S", "nothing", setwait);
   else
   {
    TASK = "../query.C";
    parent.frames[2].document.forms[0].action=TASK;    
    if (FUNC == "top") parent.frames[2].document.forms[0].submit(); 
   }
  }
  /* ************************************************************************ */
  if (FORM0 == "brow") parent.frames[2].document.forms[0].submit();
  /* ************************************************************************ */
  if (FORM0 == "union")
  {
   ellen = parent.frames[2].document.forms[0].elements.length;
   i=0;
   for (var i = 0; i < ellen; i++)
   {
    if (parent.frames[2].document.forms[0].elements[i].checked &&
       parent.frames[2].document.forms[0].elements[i].name == "GHOST")
    {
     if (parent.frames[2].document.forms[0].elements[i].value == "10")
     {
      TASK = "../query.S";
      parent.frames[2].document.forms[0].action=TASK;
      parent.frames[2].document.forms[0].submit();
     }
     if (parent.frames[2].document.forms[0].elements[i].value == "20")
     {
      TASK = "/dz/opac/query.S";
      parent.frames[2].document.forms[0].action=TASK;
      parent.frames[2].document.forms[0].submit();
     }
     if (parent.frames[2].document.forms[0].elements[i].value == "30")
     {
      TASK = "/gibz/opac/query.S";
      parent.frames[2].document.forms[0].action=TASK;
      parent.frames[2].document.forms[0].submit();
     }
     if (parent.frames[2].document.forms[0].elements[i].value == "40")
     {
      TASK = "/star/opac/query.S";
      parent.frames[2].document.forms[0].action=TASK;
      parent.frames[2].document.forms[0].submit();
     }
    }
   }
  }
  /* ************************************************************************ */
  if (FORM0 == "login")
  {
/* if (parent.frames[2].document.forms[0].PASSWORD.value == "")
      parent.frames[2].document.forms[0].PASSWORD.value = "00000000";   */      
   if ((parent.frames[2].document.forms[0].BENUTZER.value != "") &&
      (parent.frames[2].document.forms[0].PASSWORD.value != "")) 
   {
    TASK = "../login.C";
    parent.frames[2].document.forms[0].action=TASK;
    parent.frames[2].document.forms[0].submit();
    parent.frames[2].document.forms[0].reset();
   }
   else window.open("../nothing.html.S", "nothing", setwait);
  }
  /* ************************************************************************ */
  if (FORM0 == "user")
  {
   done = 0;
   if ((parent.frames[2].document.forms[0].BENUTZER.value != "") &&
      (parent.frames[2].document.forms[0].PASSWORD.value != "")) done = 1;

   ellen = parent.frames[2].document.forms[0].elements.length;
   i=0;
   for (var i = 0; i < ellen; i++)
   {
    if (parent.frames[2].document.forms[0].elements[i].checked)
    {
     done = done + 1;
     TASK = GHOST.concat("user.C");
     parent.frames[2].document.forms[0].action=TASK;
    }
   }
   if (done <= 1) window.open("../nothing.html.S", "nothing", setwait);
   else
   {
    parent.frames[2].document.forms[0].submit();
   }
  }
  /* ************************************************************************ */
  if (FORM0 == "medkl")
  {
   i = 0; 
   done = 0;
   ellen = parent.frames[2].document.forms[0].elements.length;
   for (var i = 0; i < ellen; i++)
   {
    if (parent.frames[2].document.forms[0].elements[i].checked) done=1;
   }
   if   (done == 0) window.open("../nothing.html.S", "nothing", setwait);
   else 
   {
    TASK = "verl.C";
    if (client == "ns4") TASK = "../verl.C";
    parent.frames[2].document.forms[0].elements[2].name="DUM1";
    parent.frames[2].document.forms[0].elements[2].value=" ";
    parent.frames[2].document.forms[0].elements[3].name="DUM2";
    parent.frames[2].document.forms[0].elements[3].value=" ";
    parent.frames[2].document.forms[0].target="MainFrame";
    parent.frames[2].document.forms[0].method="POST";
    parent.frames[2].document.forms[0].action=TASK;     
    parent.frames[2].document.forms[0].submit(); 
   }  
  }
  /* ************************************************************************ */
  if (FORM0 == "vorml")
  {
   i = 0; 
   done = 0;
   ellen = parent.frames[2].document.forms[0].elements.length;
   for (var i = 0; i < ellen; i++)
   {
    if (parent.frames[2].document.forms[0].elements[i].checked) done=1;
   }
   if   (done == 0) window.open("../nothing.html.S", "nothing", setwait);
   else 
   {
    TASK = "vorml.C";
    if (client == "ns4") TASK = "../vorml.C";
    parent.frames[2].document.forms[0].elements[2].name="DUM1";
    parent.frames[2].document.forms[0].elements[2].value=" ";
    parent.frames[2].document.forms[0].elements[3].name="DUM2";
    parent.frames[2].document.forms[0].elements[3].value=" ";
    parent.frames[2].document.forms[0].target="MainFrame";
    parent.frames[2].document.forms[0].method="POST";
    parent.frames[2].document.forms[0].action=TASK;  
    parent.frames[2].document.forms[0].submit();  
   }
  }
  /* ************************************************************************ */
  if (FORM0 == "pass")
  {
   done = 0;
   if ((parent.frames[2].document.forms[0].PASSOLD.value != "") &&
      (parent.frames[2].document.forms[0].PASSNEW1.value != "") && 
      (parent.frames[2].document.forms[0].PASSNEW2.value != "")) done = 1;
   if (done == 0) window.open("../nothing.html.S", "nothing", setwait);
   else 
   { 
    TASK = GHOST.concat("passwd.C");
    parent.frames[2].document.forms[0].action=TASK;
    parent.frames[2].document.forms[0].submit(); 
   }
  }
  /* ************************************************************************ */
  if (FORM0 == "sugg") parent.frames[2].document.forms[0].submit();
  /* ************************************************************* Ergebnisse */
  if (FORM0 == "browl")
  {
   i = 1;
   done = 0;
   ellen = parent.frames[2].document.forms[0].elements.length;
   for (var i = 1; i < ellen; i++)
   {
    if (parent.frames[2].document.forms[0].elements[i].checked)
    {
     done = 1;
     TASK = "query.C";
     parent.frames[2].document.forms[0].action=TASK;
     parent.frames[2].document.forms[0].submit();
    }
   }
   if (done == 0) window.open("../nothing.html.S", "nothing", setwait);
  }
  /* ************************************************************************ */
  if (FORM0 == "full")
  {
   i = 1;
   done = 0;
   ellen = parent.frames[2].document.forms[0].elements.length;
   for (var i = 1; i < ellen; i++)
   {
    if (parent.frames[2].document.forms[0].elements[i].checked)
    {
     done=1;
     FUNC = parent.frames[2].document.forms[0].elements[i].value.slice(0,4);
     IA   = parent.frames[2].document.forms[0].elements[i].value;
     if (FUNC == "vorF")
     {
      TASK = "../reserv.C?LANG=" + parent.frames[2].document.forms[0].LANG.value
      + "&FUNC=vorF"
      + "&ID=" + IA;
     }
     if (FUNC == "besF")
     {
      parent.frames[2].document.forms[0].FUNC.value = "besF";
      TASK = "reserv.C?LANG=" + parent.frames[2].document.forms[0].LANG.value
      + "&FUNC=besF"
      + "&ID=" + IA;
      parent.frames[2].document.forms[0].action = TASK;
     }

     if (FUNC == "resF")
     {
      parent.frames[2].document.forms[0].FUNC.value = "resF";
      TASK = "reserv.C?LANG=" + parent.frames[2].document.forms[0].LANG.value
      + "&FUNC=resF"
      + "&ID=" + IA;
      parent.frames[2].document.forms[0].action = TASK;
     }

     if (FUNC == "post")
     {
      TASK = "../post.C?LANG=" + parent.frames[2].document.forms[0].LANG.value
      + "&" + IA + "=YES";
     }
    }
   }
   if (done == 0) window.open("../nothing.html.S", "nothing", setwait);
   else  parent.frames[2].document.forms[0].submit();
  }
  /* ************************************************************************ */
  if (FORM0 == "sigl")
  {
   done = 0;
   ko = 0;
   if ((parent.frames[2].document.forms[0].BENUTZER.value != "") &&
      (parent.frames[2].document.forms[0].PASSWORD.value != "")) done = 1;
   ellen = parent.frames[2].document.forms[0].elements.length;
   i=0;
   for (var i = 0; i < ellen; i++)
   {
    if (parent.frames[2].document.forms[0].elements[i].checked)
    {
     ko = 1;
     parent.frames[2].document.forms[0].FUNC.value=
     parent.frames[2].document.forms[0].elements[i].value.slice(0,4); 
    }
   }
   if (done == 0 || ko == 0) window.open("../nothing.html.S", "nothing", setwait);
   else
   {
    parent.frames[2].document.forms[0].submit();
   }
  }
  /* ************************************************************************ */
  if (FORM0 == "stl")
  {
   i = 1;
   done = 0;
   ellen = parent.frames[2].document.forms[0].elements.length;
   for (var i = 1; i < ellen; i++)
   {
    if (parent.frames[2].document.forms[0].elements[i].checked) done=1;
   }
   if (done == 0) window.open("../nothing.html.S", "nothing", setwait);
   else 
   {
    if (parent.frames[2].document.check.CHECK.value == "1")
    {
     parent.frames[2].document.check.CHECK.value = "0"; 
     parent.frames[2].document.forms[0].submit();
    } 
    else window.open("../wait.html.S", "wait", setwait);
   }
  }
  /* ************************************************************************ */
  if (FORM0 == "aort"  || FORM0 == "stto"  || FORM0 == "sttu")
  {
   i = 0; 
   done = 0;
   ellen = parent.frames[2].document.forms[0].elements.length;
   for (var i = 0; i < ellen; i++)
   {
    if (parent.frames[2].document.forms[0].elements[i].checked) done=1;
   }
   if   (done == 0) window.open("../nothing.html.S", "nothing", setwait);
   else parent.frames[2].document.forms[0].submit();  
  }
  /* ************************************************************************ */
  if (FORM0 == "post") parent.frames[2].document.forms[0].submit();
  /* ************************************************************************ */
  if (FORM0 == "stat")
  {
   done = 0;
   if (parent.frames[2].document.forms[0].elements[1].checked)
   {
    done = 1;
    TASK = "statistik.C";
    parent.frames[2].document.forms[0].action=TASK;
    parent.frames[2].document.forms[0].submit();
   }
   if (parent.frames[2].document.forms[0].elements[2].checked)
   {
    done = 1;
    TASK = "statistik.C";
    parent.frames[2].document.forms[0].action=TASK;
    parent.frames[2].document.forms[0].submit();
   }
   if (done == 0) window.open("../nothing.html.S", "nothing", setwait);
  }
  /* ************************************************************************ */
 }
}
/* ************************************************************ end MainFrame */

/* ************************************************************* select parts */
function slPart(IA,IB)
{
 formlen = parent.frames[2].document.forms.length; 
 if   (formlen <= 0) window.open("../nothing.html.S", "nothing", setwait);
 else
 if (IA == 1) IA = 0; 
 {
  for(var i = IA + 1; i < IB + 1; i++)
  {
   parent.frames[2].document.forms[0].elements[i].checked = 1;
  }
 }
}
/* ********************************************************** end select parts */

/* **************************************************************** no history */
function noHist(FUNC)
{
 i = 0;
 done = 0;
 file1 = "/opac/" + parent.frames[2].document.forms[0].LANG.value + "/index_frm.html.S";
 file2 = "/opac/index.html.S";
 if (FUNC == "s1")
 {
  if (parent.frames[2].document.forms.length > 0)
  {
   parent.frames[2].document.forms[0].reset();
  }
 }

 if (FUNC == "s2")
 {
  if (parent.frames[2].document.forms.length > 0)
  {
   ellen = parent.frames[2].document.forms[0].elements.length;
   for (var i = 1; i < ellen; i++)
   {
    if (parent.frames[2].document.forms[0].elements[i].checked) done = done + 1;
   }

   if (done == 0)  parent.frames.close();  
  }
  else  parent.frames.close();
 }
}

function what(key)
{
 if(client == "ms" && window.event.keyCode == 17) parent.frames.close();
 if(client != "ms" && key.which == 17) parent.frames.close();
}

/* ************************************************************ end no history */





/* ************************************************************ actions ftitle */
function smFull(LANG,FUNC,IA)
{
 if (newWin4 && !newWin4.closed) newWin4.close();

 if (FUNC == "gifs")
 {
  file   = "picture/" + IA + ".gif.S";
  newWin4=window.open(file, "newWin4", setWinOp);
 }
 if (FUNC == "jpgs")
 {
  file   = "picture/" + IA + ".jpg.S";
  newWin4=window.open(file, "newWin4", setWinOp);
 }
 if (FUNC == "fuss")
 {
  newWin4=window.open("alone.html.S","newWin4", setWinOp); 
  TASK = "ftitle.C?LANG=" + LANG
       + "&FUNC=fuss"
       + "&DUM2=0"
       + "&" + IA + "=YES";
  newWin4.location.href=TASK;
 }
 if (FUNC == "amazon1")
 {
  newWin4=window.open("alone.html.S","newWin4", setWinOp); 
  TASK = IA;
  newWin4.location.href=TASK;
 }
}
/* ******************************************************** end actions ftitle */

/* ************************************************************** actions medk */
function smMedk(LANG,FUNC,IA)
{
 if (newWin3 && !newWin3.closed) newWin3.close();
 newWin3=window.open("alone.html.S","newWin3", setWinOp); 

 if (FUNC == "mahn")
 { 
  TASK = "user2.C?LANG=" + LANG
       + "&FUNC=mahn"
       + "&DUM2=0"
       + "&NR=" + IA;
  newWin3.location.href=TASK;
 }
 if (FUNC == "full")
 { 
  TASK = "ftitle.C?LANG=" + LANG
       + "&FUNC=full"
       + "&DUM2=0"
       + "&" + IA + "=YES";
  newWin3.location.href=TASK;
 }
}
/* ********************************************************** end actions medk */

/* ************************************************************** actions vorm */
function smVorm(LANG,FUNC,IA)
{
 if (newWin3 && !newWin3.closed) newWin3.close();
 newWin3=window.open("alone.html.S","newWin3", setWinOp);

 if (FUNC == "full")
 { 
  TASK = "ftitle.C?LANG=" + LANG
       + "&FUNC=full"
       + "&DUM2=0"
       + "&" + IA + "=YES";
  newWin3.location.href=TASK;
 }
}
/* ********************************************************** end actions vorm */

/* ************************************************************** actions best */
function smBest(LANG,FUNC,IA)
{
 if (newWin3 && !newWin3.closed) newWin3.close();
 newWin3=window.open("alone.html.S","newWin3", setWinOp);

 if (FUNC == "full")
 { 
  TASK = "ftitle.C?LANG=" + LANG
       + "&FUNC=full"
       + "&DUM2=0"
       + "&" + IA + "=YES";
  newWin3.location.href=TASK;
 }
}
/* ********************************************************** end actions best */

/* ************************************************************** online cover */
function ldImg(BILD,NUM)
{
 xx = new Image();
 xx.src = "image/" + BILD + ".S";
 window.document.images[NUM].src = xx.src;
}
/* ********************************************************** end online cover */

/* *************************************************************** global help */
function opWin1(LANG)
{
 if (newWin2 && !newWin2.closed) newWin2.close();
 file   = "../" + LANG.concat("/help_main.html.S");
 newWin2=window.open(file, "newWin2", setWinOp); 
}
/* *********************************************************** end global help */

/* *********************************************************** individual help */
function opWin2(IA)                                      /* standard formulare */
{
 if (newWin2 && !newWin2.closed) newWin2.close();
 TASK = "#" + IA;
 if (parent.frames[2].document.forms[0].LANG.value == "cz")
    file="../cz/help2_main.html.S" + TASK;
 if (parent.frames[2].document.forms[0].LANG.value == "da")
    file="../da/help2_main.html.S" + TASK;
 if (parent.frames[2].document.forms[0].LANG.value == "de")
    file="../de/help2_main.html.S" + TASK;
 if (parent.frames[2].document.forms[0].LANG.value == "en")
     file="../en/help2_main.html.S" + TASK;
 if (parent.frames[2].document.forms[0].LANG.value == "fr")
    file="../fr/help2_main.html.S" + TASK;
 if (parent.frames[2].document.forms[0].LANG.value == "nl")
    file="../nl/help2_main.html.S" + TASK;
 newWin2=window.open(file, "newWin2", setWinOp);
}
/* ******************************************************* end individual help */

/* *********************************************************** individual help */
function opWin3(IA)                                     /* ergebniss formulare */
{
 if (newWin2 && !newWin2.closed) newWin2.close();
 TASK = "#" + IA;
 if (parent.frames[2].document.forms[0].LANG.value == "cz")
    file="cz/help2_main.html.S" + TASK;
 if (parent.frames[2].document.forms[0].LANG.value == "da")
    file="da/help2_main.html.S" + TASK;
 if (parent.frames[2].document.forms[0].LANG.value == "de")
    file="de/help2_main.html.S" + TASK;
 if (parent.frames[2].document.forms[0].LANG.value == "en")
    file="en/help2_main.html.S" + TASK;
 if (parent.frames[2].document.forms[0].LANG.value == "fr")
    file="fr/help2_main.html.S" + TASK;
 if (parent.frames[2].document.forms[0].LANG.value == "nl")
    file="nl/help2_main.html.S" + TASK;
 newWin2=window.open(file, "newWin2", setWinOp);
}
/* ******************************************************* end individual help */

/* *********************************************************** individual help */
function opWin4(IA)                                     /* brow_main qsel_main */
{
 if (newWin2 && !newWin2.closed) newWin2.close();
 if (IA == "REG")  for (var i=0; i < parent.frames[2].document.brow.REG.length; ++i)
                    if (document.brow.REG.options[i].selected == true)
                       FORM0 = document.brow.REG.options[i].value;
 if (IA == "REG1") for (var i=0; i < parent.frames[2].document.qsel.REG1.length; ++i)
                    if (document.qsel.REG1.options[i].selected == true)
                       FORM0 = document.qsel.REG1.options[i].value;
 if (IA == "REG2") for (var i=0; i < parent.frames[2].document.qsel.REG2.length; ++i)
                    if (document.qsel.REG2.options[i].selected == true)
                       FORM0 = document.qsel.REG2.options[i].value;
 if (IA == "REG3") for (var i=0; i < parent.frames[2].document.qsel.REG3.length; ++i)
                    if (document.qsel.REG3.options[i].selected == true)
                       FORM0 = document.qsel.REG3.options[i].value;
 if (IA == "REG4") for (var i=0; i < parent.frames[2].document.qsel.REG4.length; ++i)
                    if (document.qsel.REG4.options[i].selected == true)
                       FORM0 = document.qsel.REG4.options[i].value;
 if (IA == "REG5") for (var i=0; i < parent.frames[2].document.qsel.REG5.length; ++i)
                    if (document.qsel.REG5.options[i].selected == true)
                       FORM0 = document.qsel.REG5.options[i].value;
 if (IA == "REG6") for (var i=0; i < parent.frames[2].document.qsel.REG6.length; ++i)
                    if (document.qsel.REG6.options[i].selected == true)
                       FORM0 = document.qsel.REG6.options[i].value;
 if (IA == "REG7") for (var i=0; i < parent.frames[2].document.qsel.REG7.length; ++i)
                    if (document.qsel.REG7.options[i].selected == true)
                       FORM0 = document.qsel.REG7.options[i].value;
 if (IA == "REG8") for (var i=0; i < parent.frames[2].document.qsel.REG8.length; ++i)
                    if (document.qsel.REG8.options[i].selected == true)
                       FORM0 = document.qsel.REG8.options[i].value;
 if (IA == "REG9") for (var i=0; i < parent.frames[2].document.qsel.REG9.length; ++i)
                    if (document.qsel.REG9.options[i].selected == true)
                       FORM0 = document.qsel.REG9.options[i].value;
 TASK = "#" + FORM0;
 if (parent.frames[2].document.forms[0].LANG.value == "cz")
    file="../cz/help2_main.html.S" + TASK;
 if (parent.frames[2].document.forms[0].LANG.value == "da")
    file="../da/help2_main.html.S" + TASK;
 if (parent.frames[2].document.forms[0].LANG.value == "de")
    file="../de/help2_main.html.S" + TASK;
 if (parent.frames[2].document.forms[0].LANG.value == "en")
    file="../en/help2_main.html.S" + TASK;
 if (parent.frames[2].document.forms[0].LANG.value == "fr")
    file="../fr/help2_main.html.S" + TASK;
 if (parent.frames[2].document.forms[0].LANG.value == "nl")
    file="../nl/help2_main.html.S" + TASK;
 newWin2=window.open(file, "newWin2", setWinOp);
}
/* ******************************************************* end individual help */

/* ************************************************************** close window */
function clWin()
{
alert (window.name);
 if (newWin0 && !newWin0.closed) newWin0.close();
 if (newWin1 && !newWin1.closed) newWin1.close();
 if (newWin2 && !newWin2.closed) newWin2.close();
 if (newWin3 && !newWin3.closed) newWin3.close();
 if (newWin4 && !newWin4.closed) newWin4.close();
 if (newWin5 && !newWin5.closed) newWin5.close();
}
/* ********************************************************** end close window */








/* ***************************************************************** addToList */
function addToList(IA)
{
/*
 if (parent.frames[2].document.forms[0].LANG.value == "de")
    file="de/basket.html.S";

 newWin5=window.open(file, "newWin5", set800);





*/
 if (!top.opacTitles) top.opacTitles = new Array();
 if (top.opacTitles)
 {
  k = -1;
  for (var i = 0; i <= top.opacTitles.length; i++)
  {
   if (top.opacTitles[i] == IA) k = i;
  }
  if ( k == -1) top.opacTitles[top.opacTitles.length] = IA;
  else top.opacTitles.splice(k,1);
 }
 alert (top.opacTitles);

}
/* end addToList */

// -->
