function sendrating(a,b,c){(b==1||b==2||b==3||b==4||b==5)&&nv_ajax("post",nv_siteroot+"index.php",nv_lang_variable+"="+nv_sitelang+"&"+nv_name_variable+"="+nv_module_name+"&"+nv_fc_variable+"=rating&id="+a+"&checkss="+c+"&point="+b,"stringrating","")} function sendcommment(a,b,c){var d=document.getElementById("commentname"),e=document.getElementById("commentemail_iavim"),f=document.getElementById("commentseccode_iavim"),g=strip_tags(document.getElementById("commentcontent").value);d.value==""?(alert(nv_fullname),d.focus()):nv_email_check(e)?nv_name_check(f)?g==""?(alert(nv_content),document.getElementById("commentcontent").focus()):(document.getElementById("buttoncontent").disabled=true,nv_ajax("post",nv_siteroot+"index.php",nv_lang_variable+"="+ nv_sitelang+"&"+nv_name_variable+"="+nv_module_name+"&"+nv_fc_variable+"=postcomment&id="+a+"&checkss="+b+"&name="+d.value+"&email="+e.value+"&code="+f.value+"&content="+encodeURIComponent(g),"","nv_commment_result")):(error=nv_error_seccode.replace(/\[num\]/g,c),alert(error),f.focus()):(alert(nv_error_email),e.focus())} function nv_commment_result(a){nv_change_captcha("vimg","commentseccode_iavim");a=a.split("_");a[0]=="OK"?(document.getElementById("commentcontent").value="",nv_show_hidden("showcomment",1),nv_show_comment(a[1],a[2],a[3]),alert(a[4])):a[0]=="ERR"?alert(a[1]):alert(nv_content_failed);nv_set_disable_false("buttoncontent");return false} function nv_show_comment(a,b,c){nv_ajax("get",nv_siteroot+"index.php",nv_lang_variable+"="+nv_sitelang+"&"+nv_name_variable+"="+nv_module_name+"&"+nv_fc_variable+"=comment&id="+a+"&checkss="+b+"&page="+c,"showcomment","")}function remove_text(){document.getElementById("to_date").value="";document.getElementById("from_date").value=""} function nv_del_content(a,b,c){confirm(nv_is_del_confirm[0])&&nv_ajax("post",c+"index.php",nv_name_variable+"="+nv_module_name+"&"+nv_fc_variable+"=del_content&id="+a+"&checkss="+b,"","nv_del_content_result");return false}function nv_del_content_result(a){a=a.split("_");a[0]=="OK"?window.location.href=strHref:a[0]=="ERR"?alert(a[1]):alert(nv_is_del_confirm[2]);return false};