function showWhyPopup(ev){
    var target = $(ev.target);
    
    var pos = target.offset();  
    var width = target.width();

    // inject popup relative to the target
    var elem = $('<div />').html( $("#whyDialog").html() ).addClass('whyPopup').appendTo('body');
    elem.css( { position: 'absolute',
        		zIndex: 5000, 
        		left: (pos.left + width) + "px", 
        		top:pos.top + "px",
        		width: "225px",
        		height: "175px" } );
    elem.show();

    // stop processing after the popup is visible
    ev.stopPropagation();

    // hide popup when user clicks outside of the box
    $('body').click(function() {
        elem.remove();
    });

    elem.click(function(event) {
        event.stopPropagation();
    });													
}