var newWindow = null;
function openNewWindow(file,size)
{
	properties = "toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,menubar=no";

  newWindow = window.open('empty.html', 'NewWindow', size + ", " + properties);
  newWindow.document.open();
  newWindow.document.write('<HTML><HEAD><TITLE>Bild</TITLE></HEAD>');
  newWindow.document.write('<BODY LEFTMARGIN="18" TOPMARGIN="18"><A HREF="JavaScript:self.close()"><IMG SRC="http://www.algarve-ferias.de/'+file +'" HSPACE="0" VSPACE="0" BORDER="0"></A>');
  newWindow.document.write('<br><center><font face="Arial, Helvetica, sans-serif" size="2"><b>Zum Schließen das Bild klicken!</b></font>');
  newWindow.document.write('</BODY></HTML>');
  newWindow.document.close();
  newWindow.focus();
}

var newKWindow = null;
function openKalender()
{
	properties = "toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,menubar=no";

  newKWindow = window.open('empty.html', 'NewWindow', "width=800, height=600, " + properties);
  newKWindow.document.open();
  newKWindow.document.write('<HTML><HEAD><TITLE>Kalender</TITLE></HEAD>');
  newKWindow.document.write('<BODY LEFTMARGIN="18" TOPMARGIN="18">');

  newKWindow.document.write('<APPLET CODE="calendar.class" NAME="calendar" ALT="Java not supported" WIDTH="250" HEIGHT="250">');
  newKWindow.document.write('<PARAM NAME=DAYCOLOR VALUE="#B8162D">');
  newKWindow.document.write('<PARAM NAME=DAYFONTCOLOR VALUE="#FFFFFF">');
  newKWindow.document.write('<PARAM NAME=FONTBUTTONSIZE VALUE="11">');
  newKWindow.document.write('<PARAM NAME=MONTHNAMES VALUE="Januar,Februar,März,April,Mai,Juni,Juli,August,September,Oktober,November,Dezember">');
  newKWindow.document.write('<PARAM NAME=DAYNAMES VALUE="Sonntag,Montag,Dienstag,Mittwoch,Donnerstag,Freitag,Samstag">');
  newKWindow.document.write('<PARAM NAME=MODELDATE VALUE="\D, den \N. \M \Y"> ');
  newKWindow.document.write('<PARAM NAME=MAXDATE VALUE="20011119">');
  newKWindow.document.write('<PARAM NAME=MINDATE VALUE="20010819">');
  newKWindow.document.write('<PARAM NAME=UNAUTHORIZEDDATE VALUE="">');
  newKWindow.document.write('</APPLET>');
  
  newKWindow.document.write('<BR><A HREF="JavaScript:self.close()"><center><font face="Arial, Helvetica, sans-serif" size="2"><b>Schließen</b></font></A>');

  newKWindow.document.write('</BODY></HTML>');
  newKWindow.document.close();
  newKWindow.focus();
}

