jQuery.jPrintArea=function(el)
{
var iframe=document.createElement('IFRAME');
var doc=null;
$(iframe).attr('style','position:absolute;width:0px;height:0px;left:-500px;top:-500px;');
$(iframe).attr('id','iframe');
$(iframe).attr('name','iframe');
document.body.appendChild(iframe);
doc=iframe.contentWindow.document;

doc.write('<link href="/Portals/0/Skins/Polio/skin.css" type="text/css" rel="stylesheet">');
doc.write('<link href="/Portals/_default/default.css" type="text/css" rel="stylesheet">');
doc.write('<script type="text/javascript">function printMe() {window.print();}</script>');
doc.write('<div class="'+$(el).attr("class")+'">'+$(el).html()+'</div>');
doc.close();

if (CheckIsIE() == true)
{
alert('Print?');
window.frames['iframe'].focus();
window.frames['iframe'].printMe();
}
else
{
alert('Print?');
window.frames['iframe'].focus();
window.frames['iframe'].print();
}
//alert('Printed');
//wait(1);
//document.body.removeChild(iframe);
}

function CheckIsIE()
{
if (navigator.appName.toUpperCase() == 'MICROSOFT INTERNET EXPLORER') { return true;}
else { return false; }
}
