﻿
var goToNonMobile = readCookie("nonMobile");
if (goToNonMobile) { goToNonMobile = goToNonMobile.toLowerCase(); }

if ((navigator.userAgent.match(/Opera Mobi/i)) || (navigator.userAgent.match(/PalmSource/i)) || (navigator.userAgent.match(/Windows CE/i)))
{ location.replace("/management/mobile.asp"); }

if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/Blackberry/i))
    || (navigator.userAgent.match(/Android/i)) || (navigator.userAgent.match(/PalmSource/i))) {

    if (goToNonMobile != "true") {
        location.replace("/mobile/");
    } 
    }

