JavaLikeCalc.JavaScript
if(f_start) {
	doc_time = SYS.time();
	doc_bTime = doc_time-24*3600;
	doc_tmpl = doc_tmpl.replace("@@messCat@@", messCat);

	cnt = 0;
	toCalcCycles = cnt_ = max(3, 2000/this.ownerSess().period());
}
cnt++;
if(cnt == cnt_)	event = "ws_FocusIn:/doc";

if(f_stop)	return;

//Updating cycles processing for big processing periods of that page 
if(toCalcCycles > 0.1) {
	this.attrSet("event", this.attr("event")+"usr_calc\n");	//!!!! Just to calc in the next session cycle for update
	toCalcCycles = max(0, toCalcCycles-1);
}