Retrieve the record id of the currently displayed record for use in Deluge Script

Retrieve the record id of the currently displayed record for use in Deluge Script

If I have a record displayed with a url like :

https://crm.zoho.com/crm/EntityInfo.do?module= Potentials&id=19999999990000000

how can I retrieve the id part of the url to pass to a Deluge script function like

void workflowspace.create_Tasks99 ( int PotentialID)     where PotentialID is 19999999990000000     ?

Thanks.