function ShowInWindow(src,w,h)
{ fimg=window.open("about:blank","","width="+w+",height="+h+",resizable=NO,left="+Math.round(screen.width/2-w/2)+",top="+Math.round(screen.height/2-h/2))
   fimg.document.open()
   fimg.document.writeln("<html>")
   fimg.document.writeln("<head>")
   fimg.document.writeln("<meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-2\">")
   fimg.document.writeln("<title>WAGONY.NET</title>")
   fimg.document.writeln("</head>")
   fimg.document.writeln("<body>")
   fimg.document.writeln("<img src=\""+src+"\" style=\"position: absolute; left: 0; top: 0\">")
   fimg.document.writeln("</body>")
   fimg.document.writeln("</html>")
   fimg.document.close() }

// Returns today's date in a string with full day and month names (Polish version)
// by Roger C. Scudder Jr. on 10-2-98
// corrected for Netscape by Grzegorz Golebiewski, Polish version by Noiki
DayName = new Array(7)
DayName[0] = "niedziela"
DayName[1] = "poniedziałek"
DayName[2] = "wtorek"
DayName[3] = "środa"
DayName[4] = "czwartek"
DayName[5] = "piątek"
DayName[6] = "sobota"

MonthName = new Array(12)
MonthName[0] = "stycznia"
MonthName[1] = "lutego"
MonthName[2] = "marca"
MonthName[3] = "kwietnia"
MonthName[4] = "maja"
MonthName[5] = "czerwca"
MonthName[6] = "lipca"
MonthName[7] = "sierpnia"
MonthName[8] = "września"
MonthName[9] = "października"
MonthName[10] = "listopada"
MonthName[11] = "grudnia"

function getDateStr(){
    var Today = new Date()
    var WeekDay = Today.getDay()
    var Month = Today.getMonth()
    var Day = Today.getDate()
    var Year = Today.getYear()

    if(Year >= 99)
        Year += 1900

    return DayName[WeekDay] + "," + " " + Day + " " + MonthName[Month] + " " + Year
}
