
<!--
var req;
var ol_text;

function createXMLHttpRequest() {
    try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {}
    try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {}
    try { return new XMLHttpRequest(); } catch(e) {}
    alert("XMLHttpRequest not supported");
    return null;
}

function loadXMLDoc(url, type) {
    
    req = createXMLHttpRequest();
    
    // Call the processChange() function when the page has loaded
    if (req != null) {
        req.onreadystatechange = processChange;
        req.open("GET", url, true);
        req.send(null);
    }
}

function showOverLib(url, type, anchor, caption, width) {

    req = createXMLHttpRequest();

    if (req != null) {
        req.open("GET", url, true);
        req.onreadystatechange = function() {
            if (req.readyState == 4 && req.status == 200) {
                processOverLib(req.responseText, type, anchor, caption, width);
            }
        }
        req.send(null);
    }
}

function processOverLib(text, type, anchor, caption, width) {
    switch (type) {
        case 'STICKY' :
            overlib(text, STICKY, WIDTH, width, CAPTION, caption);
        break;
        case 'ANCHOR' :
            overlib(text, WIDTH, width, CAPTION, caption, ANCHOR, anchor, ANCHORALIGN, 'UL', ANCHORY, 20);
        break;
        case 'STIC_ANCH' :
            overlib(text, STICKY, WIDTH, width, CAPTION, caption, ANCHOR, anchor, ANCHORALIGN, 'UL', ANCHORY, 20);
        break;
    }
    
}

function processChange(objname) {
    // The page has loaded and the HTTP status code is 200 OK
    if (req.readyState == 4 && req.status == 200) {
        // Write the contents of this URL to the searchResult layer
        getObject("res_div").innerHTML = req.responseText;
    }
}

function getObject(name) {
    var ns4 = (document.layers) ? true : false;
    var w3c = (document.getElementById) ? true : false;
    var ie4 = (document.all) ? true : false;
    
    if (ns4) return eval('document.' + name);
    if (w3c) return document.getElementById(name);
    if (ie4) return eval('document.all.' + name);
    return false;
}

function findSetValue(fieldname, text, id) {
    getObject(fieldname + "_text").value = text;
    getObject(fieldname).value = id;
}

-->

