function createWindow(windowLocation,windowName,windowWidth,windowHeight) {

	if (document.all) {

		var xMax = screen.width, yMax = screen.height;

	} else {

		if (document.layers) {

			var xMax = window.outerWidth, yMax = window.outerHeight;

		} else {

			var xMax = 640, yMax=480;

		}

	}

function closeWindow() {
myWindow.close()
}


	var xOffset = (xMax - windowWidth)/2, yOffset = ((yMax - windowHeight)/2) - 50;




	window.open(

		windowLocation,

		windowName,

		'width=' + windowWidth + 

		',height=' + windowHeight +

		',screenX=' + xOffset + 

		',screenY=' + yOffset + 

		',top=' + yOffset +

		',left=' + xOffset +

		'status=no,scrollbars=no,resizable=yes');



}
