
function menuMainOn() {
	if (MSIE) {
		document.all.menumain.style.visibility="visible";
	} else if (NS) {
		obj = window.document.getElementById("menumain");
		obj.style.visibility="visible";
	} else {
		document.layers["menumain"].visibility="show";
	}
}

function menuMainOff() {
	if (MSIE) {
		document.all.menumain.style.visibility="hidden";
	} else if (NS) {
		var obj = window.document.getElementById("menumain");
		obj.style.visibility="hidden";
	} else {
		document.layers["menumain"].visibility="hide";
	}
}

function nextStep(theStep) {
	var thisStep = BS_findObj("step"+(theStep-1));
	var nextStep = BS_findObj("step"+theStep);

	thisStep.style.visibility="hidden";
	nextStep.style.visibility="visible";
}

function previousStep(theStep) {
	var thisStep = BS_findObj("step"+(theStep+1));
	var prevStep = BS_findObj("step"+theStep);

	thisStep.style.visibility="hidden";
	prevStep.style.visibility="visible";
}

function BS_findObj(n) {
  var p,i,x;  
  var d=document;
  
  if ((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document;
	n=n.substring(0,p);
  }
  
  if(!(x=d[n])&&d.all) x=d.all[n];
  for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n);
  return x;
}