function updatePage(str, str1, str2, str3, newWin)
{
    if(newWin == true)
    {
        var p = "http://"+(str+str1+str2+str3).replace("http://", "");
        window.open(p);
    }
    else
    {
        window.location.href = str+str1+str2+str3;
    }
}

function update(val)
{
    var loc = "";
    var newWin = false;
    switch(val)
    {
        case "Home":
            loc = "/";
            break;
        case "Terms":
            loc = "/term";
            loc += "s.a";
            loc += "sp";
            break;
        case "TermsNew":
            newWin = true;
            loc = "http://trus";
            loc += "t-guard.c";
            loc += "om/te";
            loc += "rm";
            loc += "s.a";
            loc += "sp";
            break;
        case "Privacy":
            loc = "/term";
            loc += "s_pri";
            loc += "vac";
            loc += "y.asp";
            break;
        case "Partner":
            loc = "/par";
            loc += "tne";
            loc += "rs.h";
            loc += "tm";
            break;
        case "Affiliate":
            loc = "/affili";
            loc += "ate_i";
            loc += "nfo.a";
            loc += "sp";
            break;
        case "About":
            loc = "/categ";
            loc += "ory-s";
            loc += "/3.";
            loc += "htm";
            break;
        case "Contact":
            loc = "/contact-tr";
            loc += "ust-guard-s/";
            loc += "4.ht";
            loc += "m";
            break;
        case "SecureLogin":
            newWin = true;
            loc = "htt";
            loc += "p:/";
            loc += "/secure.trust-gu";
            loc += "ard.co";
            loc += "m";
            break;
        case "Support":
            newWin = true;
            loc = "htt";
            loc += "ps:/";
            loc += "/trustguar";
            loc += "d.rhinosupport.co";
            loc += "m/Widgets/Custom/CreateTicket.php";
            break;
        case "Help":
            newWin = true;
            loc = "htt";
            loc += "ps:/";
            loc += "/trustguar";
            loc += "d.rhinosupport.co";
            loc += "m/knowledgebase.htm";
            break;
        case "WorldTeacher":
            newWin = false;
            loc = "htt";
            loc += "p:/";
            loc += "/tru";
            loc += "st-gua";
            loc += "rd.c";
            loc += "om/help";
            loc += "s-World-";
            loc += "Teacher-Aid.";
            loc += "htm";
            break;
    }
    if (newWin)
    {
        window.open(loc);
    }
    else
    {
        window.location.href = loc;
    }
}
