1 function showIbox(iboxid) {
2 var ibox = document.getElementById(iboxid);
9 wwidth = self.innerWidth;
10 wheight = self.innerHeight;
12 else if (document.documentElement && document.documentElement.clientWidth)
14 wwidth = document.documentElement.clientWidth;
15 wheight = document.documentElement.clientHeight;
17 else if (document.body)
19 wwidth = document.body.clientWidth;
20 wheight = document.body.clientHeight;
22 ibox.style.width = bwidth + "px";
23 ibox.style.height = bheight + "px";
24 ibox.style.left = ((wwidth - bwidth) / 2) + "px";
25 ibox.style.top = ((wheight - bheight) / 2) + "px";
26 // alert('wwidth='+wwidth+'; bwidth='+bwidth+'; wheight='+wheight+'; bheight='+bheight);
28 ibox.style.display = 'block';
31 function HideIbox(iboxid) {
32 var ibox = document.getElementById(iboxid);
34 ibox.style.display = 'none';