function adServingPlaceAds(adId, placeholderId) 
{
    var ad = document.getElementById(adId);
    var placeholder = document.getElementById(placeholderId);

    //getElementById introduced in DOM Level 2
    //Returns the Element whose ID is given by elementId. 
    //If no such element exists, returns null.
    //So, only show the advertisement if we have both an ad and a placeholder

    //alert(adId);

    if ((ad == null) || (placeholder == null)) 
    {
        return;
    }

    if (adId.substring(0, 11) != 'DirectoryAd')
    {
        placeholder.style.height = ad.style.height;
        placeholder.style.width = ad.style.width;

        ad.style.position = 'absolute';
        ad.style.left = dhtmlGetPositionX(placeholder) + 'px';
        ad.style.top = dhtmlGetPositionY(placeholder) + 'px';

        ad.style.display = 'inline';
        ad.style.visibility = 'visible';
    }
    else
    {
        if (ad.innerHTML != '') 
        {
            placeholder.innerHTML = ad.innerHTML;
			//Center Any content in this box
			placeholder.style.textAlign = "center";
			//Create a space below any creative
			placeholder.style.margin = "0 0 6px 0";
        }
    }
}

