/* scripts-opac.js                                            */
/* created:      120201                                       */
/*                                                            */
/* ************************************************************/
<!-- vor alten Browsern verstecken
/* for all */
ns = (navigator.appName == "Netscape");
ie = (navigator.appName == "Microsoft Internet Explorer");
op = (navigator.appName == "Opera");
vs = (parseInt(navigator.appVersion));


window.onerror=null;
var newWin1=null;
var newWin2=null;
var newWin3=null;
var newWin4=null;
framelen = parent.frames.length;

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";
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.height >= 600) features = set600;
if (screen.height >= 768) features = set768;
if (screen.height >= 1024)features = set1024;
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 */

/* ****************************************************** switchButton */
function swButt(NUM,OBJ,LANG)
{
 if (LANG == "cz")  OBJ.src = OBJ.src.replace(/de\/button/,"cz\/button");
 if (LANG == "da")  OBJ.src = OBJ.src.replace(/de\/button/,"da\/button");
 if (LANG == "de")  OBJ.src = OBJ.src.replace(/de\/button/,"de\/button");
 if (LANG == "en")  OBJ.src = OBJ.src.replace(/de\/button/,"en\/button");
 if (LANG == "fr")  OBJ.src = OBJ.src.replace(/de\/button/,"fr\/button");
 if (LANG == "nl")  OBJ.src = OBJ.src.replace(/de\/button/,"nl\/button");
 window.document.images[NUM].src = OBJ.src;
}
/* ************************************************** end switchButton */

/* ********************************************************* LeftFrame */
function frmLeft(FORM0)
{
 if (ie)
 {
  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 == "help")  parent.frames.location.replace("help_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 == "nacq")
  {
   if (framelen == 2) parent.frames.location.replace("nacq_frm.html.S");
   if (framelen == 3)
   {
    TASK = "../nacq2.S?LANG="
         + parent.frames[0].LeftFrame.lang
         + "&FUNC=nacq";
    parent.frames[2].location.href=TASK;
   }
  }
 }

 if (ns)
 {
  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 == "help")  parent.frames.location.replace("help_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 == "nacq")
  {
   if (framelen == 2) parent.frames.location.replace("nacq_frm.html.S");
   if (framelen == 3)
   {
    TASK = "../nacq2.S?LANG=de&FUNC=nacq";
    parent.frames[2].location.href=TASK;
   }
  }
 }

 if (op)
 {
  parent.frames[0].location.href=("_left.html.S");
  parent.frames[1].location.href=("_top.html.S");
  if (FORM0 == "lang")  parent.frames[2].location.href=("../index.html.S");
  if (FORM0 == "home")  parent.frames[2].location.href=("index_frm.html.S");
  if (FORM0 == "qsim")  parent.frames[2].location.href=("qsim_main.html.S");
  if (FORM0 == "qsel")  parent.frames[2].location.href=("qsel_main.html.S");
  if (FORM0 == "qext")  parent.frames[2].location.href=("qext_main.html.S");
  if (FORM0 == "brow")  parent.frames[2].location.href=("brow_main.html.S");
  if (FORM0 == "music") parent.frames[2].location.href=("music_main.html.S");
  if (FORM0 == "union") parent.frames[2].location.href=("union_main.html.S");
  if (FORM0 == "user")  parent.frames[2].location.href=("user_main.html.S");
  if (FORM0 == "sugg")  parent.frames[2].location.href=("sugg_main.html.S");
  if (FORM0 == "stat")  parent.frames[2].location.href=("stat_main.html.S");
  if (FORM0 == "help")  parent.frames[2].location.href=("help_main.html.S");
  if (FORM0 == "isrv")
  {
   if (newWin1 && !newWin1.closed) newWin1.close();
   file   = "/isrv/de/login_frm.html.S";
   newWin1=window.open(file, "newWin1", setFulOp);
  }
 }
}
/* ***************************************************** end LeftFrame */

/* ********************************************************** TopFrame */
/* ********************** stop */
function stFrm2(LANG)
{
 if (ie) window.stop();
}
/* end stop */
/* ******************** print */
function prFrm2(LANG)
{
 if (ie || ns)
 {
  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", "width=250,height=250,top=200,left=200");
 else parent.frames[2].document.forms[0].reset();
}
/* end reset */
/* ************** back hisrory */
function bwFrm2() { parent.frames[2].history.go(-1); }
/* end back history */
/* ************** forw. history*/
function fwFrm2() { parent.frames[2].history.go(1); }
/* end forw.history */
/* **************** select all */
function slAll2(LANG)
{
 formlen = parent.frames[2].document.forms.length;
 if (formlen <= 0) window.open("../nothing.html.S",
                   "nothing", "width=250,height=250,top=200,left=200");
 else
 {
  FORM0 = parent.frames[2].document.forms[0].name;
  if (FORM0 == "stl" || FORM0 == "medkl" || FORM0 == "vorml")
  {
   i = 0;
   ellen = parent.frames[2].document.forms[0].elements.length;
   for(var i = 0; i < ellen; i++)
   {
    parent.frames[2].document.forms[0].elements[i].checked = 1;
   }
  }
  else window.open("../nothing.html.S",
       "nothing", "width=250,height=250,top=200,left=200");
 }
}
/* end select all */
/* **************** remark all */
function rsMark2(LANG)
{
 formlen = parent.frames[2].document.forms.length;
 if   (formlen <= 0) window.open("../nothing.html.S",
                   "nothing", "width=250,height=250,top=200,left=200");
 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", "width=250,height=250,top=200,left=200");
 }
}
/* 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", "width=250,height=250,top=200,left=200");
   else parent.frames[2].document.forms[0].submit();
  }
  /* ***************************************************************** */
  if (FORM0 == "brow") parent.frames[2].document.forms[0].submit();
  /* ***************************************************************** */
  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";
     TASK = "../query.S?"
     + parent.frames[2].document.forms[0].elements[i].value;
     parent.frames[2].location.href=TASK;
     parent.frames[2].document.forms[0].submit();
    }
   }
   if (done == 0) window.open("../nothing.html.S",
                  "nothing", "width=250,height=250,top=200,left=200");
  }
  /* ***************************************************************** */
  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", "width=250,height=250,top=200,left=200");
   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", "width=250,height=250,top=200,left=200");
  }
  /* ***************************************************************** */
  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", "width=250,height=250,top=200,left=200");
   else parent.frames[2].document.forms[0].submit();
  }
  /* ***************************************************************** */
  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 == "vorm")
     {
      TASK = "reserv.S"
      parent.frames[2].document.forms[0].elements[1].name="FUNC";
      parent.frames[2].document.forms[0].elements[1].value="vorm";
      parent.frames[2].document.forms[0].elements[i].name="ID";
      parent.frames[2].document.forms[0].elements[i].value=IA;
      parent.frames[2].document.forms[0].action=TASK
     }
     if (FUNC == "best")
     {
      TASK = "reserv.S"
      parent.frames[2].document.forms[0].elements[1].name="FUNC";
      parent.frames[2].document.forms[0].elements[1].value="best";
      parent.frames[2].document.forms[0].elements[i].name="ID";
      parent.frames[2].document.forms[0].elements[i].value=IA;
      parent.frames[2].document.forms[0].action=TASK
     }
     if (FUNC == "resv")
     {
      TASK = "reserv.S"
      parent.frames[2].document.forms[0].elements[1].name="FUNC";
      parent.frames[2].document.forms[0].elements[1].value="resv";
      parent.frames[2].document.forms[0].elements[i].name="ID";
      parent.frames[2].document.forms[0].elements[i].value=IA;
      parent.frames[2].document.forms[0].action=TASK
     }
     if (FUNC == "post")
     {
      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
     }
    }
   }
   if (done == 0) window.open("../nothing.html.S",
                  "nothing", "width=250,height=250,top=200,left=200");
   else 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 + 1;
   }
   if (done <= 1) window.open("../nothing.html.S",
                  "nothing", "width=250,height=250,top=200,left=200");
   else
   {
    parent.frames[2].document.forms[0].submit();
   }
  }
  /* ***************************************************************** */
  if (FORM0 == "medkl" || FORM0 == "vorml" ||
      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", "width=250,height=250,top=200,left=200");
   else 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 = "/ddz/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 (FORM0 == "post") parent.frames[2].document.forms[0].submit();
  if (FORM0 == "sugg") parent.frames[2].document.forms[0].submit();
  /* ***************************************************************** */
 }
}
/* ************************************************************* 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(FUNC,IA)
{
 if (newWin4 && !newWin4.closed) newWin4.close();
 newWin4=window.open("alone.html.S","newWin4", features);

 if (FUNC == "ausl")                        /* Spezial F-KfW */
 {
  TASK = "user2.S";
  parent.frames[2].document.forms[0].elements[1].name="NR";
  parent.frames[2].document.forms[0].elements[1].value=IA;
  parent.frames[2].document.forms[0].target="newWin4";
  parent.frames[2].document.forms[0].method="POST";
  parent.frames[2].document.forms[0].action=TASK;
  parent.frames[2].document.forms[0].submit();
 }
}
/* ******************************************************** end actions ftitle */

/* ************************************************************** actions medk */
function smMedk(LANG,FUNC,IA,IB)
{
 if (newWin3 && !newWin3.closed) newWin3.close();
 newWin3=window.open("alone.html.S","newWin3", features);

 if (FUNC == "mahn")
 {
  TASK = "user2.S";
  parent.frames[2].document.forms[0].elements[0].name="LANG";
  parent.frames[2].document.forms[0].elements[0].value=LANG;
  parent.frames[2].document.forms[0].elements[1].name="FUNC";
  parent.frames[2].document.forms[0].elements[1].value=FUNC;
  parent.frames[2].document.forms[0].elements[2].name="NR";
  parent.frames[2].document.forms[0].elements[2].value=IA;
  parent.frames[2].document.forms[0].target="newWin3";
  parent.frames[2].document.forms[0].method="POST";
  parent.frames[2].document.forms[0].action=TASK;
  parent.frames[2].document.forms[0].submit();
 }
 if (FUNC == "full")
 {
  TASK = "ftitle.S";
  parent.frames[2].document.forms[0].elements[0].name="LANG";
  parent.frames[2].document.forms[0].elements[0].value=LANG;
  parent.frames[2].document.forms[0].elements[1].name="FUNC";
  parent.frames[2].document.forms[0].elements[1].value=FUNC;
  parent.frames[2].document.forms[0].elements[2].name="FORMAT";
  parent.frames[2].document.forms[0].elements[2].value=IA;
  parent.frames[2].document.forms[0].elements[3].name=IB;
  parent.frames[2].document.forms[0].elements[3].value="YES";
  parent.frames[2].document.forms[0].target="newWin3";
  parent.frames[2].document.forms[0].method="POST";
  parent.frames[2].document.forms[0].action=TASK;
  parent.frames[2].document.forms[0].submit();
 }
 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;
}
/* ********************************************************** end actions medk */

/* ************************************************************** actions vorm */
function smVorm(LANG,FUNC,IA,IB)
{
 if (newWin3 && !newWin3.closed) newWin3.close();
 newWin3=window.open("alone.html.S","newWin3", features);

 if (FUNC == "full")
 {
  TASK = "ftitle.S";
  parent.frames[2].document.forms[0].elements[0].name="LANG";
  parent.frames[2].document.forms[0].elements[0].value=LANG;
  parent.frames[2].document.forms[0].elements[1].name="FUNC";
  parent.frames[2].document.forms[0].elements[1].value=FUNC;
  parent.frames[2].document.forms[0].elements[2].name="FORMAT";
  parent.frames[2].document.forms[0].elements[2].value=IA;
  parent.frames[2].document.forms[0].elements[3].name=IB;
  parent.frames[2].document.forms[0].elements[3].value="YES";
  parent.frames[2].document.forms[0].target="newWin3";
  parent.frames[2].document.forms[0].method="POST";
  parent.frames[2].document.forms[0].action=TASK;
  parent.frames[2].document.forms[0].submit();
 }
 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;
}
/* ********************************************************** end actions vorm */

/* ************************************************************** actions best */
function smBest(LANG,FUNC,IA,IB)
{
 if (newWin3 && !newWin3.closed) newWin3.close();
 newWin3=window.open("alone.html.S","newWin3", features);

 if (FUNC == "full")
 {
  TASK = "ftitle.S";
  parent.frames[2].document.forms[0].elements[0].name="LANG";
  parent.frames[2].document.forms[0].elements[0].value=LANG;
  parent.frames[2].document.forms[0].elements[1].name="FUNC";
  parent.frames[2].document.forms[0].elements[1].value=FUNC;
  parent.frames[2].document.forms[0].elements[2].name="FORMAT";
  parent.frames[2].document.forms[0].elements[2].value=IA;
  parent.frames[2].document.forms[0].elements[3].name=IB;
  parent.frames[2].document.forms[0].elements[3].value="YES";
  parent.frames[2].document.forms[0].target="newWin3";
  parent.frames[2].document.forms[0].method="POST";
  parent.frames[2].document.forms[0].action=TASK;
  parent.frames[2].document.forms[0].submit();
 }
}
/* ********************************************************** end actions best */

/* *************************************************************** global help */
function opWin1(LANG)
{
 if (newWin1 && !newWin1.closed) newWin1.close();
  file   = "../" + LANG.concat("/help_main.html.S");   
/* file   = "../picture/ms11.gif.S";*/
 newWin1=window.open(file, "newWin1", features);
}
/* *********************************************************** end global help */

/* *********************************************************** individual help */
function opWin2(FORM0)
{
 if (newWin2 && !newWin2.closed) newWin2.close();
 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 */

/* *********************************************************** individual help */
function opWin3(FORM0)
{
 if (newWin2 && !newWin2.closed) newWin2.close();
 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 (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 */

// -->

