function launch( url, params ) {
  self.name = 'opener';
  var remote = window.open( url, 'remote', params );
}

function launchCentered( url, width, height, options) {
  var left = ( screen.width - width ) / 2;
  var top = ( screen.height - height ) / 2;
  var options = "top="+top+",left="+left+",width="+width+",height="+height+","+options;
  launch( url, options );
}

function loadPage(link, confirmText) {
	if(confirmText) {
		if(!confirm(confirmText))
			return false;
	}
	window.location = link;
}



