File size: 1,841 Bytes
07c3cdd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<html>
  <style type="text/css">
   .Footer .content {
      padding   :0px !important;
   }  
   *html body {
      overflow-y: hidden;
   }
  </style>
  <body onresize="autoResizeScreen()" onload="autoResizeScreen()">
  <iframe name="casesFrame" id="casesFrame" src ="../DashboardModule" width="99%" height="768" frameborder="0">
    <p>Your browser does not support iframes.</p>
  </iframe>
  </body>
  <script>
    if ( document.getElementById('pm_submenu') )
      document.getElementById('pm_submenu').style.display = 'none';
      document.documentElement.style.overflowY = 'hidden';

      var oClientWinSize = getClientWindowSize();
      

    
    function autoResizeScreen() {
	 	var containerList1, containerList2;
		oCasesFrame    = document.getElementById('casesFrame');
		containerList1 = document.getElementById("pm_header");
		
		if (document.getElementById("mainMenuBG") &&
			document.getElementById("mainMenuBG").parentNode &&
			document.getElementById("mainMenuBG").parentNode.parentNode &&
			document.getElementById("mainMenuBG").parentNode.parentNode.parentNode &&
			document.getElementById("mainMenuBG").parentNode.parentNode.parentNode.parentNode){
				containerList2 = document.getElementById("mainMenuBG").parentNode.parentNode.parentNode.parentNode;
			}
		if (containerList1 === containerList2) {
			height = oClientWinSize.height - containerList1.clientHeight;
			oCasesFrame.style.height = height;
			if (oCasesFrame.height ) {
				oCasesFrame.height = height;
			}
		}else{
			height = getClientWindowSize().height-90;
			oCasesFrame.style.height = height;
			oCasesSubFrame = oCasesFrame.contentWindow.document.getElementById('casesSubFrame');
			if(oCasesSubFrame){
				oCasesSubFrame.style.height = height-5;
			}
			else {
				setTimeout('autoResizeScreen()', 2000);
			}
		}
    }
  </script>
</html>