function fixHeight(){
	var myHeight = 0;
	var myWidth =0;

	myHeight = document.getElementById("wrapper").clientHeight;
	myWidth = document.getElementById("wrapper").clientWidth;
	
	// Height Constants for the Map
	tabSize = 660;
	headerSize = 145;
	footerSize = 25;
	totalDiscount = tabSize + headerSize + footerSize;
	
	//Width constant for the Map
	rightBar = 142;
	
	// Check if window resolution is less than the Tabs height
	if(myHeight < totalDiscount) {
		myHeight = totalDiscount;
	}
	
	var divHeight = document.getElementById("maparea");
	var mapsize = document.getElementById("map");
	var brokerwindow = document.getElementById("subBrokerWindow");
	if(brokerwindow) {
		brokerwindow.style.height = (myHeight-headerSize-footerSize-65)+"px";
	}
	divHeight.style.height = (myHeight-headerSize) + 'px';
	mapsize.style.height = (myHeight-headerSize)+'px';
	mapsize.style.width = (myWidth-rightBar)+'px';
	
	
	

}

window.onresize = function() {
		fixHeight();
}
	

