home *** CD-ROM | disk | FTP | other *** search
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
- <title>Protokol o p°edßnφ</title>
- <link rel="stylesheet" href="dummy.css">
- </head>
-
- <xml id="data"></xml>
- <xml id="sheet"></xml>
-
- <script>
- function FileLocation(fn) {
- return "%HTMLPATH_C%\\" + fn; // release
- // return fn; // debug
- }
-
- function InitToggles()
- {
- SetToggleDetailsButton(true);
-
- var ecol=document.getElementsByTagName("IMG");
- for ( j=0; j < ecol.length; j++ ) {
- if ( ecol(j).id=="CloseDetails" )
- ecol(j).src=FileLocation("close.gif");
- }
-
- // skr²t na protokolu o p°edßnφ
- var ecol=document.getElementsByTagName("TR");
- for ( j=0; j < ecol.length; j++ ) {
- if ( ecol(j).id=="NakupInfo" )
- ecol(j).style.display="none";
- }
- }
-
- function SetToggleDetailsButton(bUp)
- {
- var ecol=document.getElementsByTagName("IMG");
- for ( j=0; j < ecol.length; j++ ) {
- if ( ecol(j).id=="ToggleDetails" )
- ecol(j).src=FileLocation( bUp ? "up.gif" : "down.gif" );
- }
- }
-
- function OnToggleDetails()
- {
- var bUp;
- var ecol=document.getElementsByTagName("TABLE");
- for ( j=0; j < ecol.length; j++ ) {
- if ( ecol(j).id == "Detail" ) {
- if ( ecol(j).style.display == "none" ) {
- ecol(j).style.display="block";
- bUp=true;
- }
- else {
- ecol(j).style.display="none";
- bUp=false;
- }
- }
- }
-
- SetToggleDetailsButton(bUp);
- }
-
- </script>
-
- <script for="window" event="onload">
- document.styleSheets(0).href=FileLocation("style.css");
-
- data.load("%XMLPATH_C%"); // release
- // data.load("Protokol o p°edßnφ (vnit°nφ).xml"); // debug
-
- sheet.load(FileLocation("Protokol o p°edßnφ (vnit°nφ).xsl"));
-
- xslTarget.innerHTML = data.transformNode(sheet.XMLDocument);
-
- InitToggles();
- </script>
-
- <body>
- <div id="xslTarget"></div>
- </body>
-
- </html>
-