//按钮打开iframe对话框:
var $iframe = $("<iframe id='inp' name='inp' width='100%' height='100%' scrolling='no' frameborder='0'>"); // iframe参数的命名及宽高等
$iframe.attr("src", "${servletURL}?reportlet=目录/报表名.cpt&op=write&参数名="+参数); //点击查询时,对话框中显示的子报表
var o = {
title : "标题",
width : 1000,
height: 500
};
FR.showDialog(o.title, o.width, o.height, $iframe,0); //首先弹出对话框