",1==o.responseText)notice.showToast({text:text_2,type:"error",showClose:!0,autoClose:false});else if(2==o.responseText)notice.showToast({text:text_3,type:"error",showClose:!0});else if(4==o.responseText)notice.showToast({text:text_4,type:"error",showClose:!0});else if(2==n){if(1==t){var i=document.getElementById("like_"+e).innerHTML;i=parseInt(i)+1,document.getElementById("like_"+e).innerHTML=i,5==o.responseText&&(a=document.getElementById("lik_"+e).innerHTML,a=parseInt(a)-1,document.getElementById("lik_"+e).innerHTML=a)}else if(i=document.getElementById("lik_"+e).innerHTML,i=parseInt(i)+1,document.getElementById("lik_"+e).innerHTML=i,5==o.responseText){var a=document.getElementById("like_"+e).innerHTML;a=parseInt(a)-1,document.getElementById("like_"+e).innerHTML=a}document.getElementById("loading_rate").style.display="none"}else{notice.showToast({text:text_5,type:"success",showClose:!0});const m=document.getElementById("rate_"+e),d=m.querySelector(".current-rating");1==t&&(d.style.width="20%"),2==t&&(d.style.width="40%"),3==t&&(d.style.width="60%"),4==t&&(d.style.width="80%"),5==t&&(d.style.width="100%")}},o.open("GET","/rating/"+e+"/"+t,!0),o.send()}
eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('2 7(a){3.8();9 d;d=b.5?6 5:6 c("e.f");d.g=2(){4==d.h&&i==d.j&&(3.k(),l.m("n").o=d.p)};d.q("r","/s/"+a,!0);d.t();u!1};',31,31,'||function|notice||XMLHttpRequest|new|Forum_Page|showLoading|var||window|ActiveXObject||Microsoft|XMLHTTP|onreadystatechange|readyState|200|status|hideLoading|document|getElementById|forum_post_block|innerHTML|responseText|open|GET|Fm_Page|send|return'.split('|'),0,{}))
function close_rate(){document.getElementById("loading_rate").style.display="none"}
function load_ajax(e, t, page,ajax_page) {
var n = document.createElement("iframe");
n.setAttribute("id", "RB_Reg_iframe"), n.setAttribute("name", "RB_Reg_iframe"), n.setAttribute("width", "0"), n.setAttribute("height", "0"), n.setAttribute("border", "0"), n.setAttribute("style", "width: 0; height: 0; border: none;display:none;"), e.parentNode.appendChild(n), window.frames.RB_Reg_iframe.name = "RB_Reg_iframe", iframeId = document.getElementById("RB_Reg_iframe");
var o = function() {
notice.hideLoading(), iframeId.detachEvent ? iframeId.detachEvent("onload", o) : iframeId.removeEventListener("load", o, !1), iframeId.contentDocument ? content = iframeId.contentDocument.body.innerHTML : iframeId.contentWindow ? content = iframeId.contentWindow.document.body.innerHTML : iframeId.document && (content = iframeId.document.body.innerHTML);
var data = content.split(",");
if ("success" == data[0]) {
notice.showToast({
text: data[1],
type: "success",
showClose: !0
});
document.getElementById("comment_form").style.display = "none";
document.getElementById("error_a").style.display = "none";
document.getElementById("loading_t").innerHTML = "" + data[2] + "
"
}
else if( ajax_page )
{
var gets = JSON.parse(content);
var get_href;
var scroll2;
var scroll_time;
var close2;
var function2;
//var gets = JSON.parse(content);
if( gets['html'] )
{
$('.load_page').html(gets['html']).hide().fadeIn(500);
ajax_page_setting(get_href,scroll2,scroll_time,close2,function2);
}
if( gets['type'] )
{
notice.showToast({text: gets['message'],type: gets['type'],showClose: true});
}
//if( gets['html'] || gets['type'] ) window.location.href="";
}
else if(page == 'forget')
{
if (content == 1) {
notice.showToast({
text: "لطفا همه موارد را پر کنید",
type: "error",
showClose: true
})
}
else if (content == 2) {
notice.showToast({
text: "کد امنیتی را اشتباه وارد کرده اید !",
type: "error",
showClose: true
})
}
else if (content == 3) {
notice.showToast({
text: "این نام کاربری در سایت وجود ندارد !",
type: "error",
showClose: true
})
}
else if (content == 4) {
notice.showToast({
text: "ایمیل وارد شده اشتباه است",
type: "error",
showClose: true
})
}
else if (content == 5) {
notice.showToast({
text: "این ایمیل در سرویس های ایمیل وجود ندارد!",
type: "error",
showClose: true
})
}
else if (content == 6) {
notice.showToast({
text: "نام کاربری شامل حروف انگلیسی و - _ میباشد",
type: "error",
showClose: true
})
}
else if (content == 7) {
notice.showToast({
text: "این نام کاربری هنوز تایید نشده است!",
type: "error",
showClose: true
})
}
else if (content == 8) {
notice.showToast({
text: "برای تایید این نام کاربری به ایمیل خود مراجعه کنید و ایمیل را تایید کنید.",
type: "error",
showClose: true
})
}
else if (content == 9) {
notice.showToast({
text: "نام کاربری شما مسدود شده است !",
type: "error",
showClose: true
})
}
else if (content == 100) {
notice.showToast({
text: "نحوه بازیابی و تغییر رمز عبور به ایمیل شما ارسال شد .