Comment on Basics on Options Shorting/Writing
Naveen, the margin will be blocked immediately, as soon as you take the trade. Like in futures, margin is not debited, it is just blocked in your account when you write options. If you exit your position, the margin gets unblocked.