	function ShowHide(sDivID){
		if (document.getElementById(sDivID).style.display == 'none'){
			document.getElementById(sDivID + "_expand").style.display = 'none';
			document.getElementById(sDivID).style.display = 'block';
		} else {
			document.getElementById(sDivID + "_expand").style.display = 'block';
			document.getElementById(sDivID).style.display = 'none';
		}
	}
	
function newWindow(page, name, width, height) {
				var left;
				var top;
				var settings;
				var newWindow;

				left = (windowWidth() - width) / 2;
				top = (windowHeight() - height) / 2;

				settings = 'width=' + width + ',';
				settings += 'height=' + height + ',';
				settings += 'left=' + left + ',';
				settings += 'top=' + top + ',';
				settings += 'toolbar=no, location=no, directories=no, status=yes, menubar=no, scrollbars=yes, resizable=yes';
				
				newWindow = window.open(page, name, settings);
				if (window.focus) newWindow.window.focus();
			}

function windowWidth() {
		var width = 0;

		//Non-IE
		if (typeof(window.innerWidth) == 'number') {
			width = window.innerWidth;
		}
		//IE 6+ in 'standards compliant mode'
		else if (document.documentElement & document.documentElement.clientWidth) {
			width = document.documentElement.clientWidth;
		}
		//IE 4 compatible
		else if (document.body & document.body.clientWidth) {
			width = document.body.clientWidth;
		}
		
		return width;
	}

	function windowHeight() {
		var height = 0;

		//Non-IE
		if (typeof(window.innerHeight) == 'number') {
			height = window.innerHeight;
		}
		//IE 6+ in 'standards compliant mode'
		else if (document.documentElement & document.documentElement.clientHeight) {
			height = document.documentElement.clientHeight;
		}
		//IE 4 compatible
		else if (document.body & document.body.clientHeight) {
			height = document.body.clientHeight;
		}

		return height;
	}

