<p><input type=button name="cmdPring" value="Print Document" onClick="parent.print()"></p>
<input type=button name="cmdPring" value="Print Document" onClick="parent.framename.print()">