
var thePageWin = window;
var thePageDoc = top.document;

// get the Map Image width
function getMapWidth () {
	var mapFrameWidth = thePageWin.innerWidth;
//           alert(mapFrameWidth) 
	if (mapFrameWidth == null) {
		mapFrameWidth = thePageDoc.body.clientWidth;
//                alert(mapFrameWidth)
	}
	return mapFrameWidth;
}

 //get the Map Image height
function getMapHeight () {
	var mapFrameHeight = thePageWin.innerHeight;
//            alert(mapFrameHeight)
	if (mapFrameHeight == null) {
		mapFrameHeight = thePageDoc.body.clientHeight;
//                alert(mapFrameHeight)
	}
	return mapFrameHeight;
}
