I couldn't understand properly what you want to say but it looks that you want to get the values from one frame to another using javascript. I think
you should read some tutorials like
this one or use a simple google query like
javascript frames to understand what you can do to achieve your goal. That's all that I can help as I cannot understand the problem properly.
[Edit: didn't see Sugan's second post]
Sugan, you have posted a code but I can't see any frames in that. Can you either post the complete code for both the frames as well as the page which contains both the frames or post a screenshot or something of the two frames to make it easier to understand your problem...