tion</h2>
            <p>The Javascript function:</p>
         </section>
         <pre xml:space="preserve">
function calculatePosition(objElement, strOffset)
{
    var iOffset = 0;

    if (objElement.offsetParent)
    {
        do 
        {
            iOffset += objElement[strOffset];
            objElement = objElement.offsetParent;
        } while (objElement);
    }

    return iOffset;
}

</pre>
         <section class="description"><h2>Description</h2>
            <p>The following example illustra