// JavaScript Document 

function $() {
    var elements = new Array();
    for (var i = 0; i < arguments.length; i++) {
        var element = arguments[i];
        if (typeof element == 'string') element = document.getElementById(element);
        if (arguments.length == 1) return element;
        elements.push(element);
    }
    return elements;
}
var xmlhttp = false;

function getHTTPReq(url, destinationid, destinationtype) {
    if (window.XMLHttpRequest) {
        xmlhttp = new XMLHttpRequest();
    }
    else if (window.ActiveXObject) {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    if (xmlhttp) {
        xmlhttp.open("GET", url, true);
        xmlhttp.onreadystatechange = function () {
            if (xmlhttp.readyState == 4) {
                if (destinationtype == "value") {
                    if (xmlhttp.status == 200) {
                        $(destinationid).value = xmlhttp.responseText;
                    }
                    else {
                        $(destinationid).value = 'Fail';
                    }
                }
                else {
                    if (xmlhttp.status == 200) {
                        $(destinationid).innerHTML = xmlhttp.responseText;
                    }
                    else {
                        $(destinationid).innerHTML = 'Fail';
                    }
                }
            }
        }
        if (window.XMLHttpRequest) {
            xmlhttp.send(null);
        }
        else if (window.ActiveXObject) {
            xmlhttp.send();
        }
    }
}

function hL(id) {
    if ((navigator.userAgent.indexOf("MSIE")) && (parseInt(navigator.appVersion) <= 6)) {
        var el = $(id);
        el.style.border = '1px solid #aacbee';
        el.style.backgroundColor = '#ebf3fb';
    }
}

function dL(id) {
    if ((navigator.userAgent.indexOf("MSIE")) && (parseInt(navigator.appVersion) <= 6)) {
        var el = $(id);
        el.style.border = '1px solid #ffffff';
        el.style.backgroundColor = '#ffffff';
    }
}

function doNothing() {
    return false;
}

function cacheHandling() {
    if ('Navigator' == navigator.appName) document.forms[0].reset();
}
window.onload = cacheHandling;
window.onload = doNothing;
