SGS: Javascript popup problem

Beitrag lesen

Okay, hier mal ein Script, welches ich für einen Weihnachtskalender geschrieben habe:
---
function showcalendarwindow(choosedday){
  if ((month == 11) && (choosedday <= day )){
    text = "<p>" + unescape(boxtext[(choosedday-1)]) + "</p>\n";
  }
  else {
    text = "<p>Heute ist der: "+day+"."+(month+1)+". &uuml;be Dich in Geduld.</p>";
  }
    xmaswin = window.open("","XMasScript","height=450, width=650,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,left=200,top=50");
    xmaswin.document.open();
    xmaswin.document.write("<html>\n<head>\n<title>"+choosedday+". Dezember || X-MasScript :: derletztekick.de</title>\n<meta http-equiv='imagetoolbar' CONTENT='no'>\n <meta http-equiv='content-type' CONTENT='text/html; CHARSET=ISO-8859-1'> \n</head>\n<body>\n" + text + "\n</body>\n</html>");
    xmaswin.focus();
    xmaswin.document.close();

return false;
}
---

und der Aufruf im Map:
<area onClick="return showcalendarwindow(1);" shape="poly" href="#" coords="238, 99, 239, 116, 239, 141" title="1. Dezember" alt="1. Dezember">
---

vgl mal mit Deinem Script bzw. PopUp Einegschaften