PR_LOG(PhWidLog, PR_LOG_DEBUG, "nsWidgetSupport::NS_CreateDialog\n"));
NS_CreateDialog(nsISupports* aParent, 	        nsIDialog* aDialog, 	        const nsRect& aRect,           EVENT_CALLBACK aHandleEventFunction,	        const nsFont* aFont){    nsIWidget* parent = nsnull;    if (aParent != nsnull)      aParent->QueryInterface(kIWidgetIID,(void**)&parent);    nsIWidget* 	widget;    if (NS_OK == aDialog->QueryInterface(kIWidgetIID,(void**)&widget)) {      widget->Create(parent, aRect, aHandleEventFunction, NULL);      widget->Show(PR_TRUE);      if (aFont != nsnull)        widget->SetFont(*aFont);      NS_IF_RELEASE(widget);     }    if (aParent != nsnull)      NS_IF_RELEASE(parent);    return NS_OK;}