// -----------------------------------------------------------------------------

function loadTop() {
    
    if (self == top) {
        window.name = window.location.pathname;
        window.location.replace(
            (window.location.protocol != "file:") ? ".." : "../index.html");
    }
    
}

function loadIframe() {
    
    if (window.name != "") {
        frames.content.location.replace(window.name);
        window.name = "";
    }
    
}

// -----------------------------------------------------------------------------

function setFocus() {
    
    document.getElementById(frames.content.location.pathname.slice(
        frames.content.location.pathname.lastIndexOf("/") + 1,
        frames.content.location.pathname.lastIndexOf("."))).focus();
        
}

// -----------------------------------------------------------------------------

function onmouseoverFocus(inputName) {
    
    if (inputName.value == "") {
        inputName.focus();
    }
    
}

function onmouseoutBlur(inputName) {
    
    if (inputName.value == "") {
        inputName.blur();
    }
    
}

// -----------------------------------------------------------------------------


