'+cents+'% ('+Math.floor(data.received/1024)+' Kb)
');
}
w._myuploadStarted=1;
if (data.state=='done') {
sblmb2=0;
return;
}
}
_uploadCheck.call(this);
}
var sblmb2=0;
function funzB5AY() {
var act='/mail/', upref='c8dy1T62pN', uploadId, wnd;
try { var tr=checksubmit(); if (!tr){return false;} } catch(e) {}
if (sblmb2==1) { return false; }
sblmb2=1;
window._uploadIdx = window._uploadIdx ? window._uploadIdx+1 : 1;
uploadId = 'up' + window._uploadIdx + '_' + upref;
var frm = $('#mffzB5AY')[0];
frm.action=act+'?upsession='+uploadId;
wnd = new _uWnd(
'sendMFe2',
'Отправка сообщения',
-350,
-100,
{
footerh:25,
footerc:' ',
modal:1,
closeonesc:1,
resize:0,
hidefooter:0,
contentsizeprio:0,
onbeforeclose:function(){},
onclose:function(wnd) {
if (wnd._myuploadTimer) clearTimeout(wnd._myuploadTimer);
wnd._myuploadTimer=null;
}
},
{
form:frm
}
);
wnd._myuploadStarted=0;
_uploadCheck.call({upload_wnd:wnd.idx,upload_id:uploadId});
}
jQuery(function($) {
if ($("input[id=policy]").length) {
$('body').on("submit","form[name=mform]", function() {
if (!$('input[id=policy]:checked').length) {
$("input[id=policy]").next().css({"cssText":"color: red !important","text-decoration":"underline"});
return false;
} else {
$("input[id=policy]").next().removeAttr('style');
}
});
$('body').on("change","#policy", function() {
$("input[id=policy]").next().removeAttr('style');
});
}
});