Firefox error accessing frame contents

I just ran into the need for 2 embedded views on the same form, so was following the solution from this form to use a hidden iFrame and Div. It’s working in IE, but Firefox is returning “document.frames has no properties”. The function seems to be what everyone else has suggested here:

function createEmbeddedView(vTitle) {

document.getElementById(vTitle + 'Div').innerHTML= document.frames[vTitle+'Frame'].document.getElementsByTagName('table')[1].innerHTML;

}

Has anyone run into this, and have a solution? I’ve tried using Firebug, and reading the Gecko DOM help, but still find all that pretty confusing.

TIA