// {RATE_VALUE MARK="g_{GALLERY_ID}"}
// {RATE_VOTES MARK="g_{GALLERY_ID}"}

function rate(id, current, votes) {

document.write('<table cellpadding="0" cellspacing="0" width="279" height="80" align="center" style="background-image: url(\'/i/rate_bg.gif\')"><tr><td align="center"><h1 style="margin: 0px; padding: 0px;">Rate This Gallery</h1><table width=230 align=center><tr><td class=t_12 align=center>');

document.write('Current gallery ratio is <b>' + current + '</b> <font class=n_date>(' + votes + ' votes)</font><br>');

document.write('<div style="margin-top: 3px;"><form style="margin: 0px; padding: 0px;" action="/rate_gal.php" method=get target="_new">');

document.write('<nobr><font style="position: relative; top: -2px;">Your rate?</font> <select name=value style="width: 80px;"><option>0 - worst</option><option>1</option><option>2</option><option>3</option><option>4</option><option selected>5 - best</option></select>');

document.write(' <input type=submit value="Rate" style="width: 50px; height: 22px;"><input type=hidden name="mark" value="g_' + id + '"></form></nobr>');

document.write('</div></td></tr></table></td></tr></table>');


}


