// JavaScript Document
function createPopup(url) {
	// determine screen size, so we can center the window
	var screenW = 1024;
	var screenH = 768;
	if (parseInt(navigator.appVersion) > 3) {
		screenW = screen.width;
		screenH = screen.height;
	} 
		
	var popupW = 600;
	var popupH = 450;
	// create the popup window
	var myWindow = window.open(url, "wb_popup", "width="+popupW+", height="+popupH+", scrollbars=no, resizable=no, menubar=no, status=no, toolbar=no");
	
	// center popup
	//myWindow.moveTo( (screenW - popupW) / 2, (screenH - popupH) / 2 );	
	
	// focus the window
	myWindow.focus();
}