// showhide.js  show or hide list (shl000..999), toggle with verbous (shv000..999)
// reference: index.htm - used by several files
//  <script type="text/javascript" src="showhide.js"></script>
/*
<!-- === 001 === -->
<div id="shl001" class="cl w60"><div class="bxr"><a href="javascript:showhide(1, 1)">+</a></div>
<ul class="o xab"><li><a class="nod" href="javascript:showhide(1, 1)">###KAP-UE ...</a></li></ul>
</div> <!-- shl001 -->
<div id="shv001" class="inv">
<div class="w60"><div class="bxr"><a href="javascript:showhide(1, 0)">X</a></div>
<h3><a class="nod" href="javascript:showhide(1, 0)">###KAP-UE</a></h3></div>
[TEXT]
<h3 class="w60"><div class="bxr"><a href="javascript:showhide(1, 0)">X</a></div> &nbsp; </h3>
</div> <!-- shv001 -->
*/
//
function showhide(shpar, shflag)
// accepts '001' or 1 for ids: 'shl001', 'shv001'; flag: show=1
// text:list, text:verbous; texts must include on-off boxes
{ var  shall = '', shlist = '',  shp = '',  shs = '';
  if  (shflag == 0)
  { shall = 'none';  shlist = 'block'; }  else  { shall = 'block';  shlist = 'none'; };
  shp = String(shpar);  shp = shp.substr(0,3);
  if  (shp.length < 3)  { shp = '0'.concat(shp); };
  if  (shp.length < 3)  { shp = '0'.concat(shp); };
  shs = 'shl'.concat(shp);  document.getElementById(shs).style.display = shlist;
  shs = 'shv'.concat(shp);  document.getElementById(shs).style.display = shall;
}  // end showhide
//

