Today morning also i was a bit disappointed as it could be merely a single line answer but it breaked my head like anything.
At last i roled out my sleeves and thought of exploring myself very patiently and i got a real self confidence after reading an article in the internet about achievement. Atlast i found the answer today and it was really simple.
The document object has frames collection which cane be used to point out the required frame
here the frameName can be passed as both Name and index.
Name refers to the name of the target frame
index referes to the index in the specified order of the frameset.
so i just passed the required frame which i have stored in the database which is another BIG story!
Thats all folks!
Thank you ramesh for you try!