window.onresize = posIFrames;

function posIFrames() {
	posIFrameTop();
	posIFrameMain();
	posIFrameBottom();
}
function posIFrameTop() {
  var iframeWin = window.frames['TopFrame'];
  var iframeEl = document.getElementById? document.getElementById('TopFrame'): document.all? document.all['TopFrame']: null;
  if ( iframeEl && iframeWin ) {
  	iframeEl.style.height = "auto";
  	//iframeEl.style.height = (window.innerHeight * 0.07) + "px"
  	iframeEl.style.height = (document.body.clientHeight * 0.07) + "px"
  }
}

function posIFrameMain() {
  var iframeWin = window.frames['MainFrame'];
  var iframeEl = document.getElementById? document.getElementById('MainFrame'): document.all? document.all['MainFrame']: null;
  if ( iframeEl && iframeWin ) {
  	iframeEl.style.height = "auto";
  	//iframeEl.style.height = (window.innerHeight * 0.88) + "px"
  	iframeEl.style.height = (document.body.clientHeight * 0.88) + "px"
  }
}

function posIFrameBottom() {
  var iframeWin = window.frames['BottomFrame'];
  var iframeEl = document.getElementById? document.getElementById('BottomFrame'): document.all? document.all['BottomFrame']: null;
  if ( iframeEl && iframeWin ) {
  	iframeEl.style.height = "auto";
  	//iframeEl.style.height = (window.innerHeight * 0.03) + "px"
  	iframeEl.style.height = (document.body.clientHeight * 0.03) + "px"
  }
}