When you want to automatically print the contents of an Iframe, such as greybox, you'd think you could just do a window.print in body Onload...not so much. Doing this just prints the contents of the parent window. The following javascript will do the trick however from within the Iframe
parent.frames.item(0).window.print();
That's all there is to it!