﻿function querySt(ji) {

    hu = window.location.search.substring(1);
    gy = hu.split("&");
    for (i = 0; i < gy.length; i++) {
        ft = gy[i].split("=");
        if (ft[0] == ji) {
            return ft[1];
        }
    }
}

//GLOBAL AJAX
$.ajaxSetup({
    contentType: "application/json; charset=utf-8",
    dataType: "json",
    type: "POST",
    error: function(xhr, ajaxOptions, thrownError) {

        //global error handling
    }
});

function stopRKey(evt) {
    var evt = (evt) ? evt : ((event) ? event : null);
    var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
    if ((evt.keyCode == 13) && (node.type == "text")) { return false; }
}

