function pop(width,height,url) {
	window.open(url, 'popup' + height, 'width=' + width + ',height=' + height + ',left=' + ((screen.width/2)-(width/2)) +',top=' + ((screen.height/2)-(height/2)) + ',resizable=0,scrollbars=0,status=0');
}

function doLogin() {
	password = document.f1.code.value;
	if (password)	{
		password = MD5(password);	// this makes it superchallenged!!
		document.f1.uid.value = password;
		document.f1.code.value = "";
		document.f1.target = "ctable";
		document.f1.submit();
		setTimeout('window.close()', 500);
	}
}

function loadidx(url) {
	opener.location.href = url;
	this.window.close();
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

