﻿// iframe resize
function iecompattest()
{
  return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function cmdResizeIfr()
{
    if (document.getElementById('ifr') != null)
    {
    	if (self.innerHeight)
    		var ifrHeight=self.innerHeight;
    	else
        	var ifrHeight=iecompattest().clientHeight;
        document.getElementById('ifr').style.height=ifrHeight + 'px';
    }
    if (document.getElementById('sidebarbottom') != null)
    {
    	if (self.innerHeight)
    		var sideHeight=self.innerHeight - 590;
    	else
        	var sideHeight=iecompattest().clientHeight - 590;
        document.getElementById('sidebarbottom').style.height=sideHeight + 'px';
    }
}
window.onresize = cmdResizeIfr;