how to check if function is being called?
<p>i have a function: </p>

<pre><code>function getPricing(ProductID,VariantID)
{
    //alert('VariantID=' + VariantID);
    if(ProductID == undefined || VariantID == undefined)
    {
        return;
    }

    var ChosenSize = "";
    //var ChosenSizeList = document.getElementById('Size');
    var ChosenSizeList = document.getElementById('AddToCartForm_' + ProductID + '_' + VariantID).Size;
    if(ChosenSizeList != undefined)
    {
        ChosenSize = ChosenSizeList.options[ChosenSizeList.selectedIndex].text;
    }

    var ChosenColor = "";
    //var ChosenColorList = document.getElementById('Color');
    var ChosenColorList = document.getElementById('AddToCartForm_' + ProductID + '_' + VariantID).Color
    if(ChosenColorList != undefined)
    {
        ChosenColor = ChosenColorList.options[ChosenColorList.selectedIndex].text;
    }

    var url = "ajaxPricing.aspx?ProductID=" + ProductID + "&amp;VariantID=" + VariantID + "&amp;size=" + escape(ChosenSize) + "&amp;color=" + escape(ChosenColor);

    //alert("Ajax Url=" + url);
    makeHttpRequest(url,undefined,'pricing');
}
</code></pre>

<p>But how do i check that its being called? I want to display an alert box.</p>

<p>Any ideas?</p>
