/*\
 *
 * show_remote
 *
\*/
function show_remote() {
    var status = getCookie( "status" );
    if( is_valid( "status", status ) ) {
        if( !status.match( /^logout|login.via.ip$/ ) ) {
            /*getStyleClass('remote_note').style.display = 'block';*/
            changecss("remote_note","display","inline");
        }
    }
}

function changecss(theClass,element,value) {
    if (document.all) {
        for (var S = 0; S < document.styleSheets.length; S++){
            for (var R = 0; R < document.styleSheets[S].rules.length; R++) {
                if (document.styleSheets[S].rules[R].selectorText == "."+theClass) {
                    document.styleSheets[S].rules[R].style[element] = value;
                }
            }
        }    
    }
    else if (document.getElementById) {
        for (var S = 0; S < document.styleSheets.length; S++){
            for (var R = 0; R < document.styleSheets[S].cssRules.length; R++) {
                if (document.styleSheets[S].cssRules[R].selectorText == "."+theClass) {
                    document.styleSheets[S].cssRules[R].style[element] = value;
                }
            }
        }    
    }
}
