﻿function submitEnter(myfield, e) {
    var keycode;
    if (window.event) keycode = window.event.keyCode;
    else if (e) keycode = e.which;
    else return true;

    if (keycode == 13) {
        myfield.form.submit();
        return false;
    }
    else
        return true;
}


//Get Uery String Value
function getQueryStringValue(key) {    
    var fullUrl = window.location.search.substring(1);
    alert(fullUrl);
    var valuePairs = fullUrl.split("&");
    for (x = 0; x < valuePairs.length; x++) {
        var valuePair = valuePairs[x].split("=");
        if (valuePair.length == 2) {
            if (valuePair[0] == key) {
                return valuePair[1];
            }
        }
    }

    return "";
}


function refreshPage() {
    window.location.reload();
}

function navigateTo(url) {
    window.location = url;
}
