JavaLikeCalc.JavaScript
if(f_start) {
	doc_time = SYS.time();
	doc_bTime = doc_time-24*3600;
	doc_tmpl = doc_tmpl.replace("@@archLs@@",archLs).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;

//Events process
for(off = 0, ev_rez = ""; (sval=event.parse(0,"\n",off)).length; ) {
	//this.messInfo("TEST 01: Event="+sval);
	if(sval == "ws_CombChange:/fltrCol") {
		fltr_active = !(doc_fltrCol=fltrCol_value.match("\\((.+)\\)")[1]).isEVal();
		fltr_value = "";
		doc_doc = ""; doc_time = 0;
	}
	else if(sval == "ws_LnAccept:/fltr")		{ doc_doc = ""; doc_time = 0; }
	else ev_rez += sval+"\n";
}
event = ev_rez;


//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);
}