crossobj.left = (fixedX == -1 ? ctl.offsetLeft + leftpos : fixedX)+'.px'; crossobj.top = (fixedY == -1 ? ctl.offsetTop + toppos + ctl.offsetHeight + 2 : fixedY)+'.px';