JavaLikeCalc.JavaScript
if(f_start) {
	c1Sv = c1;
	contextMenu = "";
	if(!com.isEVal() || !close.isEVal())
		contextMenu =	(digComs.isEVal()?tr("Open"):digComs.parse(0,";").parse(0,"-"))+":open\n"+
							(digComs.isEVal()?tr("Close"):digComs.parse(1,";").parse(0,"-"))+":close\n";
}
if(this.attr("focus") ||
	(!code.isEVal() && code.length && this.wdgAt("/s/pg_control/pg_ElCadr",true).attr("pgOpen") && this.wdgAt("/s/pg_control/pg_ElCadr",true).attr("prmShifr") == code))
		c1 = (c1 == c1Sv) ? "#00ddff" : c1Sv;
else c1 = c1Sv;

s1 = 1;
if((st_open == true && st_close != true) || (st_open.isEVal() && st_close == false))
	s1 = 0, p1x = 125;
if((st_close == true && st_open != true) || (st_close.isEVal() && st_open == false))
	s1 = 0, p1x = 45;

//Events process
for(off = 0; (sval=event.parse(0,"\n",off)).length; )
	if(sval == "usr_open") {
		com = true; close = false;
		if((comVal=digComs.parse(0,";")).length) comVal = tr("OPEN");
		SYS.messNote("OP:"+this.ownerSess().user()+":"+code,"'"+code+"'. "+tr("Command")+" : "+DESCR+" : : "+comVal);
	}
	else if(sval == "usr_close") {
		com = false; close = true;
		if((comVal=digComs.parse(0,";")).length) comVal = tr("CLOSE");
		SYS.messNote("OP:"+this.ownerSess().user()+":"+code,"'"+code+"'. "+tr("Command")+" : "+DESCR+" : : "+comVal);
	}