
            //Get the width of the current window...
            function getWindowWidth() {
                var windowWidth = 0;
                if (typeof(window.innerWidth) == 'number') {
	                windowWidth = window.innerWidth;
	            }
	            else {
	                if (document.documentElement && document.documentElement.clientWidth) {
		                windowWidth = document.documentElement.clientWidth;
	                }
	                else {
                        if (document.body && document.body.clientWidth) {
			                windowWidth = document.body.clientWidth;
		                }
	                }
                }
	            return windowWidth;
            }
			
			
			//Get the height of the current window...
            function getWindowHeight() {
                var windowHeight = 0;
                if (typeof(window.innerHeight) == 'number') {
	                windowHeight = window.innerHeight;
	            }
	            else {
	                if (document.documentElement && document.documentElement.clientHeight) {
		                windowHeight = document.documentElement.clientHeight;
	                }
	                else {
                        if (document.body && document.body.clientHeight) {
			                windowHeight = document.body.clientHeight;
		                }
	                }
                }
	            return windowHeight;
            }


			//Opens a new window
			function newWin(strURL, strName, intWidth, intHeight, strParam)
			{
			    intWidth = intWidth - (intWidth/3);
			    intHeight = intHeight - (intHeight / 9);

                var iScrnHght = window.screen.height;
                var iScrnWidth = window.screen.width;

                var intLeft = (iScrnWidth / 2) - (intWidth / 2);
                var intTop = (iScrnHght / 2) - (intHeight / 2) - 50;
				
				var newWin = window.open(strURL, strName, strParam + ',left='+ intLeft + ',top=' + intTop + ',width=' + intWidth + ',height=' + intHeight);
			
				newWin.focus();
			}
