thanks a lot for reply
it certainly helped a lot but if you don't mind explaining this thing
i mean i want to understand the logic of the formulas used to do this thing...
thanks in advance