// JScript File

var detect = navigator.userAgent.toLowerCase();
var OS,browser,version,total,thestring;

if (checkIt('konqueror'))
{
	browser = "Konqueror";
	OS = "Linux";
}
else if (checkIt('safari')) browser = "Safari"
else if (checkIt('omniweb')) browser = "OmniWeb"
else if (checkIt('opera')) browser = "Opera"
else if (checkIt('webtv')) browser = "WebTV";
else if (checkIt('icab')) browser = "iCab"
else if (checkIt('msie')) browser = "Internet Explorer"
else if (!checkIt('compatible'))
{
	browser = "Netscape Navigator"
	version = detect.charAt(8);
}
else browser = "An unknown browser";

if (!version) version = detect.charAt(place + thestring.length);

if (!OS)
{
	if (checkIt('linux')) OS = "Linux";
	else if (checkIt('x11')) OS = "Unix";
	else if (checkIt('mac')) OS = "Mac"
	else if (checkIt('win')) OS = "Windows"
	else OS = "an unknown operating system";
}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}

function openIntrusion ( )
{
    var url = "../ModalFrame.aspx?Page=Properties/IntrusionPrevention.aspx";

    if ( browser == 'Internet Explorer' ){
        window.showModalDialog(url,",", " dialogHeight:600px; dialogWidth:800px; center:Yes; help:No; resizable:No; status:No; scroll:Yes;");
    }else{
        var oWidth = 750;
        var oHeight = 560;
        window.open(url,'winName','width=' + oWidth + ',height=' + oHeight + ',left=' + ((screen.width - oWidth) / 2) + ',top=' + ((screen.height - oHeight) / 2 - 40) + ',menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes');
    }
}

function openSecurityAgent ( )
{
    var url = "../ModalFrame.aspx?Page=Properties/SecurityAgent.aspx";

    if ( browser == 'Internet Explorer' ){
        window.showModalDialog(url,",", " dialogHeight:600px; dialogWidth:800px; center:Yes; help:No; resizable:No; status:No; scroll:Yes;");
    }else{
        var oWidth = 750;
        var oHeight = 560;
        window.open(url,'winName','width=' + oWidth + ',height=' + oHeight + ',left=' + ((screen.width - oWidth) / 2) + ',top=' + ((screen.height - oHeight) / 2 - 40) + ',menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes');
    }
}

function openSpamMailBlocker ( )
{
    var url = "../ModalFrame.aspx?Page=Properties/SpamMailBlocker.aspx";

    if ( browser == 'Internet Explorer' ){
        window.showModalDialog(url,",", " dialogHeight:650px; dialogWidth:800px; center:Yes; help:No; resizable:No; status:No; scroll:Yes;");
    }else{
        var oWidth = 750;
        var oHeight = 620;
        window.open(url,'winName','width=' + oWidth + ',height=' + oHeight + ',left=' + ((screen.width - oWidth) / 2) + ',top=' + ((screen.height - oHeight) / 2 - 40) + ',menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes');
    }
}

function openSpamPlusProperties ( )
{
    var url = "../ModalFrame.aspx?Page=Properties/SpamPlusProperties.aspx";

    if ( browser == 'Internet Explorer' ){
        window.showModalDialog(url,",", " dialogHeight:850px; dialogWidth:850px; center:Yes; help:No; resizable:No; status:No; scroll:Yes;");
    }else{
        var oWidth = 850;
        var oHeight = 850;
        window.open(url,'winName','width=' + oWidth + ',height=' + oHeight + ',left=' + ((screen.width - oWidth) / 2) + ',top=' + ((screen.height - oHeight) / 2 - 40) + ',menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes');
    }
}

function openContentFilter ( )
{
    var url = "../ModalFrame.aspx?Page=Properties/ContentFilter.aspx";

    if ( browser == 'Internet Explorer' ){
        window.showModalDialog(url,",", " dialogHeight:600px; dialogWidth:800px; center:Yes; help:No; resizable:No; status:No; scroll:Yes;");
    }else{
        var oWidth = 750;
        var oHeight = 580;
        window.open(url,'winName','width=' + oWidth + ',height=' + oHeight + ',left=' + ((screen.width - oWidth) / 2) + ',top=' + ((screen.height - oHeight) / 2 - 40) + ',menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes');
    }
}

function openTrafficClassification ( )
{
    var url = "../ModalFrame.aspx?Page=Properties/TrafficClassification.aspx";

    if ( browser == 'Internet Explorer' ){
        window.showModalDialog(url,",", " dialogHeight:600px; dialogWidth:800px; center:Yes; help:No; resizable:No; status:No; scroll:Yes;");
    }else{
        var oWidth = 750;
        var oHeight = 560;
        window.open(url,'winName','width=' + oWidth + ',height=' + oHeight + ',left=' + ((screen.width - oWidth) / 2) + ',top=' + ((screen.height - oHeight) / 2 - 40) + ',menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes');
    }
}

function openTrafficLimiter ( )
{
    var url = "../ModalFrame.aspx?Page=Properties/TrafficLimiter.aspx";

    if ( browser == 'Internet Explorer' ){
        window.showModalDialog(url,",", " dialogHeight:600px; dialogWidth:800px; center:Yes; help:No; resizable:No; status:No; scroll:Yes;");
    }else{
        var oWidth = 750;
        var oHeight = 560;
        window.open(url,'winName','width=' + oWidth + ',height=' + oHeight + ',left=' + ((screen.width - oWidth) / 2) + ',top=' + ((screen.height - oHeight) / 2 - 40) + ',menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes');
    }
}

function openTrafficPriority ( )
{
    var url = "../ModalFrame.aspx?Page=Properties/TrafficPriority.aspx";

    if ( browser == 'Internet Explorer' ){
        window.showModalDialog(url,",", " dialogHeight:600px; dialogWidth:800px; center:Yes; help:No; resizable:No; status:No; scroll:Yes;");
    }else{
        var oWidth = 750;
        var oHeight = 560;
        window.open(url,'winName','width=' + oWidth + ',height=' + oHeight + ',left=' + ((screen.width - oWidth) / 2) + ',top=' + ((screen.height - oHeight) / 2 - 40) + ',menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes');
    }
}

function openPowerManager( )
{
    var url = "../ModalFrame.aspx?Page=Properties/PowerManager.aspx";

    if ( browser == 'Internet Explorer' ){
        window.showModalDialog(url,",", " dialogHeight:600px; dialogWidth:800px; center:Yes; help:No; resizable:No; status:No; scroll:Yes;");
    }else{
        var oWidth = 750;
        var oHeight = 560;
        window.open(url,'winName','width=' + oWidth + ',height=' + oHeight + ',left=' + ((screen.width - oWidth) / 2) + ',top=' + ((screen.height - oHeight) / 2 - 40) + ',menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes');
    }
}

function openConfigurationWizard ( )
{
    var url = "../ModalFrame.aspx?Page=Configuration/ConfigurationWizard.aspx";

    if ( browser == 'Internet Explorer' ){
        window.showModalDialog(url,",", " dialogHeight:600px; dialogWidth:800px; center:Yes; help:No; resizable:No; status:No; scroll:Yes;");
    }else{
        var oWidth = 800;
        var oHeight = 600;
        window.open(url,'winName','width=' + oWidth + ',height=' + oHeight + ',left=' + ((screen.width - oWidth) / 2) + ',top=' + ((screen.height - oHeight) / 2 - 40) + ',menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes');
    }
}

function openTraceLog ( )
{
    var url = "../ModalFrame.aspx?Page=Tools/TraceLog.aspx";

    if ( browser == 'Internet Explorer' ){
        window.showModalDialog(url,",", " dialogHeight:600px; dialogWidth:800px; center:Yes; help:No; resizable:No; status:No; scroll:Yes;");
    }else{
        var oWidth = 750;
        var oHeight = 560;
        window.open(url,'winName','width=' + oWidth + ',height=' + oHeight + ',left=' + ((screen.width - oWidth) / 2) + ',top=' + ((screen.height - oHeight) / 2 - 40) + ',menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes');
    }
}

function openScheduledTask ( Link )
{
    var url = "../ModalFrame.aspx?Page=Tools/" + Link;

    if ( browser == 'Internet Explorer' ){
        window.showModalDialog(url,",", " dialogHeight:600px; dialogWidth:800px; center:Yes; help:No; resizable:No; status:No; scroll:Yes;");
    }else{
        var oWidth = 750;
        var oHeight = 560;
        window.open(url,'winName','width=' + oWidth + ',height=' + oHeight + ',left=' + ((screen.width - oWidth) / 2) + ',top=' + ((screen.height - oHeight) / 2 - 40) + ',menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes');
    }
}

function openAutomaticRestart ( )
{
    var url = "../ModalFrame.aspx?Page=Tools/AutomaticRestart.aspx";

    if ( browser == 'Internet Explorer' ){
        window.showModalDialog(url,",", " dialogHeight:600px; dialogWidth:800px; center:Yes; help:No; resizable:No; status:No; scroll:Yes;");
    }else{
        var oWidth = 750;
        var oHeight = 560;
        window.open(url,'winName','width=' + oWidth + ',height=' + oHeight + ',left=' + ((screen.width - oWidth) / 2) + ',top=' + ((screen.height - oHeight) / 2 - 40) + ',menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes');
    }
}

function openNetworkScanning ( )
{
    var url = "../ModalFrame.aspx?Page=Properties/NetworkScanning.aspx";

    if ( browser == 'Internet Explorer' ){
        window.showModalDialog(url,",", " dialogHeight:600px; dialogWidth:800px; center:Yes; help:No; resizable:No; status:No; scroll:Yes;");
    }else{
        var oWidth = 750;
        var oHeight = 560;
        window.open(url,'winName','width=' + oWidth + ',height=' + oHeight + ',left=' + ((screen.width - oWidth) / 2) + ',top=' + ((screen.height - oHeight) / 2 - 40) + ',menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes');
    }
}

function openCFProtocolServer ( )
{
    var url = "../ModalFrame.aspx?Page=Properties/isCFProtocolServer.aspx";

    if ( browser == 'Internet Explorer' ){
        window.showModalDialog(url,",", " dialogHeight:630px; dialogWidth:800px; center:Yes; help:No; resizable:No; status:No; scroll:Yes;");
    }else{
        var oWidth = 750;
        var oHeight = 620;
        window.open(url,'winName','width=' + oWidth + ',height=' + oHeight + ',left=' + ((screen.width - oWidth) / 2) + ',top=' + ((screen.height - oHeight) / 2 - 40) + ',menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes');
    }
}

function openRealtimeBlackhole ( )
{
    var url = "../ModalFrame.aspx?Page=Properties/isRealtimeBlackholeServer.aspx";

    if ( browser == 'Internet Explorer' ){
        window.showModalDialog(url,",", " dialogHeight:600px; dialogWidth:800px; center:Yes; help:No; resizable:No; status:No; scroll:Yes;");
    }else{
        var oWidth = 750;
        var oHeight = 560;
        window.open(url,'winName','width=' + oWidth + ',height=' + oHeight + ',left=' + ((screen.width - oWidth) / 2) + ',top=' + ((screen.height - oHeight) / 2 - 40) + ',menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes');
    }
}

function openSMTPRelay ( )
{
    var url = "../ModalFrame.aspx?Page=Properties/isSMTPRelayServer.aspx";

    if ( browser == 'Internet Explorer' ){
        window.showModalDialog(url,",", " dialogHeight:600px; dialogWidth:800px; center:Yes; help:No; resizable:No; status:No; scroll:Yes;");
    }else{
        var oWidth = 750;
        var oHeight = 560;
        window.open(url,'winName','width=' + oWidth + ',height=' + oHeight + ',left=' + ((screen.width - oWidth) / 2) + ',top=' + ((screen.height - oHeight) / 2 - 40) + ',menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes');
    }
}

function openContentFilterExceptions ( )
{
    var url = "../ModalFrame.aspx?Page=Properties/ContentFilterExceptions.aspx";

    if ( browser == 'Internet Explorer' ){
        window.showModalDialog(url,",", " dialogHeight:600px; dialogWidth:800px; center:Yes; help:No; resizable:No; status:No; scroll:Yes;");
    }else{
        var oWidth = 750;
        var oHeight = 560;
        window.open(url,'winName','width=' + oWidth + ',height=' + oHeight + ',left=' + ((screen.width - oWidth) / 2) + ',top=' + ((screen.height - oHeight) / 2 - 40) + ',menubar=no,toolbar=no,status=no,scrollbars=yes,resizable=yes');
    }
}