Hi Andrew,
  THanks for the help..it works now...

-sandeep