var faux=null;
var pic=new Image();

function popUp(pic,w,h) 
{
 width=w+60;
 height=h+80;
 options= "width=" + width + ",height=" + height + ",toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1"

 faux=window.open('','newWin',options);
 var fd=faux.document;
 fd.open();
 fd.write('<html><head><title>Tischtennis-Abteilung des SpVgg Erdweg</title></head>');
 fd.write('<body bgcolor="#000000" onLoad="window.focus()">');
 fd.write('<div align="center"><table border="0" cellpadding="5" width="'+w+'">');
 fd.write('<tr><td align="center" valign="middle"><img src="' + pic + '" width="' + w + '" height="' + h + '"></td></tr>');
 fd.write('<tr><td align="center" valign="middle"><a href="javascript:window.close();" style="display: block; width: 100px; height: 20px; background: #ccc; font: normal 12px Verdana, Arial, Helvetica, sans-serif; color: Black; border: 1px solid White; text-decoration: none;">Schliessen</a></td></tr>');
 fd.write('</table></div></body></html>');
 fd.close();
 }
 
 function popUp_cal(von,bis,v_zeit,b_zeit,titel,text)
 {
    width=300;
    height=300;
    options="width=" + width + ",height=" + height + ",toolbar=0,location=0,direction=0,status=0,menubar=0,resizable=1"
    
    faux=window.open('','newWin',options);
    var fd=faux.document;
    fd.open();
    fd.write('<html><head><title>Aktuelle Termine - Patrick Hausotter</title><head>');
    fd.write('<body bgcolor="#F8F4DD" onLoad="window.focus()">');
    fd.write('<table cellpadding="2" cellspacing="0" border="0">');
    fd.write('<tr><td><h1 style="font: bold 16px/18px Verdana, Arial, Helvetica, sans-serif; color: #000; margin: 0; padding: 0;">' + titel + '</h1></td></tr>');
    fd.write('<tr><td><p style="font: italic 10px Verdana, Arial, Helvetica, sans-serif; color: #000; margin: 0; padding: 0;">Von: ' + von + ' - ' + v_zeit + ' Uhr</p></td></tr>');
    fd.write('<tr><td><p style="font: italic 10px Verdana, Arial, Helvetica, sans-serif; color: #000; margin: 0; padding: 0;">Bis: ' + bis + ' - ' + b_zeit + ' Uhr</p></td></tr>');
    fd.write('<tr><td><p style="font: normal 12px Verdana, Arial, Helvetica, sans-serif; color: #000;">' + text + '</p></td></tr>');
    fd.write('</body></html>');
    fd.close();
 }

