var winWidth = 630;
var winHeight = self.screen.availHeight-50;
var agent=navigator.userAgent.toLowerCase();
if (agent.indexOf('opera')!=-1)
{
	winHeight = self.screen.availHeight-90;
}
function resize()
{
	window.resizeTo(winWidth,winHeight);	
}
function resizemax()
{	
	window.resizeTo(screen.availWidth,self.screen.availHeight);
	window.moveTo(0,0);	
}

<!-- Begin
		var ns=0;
		var useragent = navigator.userAgent;
		var bName = (useragent.indexOf('Opera') > -1) ? 'Opera' : navigator.appName;
		var pos = useragent.indexOf('MSIE');
		if (pos > -1) {
			bVer = useragent.substring(pos + 5);
			var pos = bVer.indexOf(';');
			var bVer = bVer.substring(0,pos);
		}
		var pos = useragent.indexOf('Opera');
		if (pos > -1)	{
			bVer = useragent.substring(pos + 6);
			var pos = bVer.indexOf(' ');
			var bVer = bVer.substring(0, pos);
		}
		if (bName == "Netscape") {
			var bVer = useragent.substring(8);
			var pos = bVer.indexOf(' ');
			var bVer = bVer.substring(0, pos);
			ns = 1;
		}
		if (bName == "Netscape" && parseInt(navigator.appVersion) >= 5) {
			var pos = useragent.lastIndexOf('/');
			var bVer = useragent.substring(pos + 1);
			ns = 1;
		}
		//var WinHeight=(ns?window.innerHeight:window.document.body.clientHeight);
		//var WinWidth=(ns?(window.innerWidth-70):window.document.body.clientWidth);
//  End -->
