// JavaScript Document
    function launch(path) {
        window.location=path;
    }

    function openPathInNewWindow(path) {
        window.open(path, "newWindow", config="height=600,width=800,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,location=yes,directories=yes,status=yes");
    }

    function openPathInPopUp(path) {
        window.open(path, "newWindow", config="height=600,width=800,toolbar=mo,menubar=no,scrollbars=yes,resizable=no,location=no,directories=no,status=no");
    }

    function openUrlInNewWindow(url) {
        window.open(url, "newWindow", config="height=600,width=800,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,location=yes,directories=yes,status=yes");
    }

    function closeWindow() {
        self.close();
    }

    function getAjaxContent(url) {

        var xmlHttpReq;
        if(window.XMLHttpRequest) {
            xmlHttpReq = new XMLHttpRequest();
        } else {
            xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
        }

        xmlHttpReq.open("GET", url, false);
        xmlHttpReq.send();
        var jsonResp = xmlHttpReq.responseText;

        if(jsonResp == null || jsonResp == "") {
            jsonResp = "[{}]";
        }

        var content = !(/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(jsonResp.replace(/"(\\.|[^"\\])*"/g, ''))) && eval('(' + jsonResp + ')');
        return content;
        
    }

    function trim(str) {
            str = str.replace(/^\s+/, '');
            for (var i = str.length - 1; i >= 0; i--) {
                    if (/\S/.test(str.charAt(i))) {
                            str = str.substring(0, i + 1);
                            break;
                    }
            }
            return str;
    }

