if (getCookie("SOLauth") != "")
{ 
document.location="http://sid.passagen.se";
}

/*
if (username != "")
{ 
document.location="http://inloggad.webbpost.passagen.se";
}
*/

function getCookie(NameOfCookie){ 
if (document.cookie.length > 0)
{ begin = document.cookie.indexOf(NameOfCookie+"=");
if (begin != -1)
{ begin += NameOfCookie.length+1;
end = document.cookie.indexOf(";", begin);
if (end == -1) end = document.cookie.length;
return unescape(document.cookie.substring(begin, end)); }
}
return "";
}

