function submitForm(id) {
    var formTag = document.getElementById(id);
    if (formTag) {
        formTag.submit();
    }
}

function submitThisForm(thisTag) {
    var prnt = document.getElementById(thisTag);
    if (prnt) {
        prnt = prnt.parentNode;
        while (true) {
            if (prnt.tagName.toUpperCase() == "BODY") {
                return;
            }
            if (prnt.tagName.toUpperCase() == "FORM") {
                prnt.submit();
                return;
            }
            prnt = prnt.parentNode;
        }
    }
}

function moveinpage(id) {
    location.hash=id;
}
