JavaLikeCalc.JavaScript
//if(f_start) focus = true;
//if(focus) SYS.messInfo("TEST","TEST 00");

wLst = aLst = EVAL_REAL;
pwName = pName;
pwName = pwName.slice(0,pwName.lastIndexOf("/"));
req = SYS.XMLNode("info").setAttr("path", pwName+"/%2fval");
doc_tmpl = "<body><table border='1' cellpadding='2' cellspacing='0' width='100%'>";
if(SYS.cntrReq(req) == 0 && req.childSize()) {
	chldRoot = req.childGet(0);
	for(i = 0; i < chldRoot.childSize(); i++) {
		aID = chldRoot.childGet(i).attr("id");
		aDscr = chldRoot.childGet(i).attr("dscr");
		reqVl = SYS.XMLNode("get").setAttr("path", pwName+"/%2fval%2f"+aID);
		SYS.cntrReq(reqVl);
		aVl = reqVl.text();

		//Filter
		if(aID == "com" || aID == "close" || aID == "stop" || aVl.isEVal()) continue;
		if(aID == "aMax" || aID == "aMin") {
			if(aLst.isEVal()) { aLst = aVl; continue; }
			aDscr = tr("Alarm border");
			if(aID == "aMax" && aLst < aVl)			aVl = "" + aLst + " ... " + aVl;
			else if(aID == "aMin" && aLst > aVl)	aVl = "" + aVl + " ... " + aLst;
			else aVl = tr("not set");
		}
		else if(aID == "wMax" || aID == "wMin") {
			if(wLst.isEVal()) { wLst = aVl; continue; }
			aDscr = tr("Warning border");
			if(aID == "wMax" && wLst < aVl)			aVl = "" + wLst + " ... " + aVl;
			else if(aID == "wMin" && wLst > aVl)	aVl = ""+aVl+" ... "+wLst;
			else aVl = tr("not set");
		}
		//Put record
		doc_tmpl += "<tr><td>"+SYS.strEncode(aDscr,"HTML")+"</td><td>"+SYS.strEncode(aVl,"HTML")+"</td></tr>\n";
	}
}
doc_tmpl += "</table></body>";