/*
 * file:	w.js
 * date:	2002-08-13
 * info:	http://inspire.server101.com/js/w/
 */


// popup
function wPop(u, n, w, h, l, t, f) {
	var p = window.open(u, n, 'width='+w+',height='+h+',resizable,'+f);
	if (!p.opener) p.opener = window;

	// setup
	p.resizeTo(w, h);
	if (l && t && screen) {
		if (l < 0) l += screen.availWidth - w;
		if (t < 0) t += screen.availHeight - h;
		p.moveTo(l, t);
	}
	p.focus();
}
