function launch(pg, wTitle, w, h) {
  var popW = w, popH = h;
	if (document.all || document.layers) {
    w = screen.availWidth;
    h = screen.availHeight;
	}
	var page = pg + ".htm";
  var leftPos = (w-popW)/2, topPos = (h-popH)/2;
  if (document.all) {
		var wOpt="status=no,scrollbars=no,resizable=no,toolbar=no,menubar=no,location=no,width="+popW+",height="+popH+",left="+leftPos+",top="+topPos;
//		var wOpt="status=0,scrollbars=0,resizable=0,width="+popW+",height="+popH+",left="+leftPos+",top="+topPos;
		window.open(page,wTitle,wOpt);
  } else {
		var wOpt="status=0,scrollbars=0,resizable=0,width="+popW+",height="+popH+",screenX="+leftPos+",screenY="+topPos;
		window.open(page,wTitle,wOpt);
  }   
}

function showHint(mode) {
	switch (mode) {
		case 0: status=applet; break;
		case 1: status=plugin; break;
		case 2: status=jnlp; break;
		case 3: status=jar; break;
		default: status='';
	}
	return true;
}
