try changing it to

parent.frames[0].document.all("roomratetable").outerHTML
or if you are using IE 5+/NS6 use
parent.frames[0].document.getElementById("roomratetable").outerHTML.

If that still doesn't work try putting parent.frames[0].focus() before the code. Javascript is strange when it comes to Frames at times.