Delete from Doc Lib Context Menu using CEWP


Hi Ishasagi,
I am using Enhanced Content Query webpart to display document library with context menu. I am displaying menu items for doc lib using javascript in CEWP. This way I am displaying only menu items that I need. I am having issue for delete function. I am calling the same function from OWS.JS file but delete function is giving errors. I have attached the Javascript that I am using in CEWP and if you can look at it and help me out would be the best..

This is a mendatory requirement for us so if you can help me even for work around would be great help.

file attachments