// JavaScript Document

function showPopup(page, h, w) {

	// set default width (w) and height (h) if not passed to the function
    var h = (h == null) ? 600 : h;
    var w = (w == null) ? 860 : w;
	

	windowName = "DETAILS"; // force the window name
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; // centre horizontally
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0; // centre vertically
	windowFeatures = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',toolbar=no,scrollbars=yes,resizable=yes,status=no';
	newWindow = window.open(page, windowName, windowFeatures);
	newWindow.moveTo(LeftPosition,TopPosition) // reposition the open window
	newWindow.resizeTo(w,h) // resize the open window
	newWindow.focus(); // bring the window to the front

//	var load = window.open(page,'','scrollbars=yes,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no');
}
