<script type="text/javascript" src="<?php echo $this->webroot;?>js/jquery.PrintArea.js"></script>
function PrintActivity(pCL)
{
//iframe popup
var mode = "iframe";
//true false
var close = false;
var extraCss = "";
var keepAttr = [];
keepAttr.push("class");
keepAttr.push("id");
keepAttr.push("style");
var headElements = $("input#addElements").is(":checked") ? '<meta charset="utf-8" />,<meta http-equiv="X-UA-Compatible" content="IE=edge"/>' : '';
var options = { mode : mode, popClose : close, extraCss : extraCss, retainAttr : keepAttr, extraHead : headElements };
$("div.PrintArea.area1").printArea( options );
}