rendered paste bodyfunction round(elem, cornersOff, topLeft, topRight, bottomRight, bottomLeft){ if (cornersOff) { var originalTopLeft = topLeft; var originalTopRight = topRight; var originalBottomRight = bottomRight; var originalBottomLeft = bottomLeft; if (originalTopLeft == '0') { topLeft = originalBottomLeft / 2; } if (originalTopRight == '0') { topRight = originalBottomRight / 2; } if (originalBottomRight == '0') { bottomRight = originalTopRight / 2; } if (originalBottomLeft == '0') { bottomLeft = originalTopLeft / 2; } } else { if (typeof(bottomLeft) == 'undefined') { bottomLeft = topLeft; } if (typeof(bottomRight) == 'undefined') { bottomRight = topRight; } } el = xGetElementById(elem); topColor = get_current_style(el, "background-color", "transparent"); backColor = get_current_style(el.parentNode, "background-color", "transparent"); AddCorner(el, backColor, topColor, topLeft, topRight, true); AddCorner(el, backColor, topColor, bottomLeft, bottomRight, false);}