var scrWidth = screen.availWidth;
var scrHeight = screen.availHeight;

function openwin(url,W,H) {
	if (W,H) {
	winW = W; winH = H;
	} else {
	winW = 640; winH = 480;
	}

var postop = (parent.scrHeight-winH)/2;
var posleft = (parent.scrWidth-winW)/2;

nwindow = window.open(url,"openwindow","width="+winW+",height="+winH+",status=1,scrollbars=1,toolbar=0,menubar=0,resizable=1,top="+postop+",left="+posleft+"");
nwindow.focus();
}

function ws(msg) {
  window.status = msg;
}