<script type="text/javascript" language="javascript"><!-- // Copyright (c) May 2002 by Michał Nazarewicz (mina86@tlen.pl) // Idea by Michał Jazłowiecki (michalj@prioris.mini.pw.edu.pl) // This software is free; It's distributed under terms of GNU General Public License var theDoc=document, theAll=(theDoc.all)?theDoc.all:null; function ShowHideLayer(name, state) { if (theAll==null) return; if (arguments.length<2) state=theAll[name].style.display=="none"; theAll[name].style.display=(state)?"block":"none"; } function ButtonClick(but, name, desc1, desc2) { var state=but.value==desc1; but.value=(state)?desc2:desc1; ShowHideLayer(name,!state); } function addShowHideButton(name, desc1, desc2, state) { if (theAll==null) return; theDoc.write('<form><input type="button" value="'+(state?desc1:desc2)+ '" onclick="ButtonClick(this, \''+name+'\',\''+desc1+'\',\''+desc2+'\');" /></form>'); } //--></script>