Subversion Repositories bacoAlunos

Rev

Rev 1306 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

function set(form, value)
{
    form.dispatch.value = value;
}

function getFileMonth(path)
{
    var fso, f, s;

    fso = new ActiveXObject("Scripting.FileSystemObject");
    f = fso.GetFile(path);

    return(new Date(f.DateLastModified).getMonth() + 1);
}
function getFileYear(path)
{
    var fso, f, s;

    fso = new ActiveXObject("Scripting.FileSystemObject");
    f = fso.GetFile(path);

    return(new Date(f.DateLastModified).getYear());
}
function getFileDay(path)
{
    var fso, f, s;

    fso = new ActiveXObject("Scripting.FileSystemObject");
    f = fso.GetFile(path);

    return(new Date(f.DateLastModified).getDate());
}

function horizontal()
{

    var navItems = document.getElementById("menu_dropdown").getElementsByTagName("li");

    for (var i = 0; i < navItems.length; i++)
    {
        if (navItems[i].className == "submenu")
        {
            if (navItems[i].getElementsByTagName('ul')[0] != null)
            {
                navItems[i].onmouseover = function()
                {
                    this.getElementsByTagName('ul')[0].style.display = "block";
                    this.style.backgroundColor="#cccccc";
                }
                navItems[i].onmouseout = function()
                {
                    this.getElementsByTagName('ul')[0].style.display = "none";
                   this.style.backgroundColor="";
                }
            }
        }
    }

}

function confirmAction(msg,form,actionOk)
{
    if(confirm(msg))
    {
        set(form,actionOk);
        form.submit();
    }
}

function confirmLink(msg)
{
    return confirm(msg);
}

function sett(form, obj, value)
{
    form.obj.value = value;
}