
var IE4 = document.all;
var NN6 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 5);

// parse URL for value(s) of specified argument
function argItems (theArgName) {
    sArgs = location.search.slice(1).split('&');
    r = '';
    for (var i = 0; i < sArgs.length; i++) {
        if (sArgs[i].slice(0,sArgs[i].indexOf('=')) == theArgName) {
            r = sArgs[i].slice(sArgs[i].indexOf('=')+1);
            break;
        }
    }
    return (r.length > 0 ? unescape(r).split(',') : '')
}

function getObject(obj) {
    return (IE4?eval("document.all." + obj):(NN6?document.getElementById(obj):false));
}

function highlightText(obj) {
    var theObj = getObject(obj);
    if (theObj)
        //theObj.style.backgroundColor = "#FF0000";
        theObj.style.backgroundColor = "#FFFF80";
}

function unHighlightText(obj) {
    var theObj = getObject(obj);
    if (theObj)
        theObj.style.backgroundColor = "";
}
