function moddate()
{
    var agent = navigator.userAgent.toLowerCase();
    var pos1, pos2;

    modDate = document.lastModified;
    if (agent.indexOf("msie")!=-1)
    {
        document.write(modDate.substring(0,10) + '.');
    }
    else
    {
        pos1 = modDate.indexOf(",")+1;
        pos2 = modDate.lastIndexOf(",")+6;
        document.write(modDate.substring(pos1,pos2) + '.');
    }
}
