var link =  window.location.pathname;


function getURL(){

var fenster = window.open('','LinkSenden','width=500, height=400');
fenster.document.open();
	//fenster.document.write(link);

 fenster.document.write('<html><head><link href="favicon.ico" rel="shortcut icon"><title>URL senden</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><link href="css/stile.css" rel="stylesheet" type="text/css">');
  fenster.document.write('</head><body onLoad="focus()" style="background-color: #FFF;"><h4><img src="hausstauballergie-pics/oeko-planet-logo-240-41.gif" width="240" height="41"></h4><h4>Vielen Dank, dass Sie diese Seite weiterempfehlen!</h4><p class="infotext">Wir versichern, die eingegebenen Daten nicht an Dritte weiterzugeben.</p><br>');  
  fenster.document.write('<form name="form1" method="post" action="danke.php">');
  fenster.document.write(' <table width="100%" border="0" cellspacing="0" cellpadding="0">    <tr>      <td><strong>Empf&auml;nger E-Mail:</strong></td>      <td>&nbsp;&nbsp;</td>      <td><input name="an" type="text" id="an" size="30"></td>    </tr>    <tr>      <td>&nbsp;</td>      <td>&nbsp;</td>   <td>&nbsp;</td></tr>');
  fenster.document.write('<tr>      <td><strong>Absender Name:</strong></td>      <td>&nbsp;</td>      <td><input name="vonName" type="text" id="von" size="30"></td>    </tr>	<tr>      <td>&nbsp;</td>      <td>&nbsp;</td>      <td>&nbsp;</td>    </tr>');
   
   fenster.document.write('<tr valign="top">       <td><strong>Absender E-Mail:</strong></td>      <td>&nbsp;</td>      <td>         <input name="von" type="text" id="von" size="30"></td>    </tr>    <tr>      <td>&nbsp;</td>      <td>&nbsp;</td>      <td>&nbsp;</td>    </tr>');
	
  fenster.document.write('<tr valign="top">       <td><strong>Kommentar / Nachricht:</strong></td>      <td>&nbsp;</td>      <td>         <textarea name="message" cols="30" id="message"></textarea></td>    </tr>    <tr>      <td>&nbsp;</td>      <td>&nbsp;</td>      <td>&nbsp;</td>    </tr>');
  fenster.document.write('<tr>      <td><input name="url" type="hidden" value="');
  fenster.document.write(link);
  fenster.document.write('"></td>      <td>&nbsp;</td>      <td><input type="submit" name="Submit" value="Abschicken"></td></tr>');
  
			  fenster.document.write('</table></form></body></html>');
			 /*    */
 fenster.document.close();

}
