teach the OPs...

dswastik... it's propobably not a good idea to send complete solutions to the OPs... there's no learning process envolved ... to easy for the OP to just cut & paste & forget. It better to provide snippets, pseudo code, hints, links, etc.

CJSL

Chris S.Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.