// Centering Pop-up Window
function centerPopup(newPage, newName, newToolbar, newLocation, newMenubar, newStatus, newWidth, newHeight, newScroll) {
	var winLeft = (screen.width - newWidth) / 2;
	var winTop = (screen.height - newHeight) / 2;
    windowprops = 'toolbar=' + newToolbar + ',location=' + newLocation + ',menubar=' + newMenubar + ',status=' + newStatus + ',width=' + newWidth + ',height=' + newHeight + ',top=' + winTop + ',left=' + winLeft + ',scrollbars=' + newScroll + ',resizable=yes';
    preview = window.open(newPage, newName, windowprops)
	   if (parseInt(navigator.appVersion) >= 4) {
	   preview.window.focus()
	   }
}
/*********************************************************************/