Returns an array of all inputs with specified name
The GiveElementsByName function is poorly indented.
And the variable declarations should not be only a single extremely long var line,
but each variable should be on its own line.
It's better like this:

function GiveElementsByName(name) {
    var finalOutput = [],
        times = document.getElementsByTagName('input').length,
        inOutput = 0,
        inAll = 0;
    while (times--) {
        if (document.getElementsByTagName('input')[inAll].name == name) {
            finalOutput[inOutput] = document.getElementsByTagName('input')[inAll]; 
            inOutput++;
        }
        inAll++;
    }
    return finalOutput;
}


It seems to me that there is an easier way to do this using document.querySelectorAll, which should be supported by modern browsers:

function GiveElementsByName(name) {
    return document.querySelectorAll('input[name=' + name + ']');
}