// PopUp.js

var putItThere = null;
var w = 640;
var h = 480;
var chasm = screen.availWidth;
var mount = screen.availHeight;

function PopUp(url,w,h) {
	if (window.screen) {
  putItThere = window.open(url,'posB','width=' + w + ',height=' + h + ',left=' + ((chasm - w - 10) * .5) + ',top=' + ((mount - h - 30) * .5) + ',status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes');
	}
}

function PopUpD(url,w,h) {
	if (window.screen) {
  putItThere = window.open(url,'posB','width=' + w + ',height=' + h + ',left=' + ((chasm - w - 10) * .5) + ',top=' + ((mount - h - 30) * .5) + ',status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes');
	}
}

function blowOut() {
  if (putItThere != null && putItThere.open) putItThere.close();
}
window.onfocus=blowOut;