

function galleryRate(url, id) {

document.write('<form name="myrateform" method="POST" action="/action/rate-gallery.php">');
document.write('<select name="value" onChange="this.form.submit();">');
document.write('<option selected>please select</option>');
document.write('<option value="5">***** &nbsp;- best gallery</option>');
document.write('<option value="4">****&nbsp;&nbsp;&nbsp; - good gallery</option>');
document.write('<option value="3">***&nbsp;&nbsp;&nbsp;&nbsp; - average</option>');
document.write('<option value="2">**&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - not good</option>');
document.write('<option value="1">*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - very bad</option>');
document.write('</select>');
document.write('<input type="hidden" name="mark" value="gal-' + id + '">');
document.write('<input type="hidden" name="url" value="' + url + '">');
document.write('</form>');
      
}
