﻿// JScript File

function getHeight(){
	var corection;
	if (typeof window.innerHeight == 'undefined') { // IE
		correction = 147;
	} else { // firefox
		correction = 140;
	}
	return (typeof window.innerHeight != 'undefined' ? window.innerHeight : document.body.offsetHeight) - correction;
	
}

function getWidth(){
	return (typeof window.innerWidth != 'undefined' ? window.innerWidth : document.body.offsetWidth)

}




function resizeIframe(iframeID) {
    parent.document.body.scrollTop = 0;
    if(self==parent) return false; /* Checks that page is in iframe. */ 
//    else if(document.getElementById&&document.all) /* Sniffs for IE5+.*/ 

    var FramePageHeight = framePage.scrollHeight + 10; /* framePage 
    is the ID of the framed page's BODY tag. The added 10 pixels prevent an 
    unnecessary scrollbar. */

    parent.document.getElementById(iframeID).style.height = FramePageHeight + "px";
    
    /* "iframeID" is the ID of the inline frame in the parent page. */
} 

