Welcome to WebmasterWorld! Global functions in the parent window reside in the window object, not in the document object. Assuming your function is defined prior to your iframe, either of these should work:
window.parent.myFunction('test'); or top.myFunction('test');
[edited by: Fotiman at 2:16 pm (utc) on Aug. 14, 2008]