function printDate() { var now = new Date(); var daynames = new Array("SO", "MO", "DI", "MI", "DO", "FR", "SA"); var day = now.getDay(); document.write(daynames[day]); document.write(" | "); var date = now.getDate(); if (date < 10) document.write("0"); document.write(date); document.write("."); var month = now.getMonth()+1; if (month < 10) document.write("0"); document.write(month); document.write("."); return; } function printTime() { var now = new Date(); var hour = now.getHours(); if (hour < 10) document.write("0"); document.write(hour); document.write(":"); var minute = now.getMinutes(); if (minute < 10) document.write("0"); document.write(minute); return; } function globalPopup(url, wd, ht, options) { if (!url) return; if (wd == null) wd = "400"; if (ht == null) ht = "300"; if (!options) var options = "resizable=yes,status=yes,scrollbars=yes"; options += ",width=" + wd + ",height=" + ht; self.open(url, "popup", options); return; } function popup(str, wd, ht, options) { if (str.indexOf("http") == 0) var url = str; else var url = "http://oesterreich.orf.at/popup?skin=" + str; globalPopup(url, wd, ht, options); return; } function vc(name) { if (!name) return; var url = "http://my.orf.at/" + escape(name); globalPopup(url, 440, 490); return; } function confirmAction(msg) { return confirm(msg) == true; return; } function hilite(obj, color) { return; // FIXME: disabled due to annoyance if (color) obj.style.backgroundColor = color; else obj.style.backgroundColor = ""; return; }