﻿// Popup confirm boxes


// called on the Wilshire Mutual Funds link in the footer (or anywhere else needed) to warn that you are leaving the Wilshire public site
function confirmMutualFunds() {
    alert("You are now leaving wilshire.com and entering wilfunds.com, the Wilshire Mutual Funds site. You will not be able to return to the Wilshire Associates home page.\n\nWilshire Mutual Funds are distributed by SEI Investments Distribution Co., Oaks PA. Please send questions or comments to wilfunds@wilshire.com.\n\nCopyright 2011 by Wilshire Mutual Funds, Inc., 1299 Ocean Ave., Suite 700, Santa Monica, CA 90401-1085, USA. All rights reserved.");
    window.location = "http://wilfunds.com";
//	var r=confirm("You are now leaving wilshire.com and entering wilfunds.com, the Wilshire Mutual Funds site. You will not be able to return to the Wilshire Associates home page.\n\nWilshire Mutual Funds are distributed by SEI Investments Distribution Co., Oaks PA. Please send questions or comments to wilfunds@wilshire.com.\n\nCopyright 2011 by Wilshire Mutual Funds, Inc., 1299 Ocean Ave., Suite 700, Santa Monica, CA 90401-1085, USA. All rights reserved.");
//	if (r==true){
//			window.location="http://wilfunds.com";
//		}
//	else{	
//		}
}

// called on the Wilshire Index Application link in the footer (or anywhere else needed) to warn you are going to the Index calculator on the legacy site	

function confirmIndexApplication() {
    alert("You are now being re-directed to Wilshire Associate’s legacy website. In the coming months all content from the legacy site will migrate to the new Wilshire Associates site. Thank you.");
    window.location = "";
}

// call anywhere you need to warn you are going to the Compass page of the legacy site

function confirmCompass() {
    alert("You are now being re-directed to the Wilshire Compass Portal (formerly known as Odyssey).");
    window.location = "https://web.wilshire.com/BusinessUnits/Consulting/Compass/";
}

// call anywhere you need to warn you are going to the Compass page of the legacy site

function confirmCompassPortal() {
    alert("You are now being re-directed to Wilshire Associate's legacy website. In the coming months all content from the legacy site will migrate to the new Wilshire Associates site. Thank you.");
    window.location = "http://www.wilshirecompass.com/";
}

// call anywhere you need to warn you are going to the Compass page of the legacy site

function confirmOdyssey() {
    alert("You are now being re-directed to the Wilshire Odyssey Portal.");
}
