function datum() 
{
    var now=new Date(document.lastModified);
    lm_year=now.getYear();
    lm_year=((lm_year<1000)?((lm_year<70)?2000:1900):0)+lm_year;
    lm_month=now.getMonth()+1;
    lm_month=((lm_month<10)?'0':'')+lm_month;
    lm_day=now.getDate();
    lm_day=((lm_day<10)?'0':'')+lm_day;
    lm_hour=now.getHours();
    lm_hour=((lm_hour<10)?'0':'')+lm_hour;
    lm_minute=now.getMinutes();
    lm_minute=((lm_minute<10)?'0':'')+lm_minute;
    lm_second=now.getSeconds();
    lm_second=((lm_second<10)?'0':'')+lm_second;
    return (lm_year+'-'+lm_month+'-'+lm_day+', '+lm_hour+':'+lm_minute+':'+lm_second);	
}

function changePage() {
    if (self.parent.frames.length != 0)
        self.parent.location=document.location;
}

function bustFrame() {
    setTimeout ("changePage()", 1000);
}

function popup(url) {
    popupWin = window.open(url,'screencaps','width=720,height=580,scrollbars=yes,toolbars=no,menubar=no,resizable=yes')
}

function popup2(url) {
    popupWin2 = window.open(url,'screencaps','width=585,height=300,scrollbars=yes,toolbars=no,menubar=no,resizable=yes')
}

function popup3(url) {
    popupWin3 = window.open(url,'comics','width=750,height=547,scrollbars=yes,toolbars=no,menubar=no,resizable=yes')
}

function popup4(url) {
    popupWin4 = window.open(url,'popup','width=600,height=500,scrollbars=yes,toolbars=no,menubar=no,resizable=yes')
}

function advent(day) {
    popupWin4 = window.open('advent/'+day+'.html','advent','width=300,height=300,scrollbars=no,toolbars=no,menubar=no,resizable=yes')
}

function advent_24(day) {
    popupWin4 = window.open('advent/'+day+'.html','advent','width=450,scrollbars=yes,toolbars=no,menubar=no,resizable=no')
}
