var blnDontMoveFromHereWithoutWarning = false;
var blnThisIsAnApplicationFormPage = false;
var winApplicant;
var winApp;
  
function fnLoadPage(strMaintainedPage)
{ 
  if (blnDontMoveFromHereWithoutWarning == true)
  {
    if (confirm ("Warning - If you move from this page you will lose any changes you have made.") == false)
		{return false;}		
  } 
  if (blnThisIsAnApplicationFormPage == true)  //Check whether we need to save the application form data before moving
	{fnMovingFromApplicationPages(strMaintainedPage); return false;}
	
  document.location = strMaintainedPage;
  return true;
}
  
function fnFindApplicant(strMaintainedPage)
{
  winApp = window.open(strMaintainedPage,'APPFIND','width=420,height=400,top=150,left=200,scrollbars=yes');
  setTimeout('fnApplicantFindFocus();',250);
}
  
function fnApplicant(strMaintainedPage)
{
  winApplicant = window.open(strMaintainedPage,'APPLICANT','width=780,height=450,top=10,left=5,scrollbars=yes,resizable=yes');
  setTimeout('fnApplicantFocus();',250);
}

function fnApplicantFocus(){winApplicant.focus();}
function fnLogOut(strMaintainedPage){window.parent.location = strMaintainedPage;}
function fnApplicantFindFocus(){winApp.focus();}
function fnLoadFrame(strMaintainedPage){window.top.document.location = strMaintainedPage;}
