﻿String.prototype.toProperCase = function() {
    return this.charAt(0).toUpperCase() + this.substring(1, this.length).toLowerCase();
}

function getQuerystringValue(queryKey) {
    try {
        hu = window.location.search.substring(1);
        gy = hu.split("&");
        for (i = 0; i < gy.length; i++) {
            ft = gy[i].split("=");
            if (ft[0] == queryKey) {
                return ft[1];
            }
        }
    }
    catch (err) {
    }
    return "";
}

function replaceTitle(findString, newString) {
    orgTitle = document.title;
    document.title = orgTitle.replace(findString, newString);
}

$(function() {
    $('#search2').defaultButton('#search-submit2');
});
