Thanks guys it works now..and I learnt somthing new.