var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isDyn = (isDOM || isIE4 || isNS4);

function getRef(id){
	if (isDOM) return document.getElementById(id);
	if (isIE4) return document.all[id];
	if (isNS4) return document.layers[id];
}

function resizeDivs(divName, divNameLoc){
	var divRef = getRef(divName);  
	var divRefLoc = getRef(divNameLoc);  
	
	var divHeight = 0;	
	divTop = 830;
	

	divHeight = document.all ? divRef.clientHeight :  (isDOM ? divRef.offsetHeight : divRef.document.height);
	divHeightLoc = document.all ? divRefLoc.clientHeight :  (isDOM ? divRefLoc.offsetHeight : divRefLoc.document.height);
	
	winHeight = document.all ? document.body.clientHeight : window.innerHeight;
		
	if(navigator.userAgent.indexOf("Firefox") != -1){	
		divTop = divTop - 70;
	}

	divRef.style.height = divHeight + divHeightLoc + "px";
	
	divRefLoc.style.top = divTop + "px";

}