//<![CDATA[
function findObj(theObj, theDoc) {
    var p, i, foundObj;
    if (!theDoc) {
        theDoc = document;
    }
    if (document.getElementById) {
        foundObj = document.getElementById(theObj);
    }
    if (!foundObj && (p = theObj.indexOf("?")) > 0 && parent.frames.length) {
        theDoc = parent.frames[theObj.substring(p + 1)].document;
        theObj = theObj.substring(0, p);
    }
    for (i = 0; !foundObj && i < theDoc.forms.length; i++) {
        foundObj = theDoc.forms[i][theObj];
    }
    return foundObj;
}
function setHtml(obj, html, append) {
    var a = findObj(obj);
    if (a) {
        if (!append) {
            a.innerHTML = html;
        } else {
            a.innerHTML += html;
        }
    }
}
function showControl(obj) {
    var a = findObj(obj);
    if (a.style) {
        a.style.display = "block";
    }
}
function hideControl(obj) {
    var a = findObj(obj);
    if (a.style) {
        a.style.display = "none";
    }
}
//]]>

