function adjustIFrameSize(){var e=document.getElementById("ifr");var c=document.getElementById("menu");var h=document.getElementById("related");var g=document.getElementById("footer");var d;var a;e.width=0;d=e.contentWindow.document.body.scrollWidth;if(e.contentDocument){if(e.contentDocument.height){a=e.contentDocument.height}else{a=e.contentWindow.document.body.scrollHeight}}else{a=e.contentWindow.document.body.scrollHeight}if(a<650){a=650}if(d<630){d=630}if(h){d=630}else{if(c){if(d<850){d=850}}else{d="98%"}}e.height=a;e.width=d;try{if(c.style.height){var f}f=c.style.height;if(parseInt(f.substring(0,f.length-1))<a){c.style.height=(a+100)+"px"}}catch(b){}}function adjustPageHeight(f){var b,e,d;d="px";if(window.innerHeight&&window.scrollMaxY){b=window.innerWidth+window.scrollMaxX;e=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){b=document.body.scrollWidth;e=document.body.scrollHeight}else{b=document.body.offsetWidth+document.body.offsetLeft;e=document.body.offsetHeight+document.body.offsetTop}}var a=document.getElementById("main").offsetHeight;var c=document.getElementById("content").offsetHeight;if(a<c){a=c}if(a<e){a=e}if(document.compatMode&&document.all){if(f=="resources"){a=2100}if(f=="about"){a=a+100}if(document.getElementById("DitoLagay")){a=document.getElementById("DitoLagay").offsetHeight+320}if(f=="inctables"){a=document.getElementById("tablelist").offsetHeight+120}}if(a<560){a=800}document.getElementById("main").style.height=a+d;document.getElementById("content").style.height=a+d;document.getElementById("menu").style.height=a+d;if(document.getElementById("related")){document.getElementById("related").style.height=a+d}if(document.getElementById("ifr")){adjustIFrameSize()}}function showPopWin(c,d,b,a){var e=window.open(httpRoot+"/"+c,"titolo","width="+d+",height="+b+"");if(window.focus){e.focus()}};