function getMaxWidthHeight() {
	if (self.innerWidth) {
		document.frameWidth = self.innerWidth;
		document.frameHeight = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientWidth) {
		document.frameWidth = document.documentElement.clientWidth;
		document.frameHeight = document.documentElement.clientHeight;
	}
	else if (document.body) {
		document.frameWidth = document.body.clientWidth;
		document.frameHeight = document.body.clientHeight;
	}
}

function doResize(MObj,MIN_WIDTH,MIN_HEIGHT) {
	
	getMaxWidthHeight();
	winW = document.frameWidth;
	winH = document.frameHeight;
	//MObj = document.getElementById("site");
	
	if((winW <= MIN_WIDTH)) {
		MObj.width = MIN_WIDTH;
	}else if (winW > MIN_WIDTH) {
		MObj.width = '100%';
	}
	if((winH <= MIN_HEIGHT)) {
		MObj.height = MIN_HEIGHT;
	}else if (winH > MIN_HEIGHT) {
		MObj.height = '100%';
	}
}
