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

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