// JavaScript Document

// launch a centered popup window
function launchCenteredWin(url, name, width, height, otherfeatures) {
	var str = "height=" + height + ",innerHeight=" + height;
	str += ",width=" + width + ",innerWidth=" + width;

	if (window.screen) {
		var ah = screen.availHeight - 30;
    	var aw = screen.availWidth - 10;
    	var xc = (aw - width) / 2;
    	var yc = (ah - height) / 2;
    	
		str += ",left=" + xc + ",screenX=" + xc;
  		str += ",top=" + yc + ",screenY=" + yc;
  	};

	newwin = window.open(url, name, str + ',' + otherfeatures);
	
	if(parseInt(navigator.appVersion) >= 4) {
    	setTimeout('newwin.focus();',250);
	};
};