﻿function submitForm(e, textbox) {
    var intKey = (window.Event) ? e.which : e.keyCode;
    if (intKey == 13) {
        document.getElementById(textbox).click();
        event.returnValue = false;
    }
    return false;
}

function getElem(elem, prop) {
    var x = null;
    var ret = null;
    if (document.getElementById) {
        // this is the way the standards work
        x = document.getElementById(elem);
    }
    if (document.all) {
        // this is the way old msie versions work
        x = document.all[elem];
    }
    if (prop != null) {

        eval('ret=x.' + prop);
        return ret;
    }
    else {
        return x;
    }
}
