currentURL = document.URL;
x = currentURL.lastIndexOf("/")+ 1;
y = currentURL.length;
file_p = currentURL.substr(x,y);
dot = file_p.indexOf(".");
file_p = file_p.substr(0, dot); 
file_p = file_p.concat("_p.asp");

//--------------------------------------------------------------------------------------------
// Start of Page Housekeeping - Page global variables
//--------------------------------------------------------------------------------------------	
var isNav
var isIE
var isIE4
var isIE5
var isIE6
var isMAC
var isIE6 	// pjwNS6andIE6   added this line 
var isNS6 	// pjwNS6andIE6   added this line
isNS6 = false; 	// pjwNS6andIE6   added this line
	
//--------------------------------------------------------------------------------------------
// Sniff Browser Cookie - must be enabled
//--------------------------------------------------------------------------------------------	
function cookieCheck()
{
    var expdate = new Date ();  				    // start with todays date
    expdate.setDate(expdate.getDate()+52); 			// advance it 2 months
	
    //    write it 
    document.cookie = "rcomcke=true; path=; expires=" + expdate.toGMTString(); 
	 
	// now try and read it, if it's not there warn user about cookies.

  if (document.cookie.indexOf("rcomcke") != -1 || document.cookie.indexOf("/iw-mount/") != -1) {
				return(false);										// It is there so do nothing
  } 							
  else{													// display the Gotta Have Cookies
		//
		// V.Martin June 2004
		//		Commented out the upgrade browser relocation per sm
		//
       	//gotoUpgradeBrowserPage("&flag=n");
		return(true);
  } 
  return(false); // added this line to fix a problem in Netscape 4.05 
}	
  
function openNewWindow(d) {
	window.open(d);
}

//--------------------------------------------------------------------------------------------
// Sniff Browser Type to see if we have version 4 or better in Netscape or IE
//--------------------------------------------------------------------------------------------
function browserCheck()
{
isMAC = navigator.userAgent.indexOf("Mac");

if (parseInt(navigator.appVersion) >= 4) 
{
	
        if (navigator.appName == "Netscape") 
	{
		var tail = navigator.appVersion.indexOf(' ')
		var version = parseFloat(navigator.appVersion.substring(0,tail))
		
		if (version < 4.05) //then this is a bad version of the stand alone Navigator
		{
			isNav = true;
				//
				// V.Martin June 2004
				//		Commented out the upgrade browser relocation per sm
				//return(gotoUpgradeBrowserPage(""));
		}
		if (version >= 4.05 && version <= 4.08) //then this is a GOOD version of stand alone navigator
		{
			isNav = true;
			return(false);
		}
		if (version > 4.08 && version < 4.5) //then this is a bad version of Communicator
		{
			isNav = true;
				//
				// V.Martin June 2004
				//		Commented out the upgrade browser relocation per sm
				//return(gotoUpgradeBrowserPage(""));
		} 
		// pjwNS6andIE6   replaced the following "if ..." 
		if (version >= 5) //then this is NS 6.0
		{
			isIE = true;
			isIE5 = true;
			isNS6 = true;
			isNav = true;
			//
			// V.Martin June 2004
			//		Commented out the upgrade browser relocation per sm
			//return(gotoUpgradeBrowserPage(""));
		} 
		if (version >= 4.5) //then this is a GOOD version of Communicator
		{
			isNav = true;
			return(false);
		}	
        }
        else 
	{
                isIE = true;
                
                if (navigator.appVersion.indexOf("MSIE 4") != -1)
		{
			isIE4 = true;
			return(false);
			
			//alert('i am IE4');
		}
		// pjwNS6andIE6   replaced the following "if ..." 
		if (version > 5) //then this is IE 6.0 so tell it it's ie5
		{
			isIE = true;
			isIE5 = true;
			isIE6 = true;
			return(false);
			//alert('I am IE6');
		} 
		if (navigator.appVersion.indexOf("MSIE 5") != -1)
		{
			isIE5 = true;
			return(false);
			//alert('i am IE5');
		}
		isIE5 = true;
		return(false);
		
	}
}
else 
{
	isIE5 = true;
	isIE = true;
	//
	// V.Martin June 2004
	//		Commented out the upgrade browser relocation per sm
	//return(gotoUpgradeBrowserPage(""));
}
return(false); // added this line to fix a problem in Netscape 4.05 
}

function gotoUpgradeBrowserPage(sflag)
{
	if (document.cookie.indexOf("rocomcke") != -1 || document.cookie.indexOf("/iw-mount/") != -1) {
				return(false);						// we've been here
  } 
  var expdate = new Date ();  				    // start with todays date
    expdate.setDate(expdate.getDate()+52); 			// advance it 2 months
	document.cookie = "rocomcke=true; path=; expires=" + expdate.toGMTString();  
	top.location.href="/upgradeBrowser.asp?location=" + escape(location.pathname) + "?" + sflag
	return(true);
}




//--------------------------------------------------------------------------------------------
// End of Page Hsk - append any channel specific stuff after the include
//--------------------------------------------------------------------------------------------


pageHsk();

function pageHsk()
{
if (cookieCheck())
	{  return(false);  }

if (browserCheck())
	{  return(false);  }

}

//--------------------------------------------------------------------------------------------
// Date Stamp Function
//--------------------------------------------------------------------------------------------

function dateStamp()
{
today = new Date()
mm=today.getMonth()+1;
if(mm==1) date="January";
	if(mm==2) date="February";
	if(mm==3) date="March";
	if(mm==4) date="April";
	if(mm==5) date="May";
	if(mm==6) date="June";
	if(mm==7) date="July";
	if(mm==8) date="August";
	if(mm==9) date="September";
	if(mm==10) date="October";
	if(mm==11) date="November";
	if(mm==12) date="December";

yy=today.getFullYear();

if (yy <= 99)
	{
	yy = yy + 1900;
	}
document.write(date," ",today.getDate(),", ",yy);
}


// cookie disclaimer script. throws up a confirm box if the cookie is not present.
function disclaimerCheck()
{
	  if (document.cookie.indexOf("rcomau") != -1 || document.cookie.indexOf("/iw-mount/") != -1) {
							return(false);								// It is there so do nothing
	  }
	  else{													// display the disclaimer

	    location.href = "/AU/navigation/resident.asp?" + escape(location.pathname);
		return(true);
	  }
 }

// compliance requirement for leaving r.com.
function leaveRcom(d) {

	boolConfirmResponse = confirm("You are now leaving Russell.com.  The following link may contain information concerning investments other than those offered by Frank Russell Company, its affiliates, subsidiaries, or distribution channels.  Neither Frank Russell Company nor its affiliates are responsible for investment decisions made with respect to such investments or for the accuracy or completeness of information about such investments.  The material available on this site has been produced by independent providers that are not affiliated with Frank Russell Company.  Descriptions of, references to, or links to products or publications within any linked web site does not imply endorsement of that product or publication by Frank Russell Company.  Any opinions or recommendations expressed are solely those of the independent providers and are not the opinions or recommendations of Frank Russell Company, which is not responsible for any inaccuracies or errors.");

    if(boolConfirmResponse)
		{
		window.open(d);
		}
}

// compliance requirement for leaving r.com.
function leaveSite(d) {

	boolConfirmResponse = confirm("You are now leaving Russell.com.  The following link may contain information concerning investments other than those offered by Frank Russell Company, its affiliates, subsidiaries, or distribution channels.  Neither Frank Russell Company nor its affiliates are responsible for investment decisions made with respect to such investments or for the accuracy or completeness of information about such investments.  The material available on this site has been produced by independent providers that are not affiliated with Frank Russell Company.  Descriptions of, references to, or links to products or publications within any linked web site does not imply endorsement of that product or publication by Frank Russell Company.  Any opinions or recommendations expressed are solely those of the independent providers and are not the opinions or recommendations of Frank Russell Company, which is not responsible for any inaccuracies or errors.");

    if(boolConfirmResponse)
		{
		window.open(d);
		}
}

function surveyCheck() {

	// Check to see if the AU resident cookie has been set
	if (document.cookie.indexOf("rcomau") != -1) {
		if (document.cookie.indexOf("ausurvey") == -1) {
			// Survey hasn't been displayed this session, so set
			// the cookie and then check for it.
			// If the cookie hasn't been set, redirect to
			// upgrade browser page. Cookies need to be enabled on this site.
			// Otherwise, the cookie was set, so display the survey.
			document.cookie = "ausurvey=true; path=/";
			// Now check to make sure it was written
			if (document.cookie.indexOf("ausurvey") != -1) {
				popUp("http://webapp1.russell.com/2way/2w839/Link.html", 600, 400);
				return true;
			} else {
				gotoUpgradeBrowserPage("&flag=n");
				return true;
			}
	  	}
		return true;
	}
	return true;
}
//surveyCheck();
//-->