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(".");
   document.write(now.getFullYear());
   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://kaernten.orf.at/magazin/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;
}
