Set task list title textbox to readonly mode in Sharepoint 2007

One of my client asked to set the task list title textbox to readonly mode when the user selects edit item property from the context menu. So, I thought to complete this scenario by making use of javascript