
function tabel_voteaza(nume,id_profil,voturi,media,id_film,cate) {


document.write('<table width="100%" border=0 cellpadding=4 cellspacing=1 bgcolor="#CCCCCC"><tr><td class="trtc" valign=top><table width="100%" border=0 cellspacing=2 cellpadding=2><tr><td>Posted by ');
if (id_profil!=0) {
document.write('<a href="/index.php?page=view_profile&id='+id_profil+'" target="_blank">'+nume+'</a> <i>('+cate+' movies)</i>');
} else {
document.write(nume);
}
document.write("<br>Vote this clip:<br><form method=POST id=\"vot"+id_film+"\" name=\"vot"+id_film+"\" action=\"/voteaza_film.php\" target=\"vot_film\"><input type=hidden name=film_id value=\""+id_film+"\"><table width=\"100%\" border=0 cellspacing=0 cellpadding=0 align=center><tr><td><input type=radio name=nota value=1 onclick=\"fx('vot"+id_film+"')\">1</td><td><input type=\"radio\" name=\"nota\" value=2 onclick=\"fx('vot"+id_film+"')\">2</td><td><input type=\"radio\" name=\"nota\" value=3 onclick=\"fx('vot"+id_film+"')\">3</td><td><input type=\"radio\" name=\"nota\" value=4 onclick=\"fx('vot"+id_film+"')\">4</td><td><input type=\"radio\" name=\"nota\" value=5 onclick=\"fx('vot"+id_film+">')\">5</td><td><input type=\"radio\" name=\"nota\" value=6 onclick=\"fx('vot"+id_film+"')\">6</td><td><input type=\"radio\" name=\"nota\" value=7 onclick=\"fx('vot"+id_film+"')\">7</td><td><input type=\"radio\" name=\"nota\" value=8 onclick=\"fx('vot"+id_film+"')\">8</td><td><input type=\"radio\" name=\"nota\" value=9 onclick=\"fx('vot"+id_film+"')\">9</td><td><input type=\"radio\" name=\"nota\" value=10 onclick=\"fx('vot"+id_film+"')\">10</td></tr></table></form>");

document.write("Votes: <b>"+voturi+"</b> Average: <b>"+media+"</b></td></tr></table></td></tr></table>");

}

function fx(a) {
var newim = window.open('', 'vot_film', 'scrollbars=no,menubar=no,resizable=0,location=no,screenX=50,screenY=100,width=200,height=100');
document.getElementById(a).submit();
}

