<?Header("Content-type: Text/Javascript");
$frase=$arr[0]['frase'];
$mittente=$arr[0]['mittente'];
$destinatario=$arr[0]['destinatario'];
$media=$arr[0]['media'];
$ultimo_voto=$arr[0]['ultimo_voto'];
$num_voti=$arr[0]['num_voti'];
$id=$arr[0]['id'];
print "document.write('<html>');
document.write('<link rel=\"stylesheet\" type=\"text/css\" href=\"tabella_frase_casuale.css\" />');
document.write('<body>');
document.write('<hr class=frase>');
document.write('<div id=box_frase>');
document.write('$frase');
document.write('<div id=box_mittente>');
document.write('By');";
if ($destinatario<>""){
print "document.write('$mittente per $destinatario');";
}
else
print "document.write('$mittente');";
print "document.write('<div class=box_piccolo>');
document.write('MEDIA: $media');
document.write('</div>');
document.write('<div class=box_piccolo>');
document.write('ULTIMO VOTO: $ultimo_voto');
document.write('</div>');
document.write('<div class=box_piccolo>');
document.write('NUMERO VOLTE VOTATO: $num_voti</div>');
document.write('<div class=box_piccolo>');
document.write('<a class=link_vota href=\"#\"');
document.write('onClick=\"window.open ('vota.php?id=$id','vota', 'scrollbars=no,status=no,resizable=yes,top=15,left =5,width=500,height=300')VOTA</a>');
document.write('</div></div></div>');
document.write('<hr class=frase>');
document.write('</body></html>');";
?>