
function goToFooter(strFooterLocation){	
	var currentHref = location.href;
	var hrefLen = currentHref.length;
	var posHash = currentHref.indexOf('#');
	var finalHref = currentHref.substring(0,hrefLen-(hrefLen-posHash));
	location.href=finalHref+strFooterLocation;
	return true;	
}

  function browserOK() {
    var browser = navigator.appName;
    var version = parseFloat(navigator.appVersion);

    if ((browser  == "Netscape" || browser == "Microsoft Internet Explorer") && (version >= 4)) {
      return true;
    }
    else 
	{
      return false;
    }
  }

  function openFRCWindow() {
      // open the window and set its focus
	 if ( !browserOK() ) {
      window.location = "/about/getbrowser.jsp";
    } 
	else
	{
      homewindow = window.open( "http://finance.americanexpress.com/finance/resources/","frc","height=440,width=640,scrollbars=yes,resizable=yes,toolbar=yes,location=no,menubar=no,screenX=300,screenY=100,left=300,top=100" );
	  }
	}
	function openNRCWindow() {
      // open the window and set its focus
	 if ( !browserOK() ) {
      window.location = "/about/getbrowser.jsp";
    } 
	else
	{
      homewindow = window.open( "http://finance.americanexpress.com/finance/resources/NewsAndResearch.asp","frc","height=440,width=640,scrollbars=yes,resizable=yes,toolbar=yes,location=no,menubar=no,screenX=300,screenY=100,left=300,top=100" );
	  }
	}
	function openMRCWindow() {
      // open the window and set its focus
	 if ( !browserOK() ) {
      window.location = "/about/getbrowser.jsp";
    } 
	else
	{
      homewindow = window.open( "http://finance.americanexpress.com/finance/resources/MarketCommentary.asp","frc","height=440,width=640,scrollbars=yes,resizable=yes,toolbar=yes,location=no,menubar=no,screenX=300,screenY=100,left=300,top=100" );
	  }
	}

	function openFPWindow() {
      // open the window and set its focus
	 if ( !browserOK() ) {
      window.location = "/about/getbrowser.jsp";
    } 
	else
	{
      homewindow = window.open( "http://finance.americanexpress.com/finance/resources/FinancialPlanningTools.asp","frc","height=440,width=640,scrollbars=yes,resizable=yes,toolbar=yes,location=no,menubar=no,screenX=300,screenY=100,left=300,top=100" );
	  }
	}



function stopError() {
      return true;
}



	function OpenMBPopUpWindow(FileToOpen) 
	{
	
		window.onerror = stopError;
	  
		if ( !browserOK() )
		{
			window.location = "/about/getbrowser.jsp";
		} 
		else
		{
			
				homewindow = window.open(FileToOpen,"xx","height=600,width=650,status=no,scrollbars=yes,toolbar=no,menubar=no,location=no,left=140,top=110");
			 	homewindow.focus();	
		}
				
	}


	function amexCalc(){

		window.onerror = stopError;

	  
		if ( !browserOK() )
		{
			window.location = "/about/getbrowser.jsp";
		} 
		else
		{
			  url = 'http://www.peoplefirst.com/pff/partners_calculator.cfm' ;			
		         calcWindow = window.open(url,'calcWin','toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizeable=0,copyhistory=0,height=520,width=515');			
		 	calcWindow.focus();	
		}
	}


	function amexRate(){

		window.onerror = stopError;

	  
		if ( !browserOK() )
		{
			window.location = "/about/getbrowser.jsp";
		} 
		else
		{
			 url = 'http://www.peoplefirst.com/pff/site_Rateterm.cfm?showRates=true' ;
		         rateWindow = window.open(url,'rateWin','toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizeable=1,copyhistory=0,height=530,width=610');
		 	 rateWindow.focus();	
		}

	}

	function amexHow(){

		window.onerror = stopError;

	  
		if ( !browserOK() )
		{
			window.location = "/about/getbrowser.jsp";
		} 
		else
		{
			 url = 'http://www.peoplefirst.com/pff/site_Rateterm.cfm?showHowItWorks=true';
                         rateWindow = window.open(url,'rateWin','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizeable=1,copyhistory=0,height=500,width=610');
		 	 rateWindow.focus();	
		}
	}

	function payOption(){

		window.onerror = stopError;
	  
		if ( !browserOK() )
		{
			window.location = "/about/getbrowser.jsp";
		} 
		else
		{
			 url = 'http://www.peoplefirst.com/pff/site_automated_payment_option.cfm';
		         payWindow =window.open(url,'payWin','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizeable=1,copyhistory=0,height=200,width=485');
		 	 payWindow.focus();	
		}  

	}


	function OpenFlashWindow() 
	{
	
		window.onerror = stopError;
	  
		if ( !browserOK() )
		{
			window.location = "/about/getbrowser.jsp";
		} 
		else
		{
			
				flashwindow = window.open("/flash.html","flashMovie",'height=440,width=625,status=no,scrollbars=no,toolbar=no,menubar=no');
			 	flashwindow.focus();	
		}
				
	}
        

	function OpenTutorialWindow()
        {

                window.onerror = stopError;

                if ( !browserOK() )
                {
                        window.location = "/about/getbrowser.jsp";
                }
                else
                {

                                flashwindow = window.open("/servlet/demoProxy/online/help/t-payingbills.html","Tutorial",'height=600,width=800,status=no,scrollbars=yes,toolbar=yes,resizable=yes,menubar=no');
                                flashwindow.focus();
                }

        }


	function popUp(url) {
		sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=500,height=450');
		self.name = "mainWin"; 
	}

