// JavaScript
//<script language="JavaScript">
function toggleGuidance(name) {
  var bars = document.sidebars;
  bars["d_"+name].toggleVisibility();
}

function popupGuidance(name) {
//  alert("If this was working, you would get a Guidance window popped up here, instead of this silly message.");
//  var popup = new PopupWindow(ROOT_PATH + "/l3/default.asp?name=" + name, "l3_window", screen.availWidth - L3_WIDTH, (screen.availHeight-L3_HEIGHT)/2, L3_WIDTH, L3_HEIGHT);

  var popup = new PopupWindow(ROOT_PATH + "/l3/" + name + ".asp?referrer=incorporator", "l3_window", screen.availWidth - L3_WIDTH + 3, (L3_SCREEN_HEIGHT)/2, L3_WIDTH, L3_HEIGHT);

  popup.resizable = true;
  popup.dependent = true;
  popup.status = false;
  window.guidancePopup = popup.open();

  // AM 26/11/02 Task#288 MoveTo after creation so Netscape will display it properly
  if( navigator.appName == "Netscape" ) window.guidancePopup.moveTo(screen.availWidth - L3_WIDTH + 3, (L3_SCREEN_HEIGHT)/2);
}

function closeGuidance() {
  if (window.guidancePopup) {
    window.guidancePopup.close();
  }
}

// JC 26/04/2006 Ref 2163 - This is not currently used - see page.asp for details
function backwardOrNot()
{
	var times=history.length;
	//alert(times);
	if (times > 0)
	{
		window.history.go(-1);
		//alert("not home");
	}
	else
	{
		window.location.href="/";
	}
}

