function genera(){
	
	var testo = new String(document.form.testo.value);
	var strTot = String("");
	var scr = String("</scr");
	var ipt = String("ipt>");
	
	scr+=ipt;
	
	if(form.R1[0].checked)
	strTot+="<p align=\"center\"><a href=\"http://www.proffe.it\">";
	if(form.R1[1].checked)
	strTot+="<marquee direction=\"left\"><p align=\"center\"><a href=\"http://www.proffe.it\">";
	if(form.R1[2].checked)
	strTot+="<marquee direction=\"right\"><p align=\"center\"><a href=\"http://www.proffe.it\">";
	if(form.R1[3].checked)
	strTot+="<marquee behavior=\"alternate\"><p align=\"center\"><a href=\"http://www.proffe.it\">";
	if(form.R1[4].checked)
	strTot+="<marquee direction=\"up\"><p align=\"center\"><a href=\"http://www.proffe.it\">";
	if(form.R1[5].checked)	
	strTot+="<marquee direction=\"down\"><p align=\"center\"><a href=\"http://www.proffe.it\">";
	
	ind = form.D1.selectedIndex+1;
	
	lung = testo.length;
	for(i=0;i<lung;i++)
		{if(testo.substring(i,i+1)>='a' && testo.substring(i,i+1)<='z' || testo.substring(i,i+1)>='A' && testo.substring(i,i+1)<='Z')
		strTot+="<img src=\"http://www.proffe.it/glitter/font"+ind+"/"+testo.substring(i,i+1)+".gif\" border=0>";
		 else
		  {if(testo.substring(i,i+1)==' ')
		    strTot+="<img src=\"http://www.proffe.it/glitter/font"+ind+"/sp.gif\" border=0>";
		 else
		 	strTot=strTot;
		  }
		}
	if(!form.R1[0].checked)
	strTot+="</marquee>";
	
	strTot+="</p></a>";
	document.write("<html>\
<head>\
<meta http-equiv=\"Content-Type\" content=\"text/html\"; charset=windows-1252\">\
<title>LE SCRITTE GLITTER DI PROFFE.IT</title>\
<meta name=\"keywords\" content=\"proffe, scritte, glitter, blog, personalizzare, msn, luccicanti, text\">\
<meta name=\"description\" content=\"Proffe.it vi offre un semplicissimo editor per creare la vostra scritta glitter per personalizzare qualsiasi cosa: Blog, siti internet, spazi personali ecc...\">\
<LINK href=\"barra.css\" rel=\"stylesheet\" type=\"text/css\">\
</head>\
<body bgcolor=\"#000066\" style=\"text-align: left\">\
<div align=\"center\">\
	<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"854\">\
		<tr>\
			<td height=\"41\" width=\"41\" background=\"grafica/angolo_a_s.jpg\">&nbsp;</td>\
			<td height=\"41\" background=\"grafica/sfondo_up.jpg\" colspan=\"7\">\
			<p align=\"center\">\
				<font face=\"Berlin Sans FB\" size=\"4\" color=\"#FFFFFF\">Ecco la tua \
				scritta!!</font></td>\
			<td height=\"41\" width=\"41\" background=\"grafica/angolo_a_d.jpg\">&nbsp;</td>\
		</tr>\
		<tr>\
			<td width=\"41\" background=\"grafica/sfondo_sin.jpg\" rowspan=\"10\">&nbsp;</td>\
			<td height=\"23\" bgcolor=\"#000066\" width=\"23\" background=\"grafica/a_s.jpg\">\
			&nbsp;</td>\
			<td height=\"23\" bgcolor=\"#000066\" background=\"grafica/c_u.jpg\" colspan=\"5\">\
			&nbsp;</td>\
			<td height=\"23\" bgcolor=\"#000066\" width=\"23\" background=\"grafica/a_d.jpg\">\
			&nbsp;</td>\
			<td width=\"41\" background=\"grafica/sfondo_des.jpg\" rowspan=\"10\">&nbsp;</td>\
		</tr>\
		<tr>\
			<td bgcolor=\"#FFFFFF\" colspan=\"7\">\
				<p align=\"center\">"+strTot);
				
				
document.write("</td></tr><tr>\
			<td height=\"23\" bgcolor=\"#000000\" align=\"center\" width=\"23\" background=\"grafica/b_s.jpg\">\
			&nbsp;</td>\
			<td height=\"23\" bgcolor=\"#000000\" align=\"center\" background=\"grafica/c_d.jpg\" colspan=\"5\">\
			&nbsp;</td>\
			<td height=\"23\" bgcolor=\"#000000\" align=\"center\" width=\"23\" background=\"grafica/b_d.jpg\">\
			&nbsp;</td>\
			</tr>\
		    <tr>\
			<td width=\"23\" height=\"23\" background=\"grafica/a_s.jpg\" align=\"center\">\
			</td>\
			<td height=\"23\" background=\"grafica/c_u.jpg\" width=\"574\" align=\"center\" colspan=\"2\">\
			<font color=\"#FFFFFF\" face=\"Berlin Sans FB\">Usa il nostro semplicissimo editor per creare la tua scritta.</font></td>\
			<td width=\"23\" height=\"23\" background=\"grafica/a_d.jpg\" align=\"center\">\
			&nbsp;</td>\
			<td width=\"23\" height=\"23\" background=\"grafica/a_s.jpg\" align=\"center\">\
			&nbsp;</td>\
			<td height=\"23\" background=\"grafica/c_u.jpg\" width=\"104\" align=\"center\">\
			<font color=\"#FFFFFF\" face=\"Berlin Sans FB\">SPOT</font></td>\
			<td width=\"23\" height=\"23\" background=\"grafica/a_d.jpg\" align=\"center\">\
			&nbsp;</td>\
			</tr>\
			<tr>\
			<td colspan=\"4\" align=\"center\" rowspan=\"2\" valign=\"top\">\
			<table border=\"0\" id=\"table1\">\
				<tr>\
					<td width=\"614\" colspan=\"2\">\
					<p align=\"center\">\
					<font face=\"Berlin Sans FB\" color=\"#00FF00\" size=\"4\">\
					<br>\
					ECCO IL CODICE HTML DA COPIARE E INCOLLARE DOVE VUOI TU!!</font></td>\
				</tr>\
				<tr>\
					<td width=\"586\" colspan=\"2\">\
					<form>\
						<p align=\"center\"><br>\
						<textarea rows=\"6\" name=\"S1\" cols=\"64\" onclick=\"select()\">"+strTot+"</textarea><br><br><br><br>\
						</p></form></td></tr><tr>\
					<td width=\"50\" bgcolor=\"#00FF00\">\
					<p align=\"center\">\
					<font face=\"Berlin Sans FB\" size=\"5\" color=\"#FFFF00\">\
					<a href=\"scritte_glitter.html\">\
					<img border=\"0\" src=\"immagini/back.gif\" width=\"40\" height=\"30\"></a></font></td>\
					<td width=\"560\">\
					<font face=\"Berlin Sans FB\" size=\"5\" color=\"#FFFF00\">\
					<a href=\"scritte_glitter.html\"><font color=\"#FFFF00\">TORNA\
					ALL'EDITOR!!</font></a></font></td>\
				</tr>\
				</table>\
			</td>\
			</tr>\
		<tr>\
			<td align=\"center\" valign=\"top\" colspan=\"3\">");

document.write("<script type=\"text/javascript\">\
				var uri = 'http://impit.tradedoubler.com/imp?type(img)g(16789690)a(1216775)' + new String (Math.random()).substring (2, 11);\
				document.write('<a href=\"http://clk.tradedoubler.com/click?p=58307&a=1216775&g=16789690\" target=\"_blank\"><img src=\"'+uri+'\" border=0></a>');\
				"+scr);
			
document.write("</td>\
			</tr>\
			<tr>\
			<td height=\"23\" background=\"grafica/b_s.jpg\" align=\"center\" width=\"23\">\
			&nbsp;</td>\
			<td height=\"23\" background=\"grafica/c_d.jpg\" align=\"center\" width=\"163\">\
			&nbsp;</td>\
			<td height=\"23\" background=\"grafica/c_d.jpg\" align=\"center\" width=\"412\">\
			&nbsp;</td>\
			<td height=\"23\" background=\"grafica/b_d.jpg\" align=\"center\" width=\"23\">\
			&nbsp;</td>\
			<td height=\"23\" background=\"grafica/b_s.jpg\" align=\"center\" width=\"23\">\
			&nbsp;</td>\
			<td height=\"23\" background=\"grafica/c_d.jpg\" align=\"center\" width=\"104\">\
			&nbsp;</td>\
			<td height=\"23\" background=\"grafica/b_d.jpg\" align=\"center\" width=\"23\">\
			&nbsp;</td>\
			</tr>\
			<tr>\
			<td width=\"23\" height=\"23\" background=\"grafica/a_s.jpg\">\
			&nbsp;</td>\
			<td height=\"23\" background=\"grafica/c_u.jpg\" colspan=\"5\">\
			<p align=\"center\"><font color=\"#FFFFFF\" face=\"Berlin Sans FB\">-ATTENZIONE ATTENZIONE!!-\
			</font></td>\
			<td width=\"23\" height=\"23\" background=\"grafica/a_d.jpg\">\
			&nbsp;</td>\
			</tr>\
			<tr>\
			<td colspan=\"7\">\
				<p align=\"center\">");

document.write("<a href=\"http://clk.tradedoubler.com/click?p=57718&a=1216775&g=16859860\" target=\"_BLANK\"><img src=\"http://impit.tradedoubler.com/imp?type(img)g(16859860)a(1216775)\" border=0></a>");
				
document.write("</td>\
			</tr>\
			<tr>\
			<td width=\"23\" height=\"23\" background=\"grafica/b_s.jpg\">\
			&nbsp;</td>\
			<td height=\"23\" background=\"grafica/c_d.jpg\" colspan=\"5\">\
			&nbsp;</td>\
			<td width=\"23\" height=\"23\" background=\"grafica/b_d.jpg\">\
			&nbsp;</td>\
			</tr>\
			<tr>\
			<td height=\"41\" width=\"41\" background=\"grafica/angolo_b_s.jpg\">&nbsp;</td>\
			<td height=\"41\" background=\"grafica/sfondo_down.jpg\" colspan=\"7\">\
			<p align=\"center\"><font color=\"#FFFFFF\">Copyright© 2006 Proffe.it</font></td>\
			<td height=\"41\" width=\"41\" background=\"grafica/angolo_b_d.jpg\">&nbsp;</td>\
			</tr>\
	</table>\
</div>\
</body>\
</html>");
}
