function process(action, parameters) {
    window.frames["rframe"].document.forms["retfrm"].action = action;
    window.frames["rframe"].document.all["p"].value = parameters;
    window.frames["rframe"].document.forms["retfrm"].submit();
}

function loadit() {

	document.getElementById("loading").style.display = "";
	if (document.all)
	  var xMax = screen.width, yMax = screen.height;
	else
	  if (document.layers)
	      var xMax = window.outerWidth, yMax = window.outerHeight;
	  else
	      var xMax = 640, yMax=480;

	var xOffset = (xMax - 200)/2, yOffset = (yMax - 100)/4;
	document.all("loading").style.posTop = yOffset;
	document.all("loading").style.posLeft = xOffset;
	document.all("loading").style.backgroundColor = "white";
}

function unloadit() {
	document.all("loading").style.display = "none";
}

function loadpage(page) {
	loadit();
	window.location = page;
}
