function EExecP8(OOO1,OOO2,X,Y,Att1,Att2,Sg1,Sg2) { if ((X.OB==undefined) || (Y.OB==undefined)) return false; var X1={Re:undefined, Im:undefined} var Y1={Re:undefined, Im:undefined} var X2={Re:undefined, Im:undefined} var Y2={Re:undefined, Im:undefined} Result=false; CmpOut=true; var B=!IsNull(X); if ((X.OB=="O") && (Y.OB=="D") && (X.Vid=="sobstv") && B) { X1=X.X1; Y1=X.Y1; X2=X.X2; Y2=X.Y2; Xb=X1.Re; Yb=Y1.Re; Xe=X2.Re; Ye=Y2.Re; P=CalcP6(X,Y); X1=P.X1; Y1=P.Y1; X2=P.X2; Y2=P.Y2; Prizn=(P.X1==undefined); if (Prizn) if (!CMPOut) { if (Att1.Chk==1) TOEmpty_Create(OOO1,Att1); if (Att2.Chk==1) TOEmpty_Create(OOO2,Att2); Result=true; return Result; } if ((PointBelongs(X,X1.Re,Y1.Re) && PointBelongs(Y,X1.Re,Y1.Re))) {Def1=true} else {Def1=false} if ((PointBelongs(X,X2.Re,Y2.Re) && PointBelongs(Y,X2.Re,Y2.Re))) {Def2=true} else {Def2=false} if (((Math.abs(X1.Re-X.X1.Re)