Thanks Tamas.
I implemented the things suggested by you. But there is a weird thing that happens. If the pop-up comes, i want to click on Edit so that it will take me to the fields for completing the contract. But it so happens that, the contract gets Saved ie On the pop-up we have 3 options : Save, Edit, Cancel.
Although I have script for Push Edit still it looks like, it selects Save. Dont know how to override that behavior. Following is my script.
