var Priv = getScriptHostQI("IGrooveFormsToolUIDelegatePrivate");
// IDS_FORMS_TOOL_JS_REMOVE_CONTACT_DLG and IDS_FORMS_TOOL_JS_REMOVE_CONTACT_TITLE
if (getScriptHostQI("IGrooveFormsToolUIDelegate").DisplayYesNoMessageBox(Priv.GetResourcedString(IDS_FORMS_TOOL_JS_REMOVE_CONTACT_DLG), Priv.GetResourcedString(IDS_FORMS_TOOL_JS_REMOVE_CONTACT_TITLE)))
removeContact(g_ContactContextMenuFieldName);
break;
}
}
}
}
function removeContact(i_FieldName)
{
var Contact = g_RegisteredContactFields[i_FieldName];
// Unregister the contact.
unregisterContact(Contact, i_FieldName);
// Display the contact information for a contact.
displayContactInfo(null, i_FieldName, true);
// Set the dirty bit when a contact is removed.
setIsDirty();
// Set the attribute on the field so we know that this is empty.
var ContactField = document.getElementById(i_FieldName);