var headerSize = 103;

function GetInnerSize () {
	var x,y;
	if (self.innerHeight) // all except Explorer
	{
		x = self.innerWidth;
		y = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight)
		// Explorer 6 Strict Mode
	{
		x = document.documentElement.clientWidth;
		y = document.documentElement.clientHeight;
	}
	else if (document.body) // other Explorers
	{
		x = document.body.clientWidth;
		y = document.body.clientHeight;
	}
	return [x,y];
}

var FFextraHeight = 0;

function resizeDiv(divname)
{
  var currentdiv=document.getElementById(divname);
  
  
  /*if(navigator.userAgent.indexOf("Firefox") != -1)
  {
    var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
    FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers
    currentdiv.style.width = "516px";
  }*/

  

  if(currentdiv != null)
    currentdiv.style.height = GetInnerSize()[1] - headerSize - FFextraHeight;

}

//document.attachEvent('onload',resizeDiv('mycustomscroll'));
//fleXenv.addTrggr(window,'load',resizeDiv('mycustomscroll'));
