var yeni=null

function YeniSayfa(adres_adi){

	if (!yeni || yeni.closed) {

		yeni=window.open('','','width=590, height=340, left=160, top=107, toolbar=no, location=no, scrollbar=no')
		yeni.document.open()
                yeni.document.write('<html>')
                yeni.document.write('<head>')
                yeni.document.write('<meta http-equiv="Content-Language" content="tr">')
                yeni.document.write('<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-9">')
                yeni.document.write('<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">')
		yeni.document.write('<title>Arkadaşınıza Gönderin</title>')
                yeni.document.write('</head>')
		yeni.document.write('<body topmargin=20 leftmargin=0>')
                yeni.document.write('<form method="POST" action="gonder.asp">')
                yeni.document.write('<table border=0 cellpadding=0 cellspacing=0 width=560 height=190>')
                yeni.document.write('<tr>')
                yeni.document.write('<td width=560 align=center colspan=3><h2>DUDAK PAYI TAVSİYE FORMU</h2></td>')
                yeni.document.write('</tr>')
                yeni.document.write('<tr>')
                yeni.document.write('<td width=560 align=center colspan=3><h4>Seçmiş olduğunuz sayfayı arkadaşınıza göndermek için<br>lütfen aşağıdaki formu eksiksiz doldurun....</h4>')
                yeni.document.write('</tr>')
                yeni.document.write('<tr>')
                yeni.document.write('<td width=250 align=right>Adınız Soyadınız : </td>')
                yeni.document.write('<td width=5></td>')
                yeni.document.write('<td width=305><input type=text name=adiniz_soyadiniz size=39></td>')
                yeni.document.write('</tr>')
                yeni.document.write('<tr>')
                yeni.document.write('<td width=250 align=right>E-Posta Adresiniz : </td>')
                yeni.document.write('<td width=5></td>')
                yeni.document.write('<td width=305><input type=text name=sizin_eposta size=39></td>')
                yeni.document.write('</tr>')
                yeni.document.write('<tr>')
                yeni.document.write('<td width=250 align=right>Arkadaşınızın E-Posta Adresi :</td>')
                yeni.document.write('<td width=5></td>')
                yeni.document.write('<td width=305><input type=text name=arkadas_eposta size=39></td>')
                yeni.document.write('</tr>')
                yeni.document.write('<tr>')
                yeni.document.write('<td width=250 align=right valign=top height=15>Mesajınız : </td>')
                yeni.document.write('<td width=5 height=15></td>')
                yeni.document.write('<td width=305 height=35><textarea rows="5" name="mesajiniz" cols="31"></textarea></td>')
                yeni.document.write('</tr>')
                yeni.document.write('<tr>')
                yeni.document.write('<td width=250 align=right></td>')
                yeni.document.write('<td width=5></td>')
                yeni.document.write('<td width=305><input type=hidden name=url_adresi size=50 value='+adres_adi+'></td>')
                yeni.document.write('</tr>')
                yeni.document.write('<tr>')
                yeni.document.write('<td width=250 align=right height=15></td>')
                yeni.document.write('<td width=5 height=15></td>')
                yeni.document.write('<td width=305 height=15></td>')
                yeni.document.write('</tr>')
                yeni.document.write('<tr>')
                yeni.document.write('<td width=250 align=right>&nbsp;</td>')
                yeni.document.write('<td width=5></td>')
                yeni.document.write('<td width=305><input type=submit value=Gönder name=B1>')
                yeni.document.write('<input type=reset value=" Sıfırla " name=B2></td>')
                yeni.document.write('</tr>')
                yeni.document.write('</table>')
                yeni.document.write('</form>')
		yeni.document.write('</body>')
		yeni.document.write('</html>')
		yeni.document.close()
		
}
	else {
	
		yeni.close()
		yeni=window.open('','','width=590, height=340, left=160, top=107, toolbar=no, location=no, scrollbar=no')
		yeni.document.open()
                yeni.document.write('<html>')
                yeni.document.write('<head>')
                yeni.document.write('<meta http-equiv="Content-Language" content="tr">')
                yeni.document.write('<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-9">')
                yeni.document.write('<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">')
		yeni.document.write('<title>Arkadaşınıza Gönderin</title>')
                yeni.document.write('</head>')
		yeni.document.write('<body topmargin=20 leftmargin=0>')
                yeni.document.write('<form method="POST" action="gonder.asp">')
                yeni.document.write('<table border=0 cellpadding=0 cellspacing=0 width=560 height=190>')
                yeni.document.write('<tr>')
                yeni.document.write('<td width=560 align=center colspan=3><h2>DUDAK PAYI TAVSİYE FORMU</h2></td>')
                yeni.document.write('</tr>')
                yeni.document.write('<tr>')
                yeni.document.write('<td width=560 align=center colspan=3><h4>Seçmiş olduğunuz sayfayı arkadaşınıza göndermek için<br>lütfen aşağıdaki formu eksiksiz doldurun....</h4>')
                yeni.document.write('</tr>')
                yeni.document.write('<tr>')
                yeni.document.write('<td width=250 align=right>Adınız Soyadınız : </td>')
                yeni.document.write('<td width=5></td>')
                yeni.document.write('<td width=305><input type=text name=adiniz_soyadiniz size=39></td>')
                yeni.document.write('</tr>')
                yeni.document.write('<tr>')
                yeni.document.write('<td width=250 align=right>E-Posta Adresiniz : </td>')
                yeni.document.write('<td width=5></td>')
                yeni.document.write('<td width=305><input type=text name=sizin_eposta size=39></td>')
                yeni.document.write('</tr>')
                yeni.document.write('<tr>')
                yeni.document.write('<td width=250 align=right>Arkadaşınızın E-Posta Adresi :</td>')
                yeni.document.write('<td width=5></td>')
                yeni.document.write('<td width=305><input type=text name=arkadas_eposta size=39></td>')
                yeni.document.write('</tr>')
                yeni.document.write('<tr>')
                yeni.document.write('<td width=250 align=right valign=top height=15>Mesajınız : </td>')
                yeni.document.write('<td width=5 height=15></td>')
                yeni.document.write('<td width=305 height=35><textarea rows="5" name="mesajiniz" cols="31"></textarea></td>')
                yeni.document.write('</tr>')
                yeni.document.write('<tr>')
                yeni.document.write('<td width=250 align=right></td>')
                yeni.document.write('<td width=5></td>')
                yeni.document.write('<td width=305><input type=hidden name=url_adresi size=50 value='+adres_adi+'></td>')
                yeni.document.write('</tr>')
                yeni.document.write('<tr>')
                yeni.document.write('<td width=250 align=right height=15></td>')
                yeni.document.write('<td width=5 height=15></td>')
                yeni.document.write('<td width=305 height=15></td>')
                yeni.document.write('</tr>')
                yeni.document.write('<tr>')
                yeni.document.write('<td width=250 align=right>&nbsp;</td>')
                yeni.document.write('<td width=5></td>')
                yeni.document.write('<td width=305><input type=submit value=Gönder name=B1>')
                yeni.document.write('<input type=reset value=" Sıfırla " name=B2></td>')
                yeni.document.write('</tr>')
                yeni.document.write('</table>')
                yeni.document.write('</form>')
		yeni.document.write('</body>')
		yeni.document.write('</html>')
		yeni.document.close()

}
}