Thankyou buddy......i have been breaking my head for days.Thanks a lot dude...it worked fine.