return NS_OK;
CPlatformUCSConversion::GetInstance()->UCSToPlatform(nsDependentString(dialogTitle), pStr); theDialog->SetDescriptor(pStr);  LStaticText	*msgText = dynamic_cast<LStaticText*>(theDialog->FindPaneByID('Msg ')); CPlatformUCSConversion::GetInstance()->UCSToPlatform(nsDependentString(text), cStr); cStr.ReplaceChar('\n', '\r'); msgText->SetText(const_cast<char *>(cStr.get()), cStr.Length());  LCheckBox *checkBox = dynamic_cast<LCheckBox*>(theDialog->FindPaneByID('Chck')); CPlatformUCSConversion::GetInstance()->UCSToPlatform(nsDependentString(checkMsg), pStr); checkBox->SetDescriptor(pStr); checkBox->SetValue(*checkValue ? 1 : 0);  theDialog->Show(); theDialog->Select();  while (true) { MessageT	hitMessage = theHandler.DoDialog();  if (hitMessage == msg_OK) { *checkValue = checkBox->GetValue(); break; }
NS_IMETHODIMP CPromptService::AlertCheck(nsIDOMWindow *parent,                                         const PRUnichar *dialogTitle,                                         const PRUnichar *text,                                         const PRUnichar *checkboxMsg,                                         PRBool *checkValue){	nsString 	mTitle(dialogTitle);	nsString 	mText(text);	nsString 	mMsg(checkboxMsg);	int 		ret;	CWebBrowserContainer *w = GetWebBrowser( parent );	w->InvokeDialogCallback(Pt_MOZ_DIALOG_ALERT, ToNewCString(mTitle), ToNewCString(mText), \			ToNewCString(mMsg), &ret);	*checkValue = ret;	return NS_OK;	}