/* ajswl.js  ************************** */
/* ************************************ */
/* + - boxes / texts 'weiter ... lesen' */
/* param1: text box to view/hide        */
/* param2: # of boxes to hide at first  */
/*   "     starting from '0'            */
/*   "     optional, tested if exists   */
/*                                      */
//
var  hh = '',  hs = '',  hc = '';
//
function  xwl(idx, idy)
{ var  wli = 0;
  if  (idy)
  { for  (wli = 0;  wli < idy;  wli++)
    { hc = String(wli);
      hs = 'weiter'.concat(hc);  hh = document.getElementById(hs);
      if  (hh) { hh.style.display = 'inline'; };
      hs = 'lesen'.concat(hc);   hh = document.getElementById(hs);
      if  (hh) { hh.style.display = 'none'; }; };  // end for
  };  // end if
  hc = String(idx);
  hs = 'weiter'.concat(hc);  hh = document.getElementById(hs);
  if  (hh) { hh.style.display = 'none'; };
  hs = 'lesen'.concat(hc);   hh = document.getElementById(hs);
  if  (hh) { hh.style.display = 'block'; };
  hh = '';  hs = '';  hc = '';
}  // end xwl
//
function  xwlx(idx)
{ hc = String(idx);
  hs = 'weiter'.concat(hc);  hh = document.getElementById(hs);  hh.style.display = 'inline';
  hs = 'lesen'.concat(hc);   hh = document.getElementById(hs);  hh.style.display = 'none';
  hh = '';  hs = '';  hc = '';
}  // end xwlx
//
// xwl(0) displays id 'lesen0', hides 'weiter0'
// xwlx(0) vice versa
/*                                      */
/* ************************************ */

