function popUp(sURL, theWidth, theHeight) {
	//    Gets screen size
	var iPageWidth, iPageHeight;
	if (self.innerHeight) {
		iPageWidth = self.innerWidth;
		iPageHeight = self.innerHeight;
	}
	else if (document.all && document.getElementById) {
		iPageWidth = screen.availWidth;
		iPageHeight = screen.availHeight;
	}
	else if (document.body) {
		iPageWidth = document.body.clientWidth;
		iPageHeight = document.body.clientHeight;
	}

	leftSideOfPopup = (iPageWidth - theWidth)/2;
	topSideOfPopup = (iPageHeight - theHeight)/2;
	features = "toolbar=0,width=" + theWidth + ",height=" + theHeight + ",status=0,scrollbars=0,resize=0,menubar=0,location=0,directories=0,screenX=" + leftSideOfPopup + ",left=" + leftSideOfPopup + ",screenY=" + topSideOfPopup + ",top=" + topSideOfPopup;    <!-- One line and no spaces  -->

	theWindow = window.open(sURL, "", features);
}