<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_jumpLocation(targ,path){ 
  eval(targ+".location='"+path+"'");
}


function SubmitSearchForm(targ, searchTerm)
{
	eval(targ+".location='http://www.amtamassage.org/searchresults.aspx?q="+searchTerm+"'");
}


function openWindow(loc)
{
	window.open(loc);
}

function getCookie(c_name) 
{
    if (document.cookie.length > 0) 
    {
        c_start=document.cookie.indexOf(c_name + "=");
        if (c_start != -1) 
        {
            c_start=c_start + c_name.length + 1;
            c_end=document.cookie.indexOf(";", c_start);
            
            if (c_end == -1) c_end=document.cookie.length;
                return unescape(document.cookie.substring(c_start, c_end));
        }
    }
    return "";
}

function Authenticate()
{
    if (window.location.href.indexOf("/member/") > 0)
    {
        var netForumKey = getCookie("netForumCstKey");
        var amtamassagemtype = getCookie("amtamassagemtype");
    
        if (netForumKey == "")
        {
            window.location = "/a/eWebLogin.aspx?redirectUrl=" + window.location.href;
        }
        if (amtamassagemtype == "NONMEMBER" || amtamassagemtype == "NONMEMBERORG")
        {
            window.location = "/default.aspx";
        }
    }
}

Authenticate();

//-->