function NavigateToSubWeb(strContextValue) { var strSubWebURL = null; switch (strContextValue) { case "International": strSubWebURL = "../International/index.html"; break; case "New Zealand": strSubWebURL = "../NewZealand/index.html"; break; default : strContextValue = "New Zealand"; strSubWebURL = "../NewZealand/index.html"; break; } writeCookie("WebSiteContext", strContextValue); location.href = strSubWebURL; }