﻿
function reviewCommentSetRespond(id, name) {	
	document.getElementById('p[respond]').value = id;
	document.getElementById('p[respond_text]').innerHTML = 'Вы будете отвечать на сообщение ' + name + '\'а.<br />';
}




function articleRate(url, id) {
document.write('<form name="myrateform" method="POST" action="/action/rate-article.php">');
document.write('<select name="value" style="width: 100px;">');
document.write('<option selected>выберите</option>');
document.write('<option value="5">*****</option>');
document.write('<option value="4">****</option>');
document.write('<option value="3">***</option>');
document.write('<option value="2">**</option>');
document.write('<option value="1">*</option>');
document.write('</select>');
document.write('<input type="hidden" name="mark" value="art-' + id + '">');
document.write('<input type="hidden" name="url" value="' + url + '">');
document.write(' <input type="submit" value="Да">');
document.write('</form>');
}


