Hey I tested the code and it worked for me. but as Im new to this forum I dont know how to mark it as right answer..Anyways thanks a lot....