/* scripts-opac.js                                                      */
/* created: dj 120201                                                   */
/* update:  dj 130202 schreibweise sw_butt => swButt                    */
/*          dj 130603 frmLeft => fb ms mz ns op                         */
/*          dj 100803                                                   */
/*                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;  // globale hilfe
var newWin2=null;  // context hilfe
var newWin3=null;  // context hilfe
var newWin4=null;  // Bilder anzeigen

framelen = parent.frames.length;

setwait = "scrollbars=no,resizable=no,height=250,width=250,top=300,left=300";
set600  = "scrollbars=yes,resizable=yes,height=500,width=410,top=160,left=600";
set768  = "scrollbars=yes,resizable=yes,height=525,width=420,top=160,left=590";
set1024 = "scrollbars=yes,resizable=yes,height=725,width=450,top=180,left=820";
if (screen.height >= 600) features = set600;
if (screen.height >= 768) features = set768;
if (screen.height >= 1024)features = set1024;

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 == "user")  parent.frames.location.replace("user_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")  parent.frames.location.replace("isrv_frm.S");
  if (FORM0 == "nacq")
  {
   if (framelen == 2) parent.frames.location.replace("nacq_frm.html.S");
   if (framelen == 3)
   {
    TASK = "../nacq2.S?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 == "user")  parent.frames.location.replace("user_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")  parent.frames.location.replace("isrv_frm.S");
  if (FORM0 == "nacq")
  {
   if (framelen == 2) parent.frames.location.replace("nacq_frm.html.S");
   if (framelen == 3)
   {
    TASK = "../nacq2.S?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 == "user")  newWin0 = window.open("user_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")  newWin0 = window.open("isrv_frm.S", "newWin0");
  if (FORM0 == "nacq")
  {
   if (framelen == 2) newWin0 = window.open("nacq_frm.html.S", "newWin0");
   if (framelen == 3)
   {
    TASK = "../nacq2.S?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 parent.frames[2].document.forms[0].reset();
}
/* 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 = "/skb/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 == "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 == "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.S");
     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();
    parent.frames[2].document.forms[0].reset();
   }
  }
  /* ***************************************************************** */
  if (FORM0 == "stat")
  {
   done = 0;
   if (parent.frames[2].document.forms[0].elements[1].checked)
   {
    done = 1;
    TASK = "../statistik.S";
    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.S";
    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 == "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;
     parent.frames[2].document.forms[0].elements[1].name="COMP";
     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.slice(4);
     if (FUNC == "vorF")
     {
      TASK = "../reserv.S?LANG=" + parent.frames[2].document.forms[0].LANG.value
      + "&FUNC=vorF"
      + "&ID=" + IA;
     }
     if (FUNC == "besF")
     {
      TASK = "../reserv.S?LANG=" + parent.frames[2].document.forms[0].LANG.value
      + "&FUNC=besF"
      + "&ID=" + IA;
     }
     if (FUNC == "resF")
     {
      TASK = "../reserv.S?LANG=" + parent.frames[2].document.forms[0].LANG.value
      + "&FUNC=resF"
      + "&ID=" + IA;
     }
     if (FUNC == "post")
     {
      TASK = "../post.S?LANG=" + parent.frames[2].document.forms[0].LANG.value
      + "&" + IA + "=YES";
     }

/* bis buchmesse 2003
     if (FUNC == "post")
     {
      TASK = "post.S"
      if (client == "ns4") TASK = "../post.S";
      parent.frames[2].document.forms[0].elements[i].name=IA;
      parent.frames[2].document.forms[0].elements[i].value="=YES";
      parent.frames[2].document.forms[0].action=TASK
     }
 bis buchmesse 2003  */

    }
   }
   if (done == 0) window.open("../nothing.html.S", "nothing", setwait);
   else parent.frames[2].location.href=TASK;
  }
  /* ***************************************************************** */
  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.S";
    if (client == "ns4") TASK = "../verl.S";
    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 == "sigl")
  {
   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 + i;
     parent.frames[2].document.forms[0].FUNC.value=
     parent.frames[2].document.forms[0].elements[i].value.slice(0,4);
    }
   }
   if (done <= 1) 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 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.S";
    if (client == "ns4") TASK = "../vorml.S";
    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 == "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();
  /* ***************************************************************** */
  /* ********************** isrv */
  if (FORM0 == "isrv")
  {
   if (parent.frames[2].document.forms[0].BENUTZER.value == "")
   {
    window.open("../nothing.html.S", "nothing", setwait);
   }
   else
   {
    if (FUNC == "isan")  /* IS: Anmeldung */
    {
     TASK = GHOST.concat("/opac/isan.S");
     parent.frames[2].document.forms[0].action=TASK;
     parent.frames[2].document.forms[0].submit();
     parent.frames[2].document.forms[0].reset();
    }
    if (FUNC == "isab")  /* IS: Registrierung loeschen */
    {
     TASK = GHOST.concat("/opac/isab.S");
     parent.frames[2].document.forms[0].action=TASK;
     parent.frames[2].document.forms[0].submit();
     parent.frames[2].document.forms[0].reset();
    }
    if (FUNC == "isbf")  /* IS: Benutzerprofil anzeigen / Abfragen anzeigen */
    {
     TASK = GHOST.concat("/opac/isbf.S");
     parent.frames[2].document.forms[0].action=TASK;
     parent.frames[2].document.forms[0].submit();
     parent.frames[2].document.forms[0].reset();
    }
    if (FUNC == "isns")  /* IS: Abfragen zum Neuerwerbungsservice erfassen */
    {
     TASK = GHOST.concat("/opac/isns.S");
     parent.frames[2].document.forms[0].action=TASK;
     parent.frames[2].document.forms[0].submit();
     parent.frames[2].document.forms[0].reset();
    }
    if (FUNC == "isiw")  /* IS: Infowunsch eingeben */
    {
     TASK = GHOST.concat("/opac/isiw.S");
     parent.frames[2].document.forms[0].action=TASK;
     parent.frames[2].document.forms[0].submit();
     parent.frames[2].document.forms[0].reset();
    }
    if (FUNC == "isls")  /* IS: Meine Nachrichten anzeigen */
    {
     TASK = GHOST.concat("/opac/isls.S");
     parent.frames[2].document.forms[0].action=TASK;
     parent.frames[2].document.forms[0].submit();
     parent.frames[2].document.forms[0].reset();
    }
    if (FUNC == "iwls")  /* IS: Info-Wuensche auflisten und bearbeiten */
    {
     TASK = GHOST.concat("/opac/iwls.S");
     parent.frames[2].document.forms[0].action=TASK;
     parent.frames[2].document.forms[0].submit();
     parent.frames[2].document.forms[0].reset();
    }
    if (FUNC == "de/isrv_help")  /* IS: Info-Wuensche auflisten und bearbeiten */
    {
     TASK = GHOST.concat("/opac/de/isrv_help.S");
     parent.frames[2].document.forms[0].action=TASK;
     parent.frames[2].document.forms[0].submit();
     parent.frames[2].document.forms[0].reset();
    }
   }
  }
  if (FORM0 == "isbf") parent.frames[2].document.forms[0].submit();
  if (FORM0 == "isns") parent.frames[2].document.forms[0].submit();
  if (FORM0 == "isiw") parent.frames[2].document.forms[0].submit();
  if (FORM0 == "isls") parent.frames[2].document.forms[0].submit();
  if (FORM0 == "iwls") parent.frames[2].document.forms[0].submit();
  if (FORM0 == "iwns") parent.frames[2].document.forms[0].submit();
  /* end isrv */
 }
}
/* ************************************************************* 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;

 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=1;
   }
   if (done == 0) parent.location.reload();
  }
  else  parent.location.reload();
 }
}
/* ************************************************************ 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", features);
 }
 if (FUNC == "fuss")
 {
  newWin4=window.open("alone.html.S","newWin4", features);
  TASK = "ftitle.S?LANG=" + LANG
       + "&FUNC=fuss"
       + "&DUM2=0"
       + "&" + IA + "=YES";
  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", features);

 if (FUNC == "mahn")
 {
  TASK = "user2.S?LANG=" + LANG
       + "&FUNC=mahn"
       + "&DUM2=0"
       + "&NR=" + IA;
  newWin3.location.href=TASK;
 }
 if (FUNC == "full")
 {
  TASK = "ftitle.S?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", features);

 if (FUNC == "full")
 {
  TASK = "ftitle.S?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", features);

 if (FUNC == "full")
 {
  TASK = "ftitle.S?LANG=" + LANG
       + "&FUNC=full"
       + "&DUM2=0"
       + "&" + IA + "=YES";
  newWin3.location.href=TASK;
 }
}
/* ********************************************************** end actions best */

/* *************************************************************** global help */
function opWin1(LANG)
{
 if (newWin1 && !newWin1.closed) newWin1.close();
 file   = "../" + LANG.concat("/help_main.html.S");
 newWin1=window.open(file, "newWin1", features);
}
/* *********************************************************** 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", features);
}
/* ******************************************************* 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", features);
}
/* ******************************************************* 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", features);
}
/* ******************************************************* end individual help */

/* ************************************************************** close window */
function clWin()
{
 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();
}
/* ********************************************************** end close window */

// -->


