﻿//---- General utility functions ----//

Type.registerNamespace('OSSA.SafeyCalculator.WebApp.Common');

OSSA.SafeyCalculator.WebApp.Common.openDocViewer = function OSSA$SafeyCalculator$WebApp$Common$openDocViewer() {
    var url = (arguments.length >= 1 ? arguments[0] : "");
    var name = (arguments.length >= 2 ? arguments[1] : "DocViewer");
    var features = (arguments.length >= 3 ? arguments[2] : "resizable=yes,status=0,width=550,height=450");
    var docViewerWin = window.open(url, name, features);
    if (typeof(docViewerWin) == "object")
        docViewerWin.focus();
}

// Since this script is not loaded by System.Web.Handlers.ScriptResourceHandler
// invoke Sys.Application.notifyScriptLoaded to notify ScriptManager 
// that this is the end of the script.
if (typeof (Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();
