Thanks a lot Xld!! got it working with minor modification....