function showProcessing() {
    document.getElementById('col1_content').style.visibility = "hidden";
    document.getElementById('col1_content').style.display = "none";

    document.getElementById('Processing').style.visibility = "visible";
    document.getElementById('Processing').style.display = "inline";
    return true;
}


String.Format = function () {
    var s = arguments[0];

    for (var i = 0; i < arguments.length - 1; i++) {
        var reg = new RegExp("\\{" + i + "\\}", "gm");
        s = s.replace(reg, arguments[i + 1]);
    }

    return s;
};

String.prototype.Left = function (n) {
    var s = String(this);

    if (n > 0 && n <= s.length)
        s = s.substring(0, n);
    else
        return "";

    return s;
};

String.prototype.Right = function (n) {
    var s = String(this);
    var length = s.length;

    if (n > 0 && n <= length)
        s = s.substring(length, length - n);
    else
        return "";

    return s;
};


String.prototype.LTrim = function () {
    var re = /\s*((\S+\s*)*)/;

    return this.replace(re, "$1");
}

String.prototype.RTrim = function () {
    var re = /((\s*\S+)*)\s*/;

    return this.replace(re, "$1");
}

String.prototype.Trim = function () {
    return this.LTrim().RTrim();
};

