function CheckIsIE()
{
 if (navigator.appName.toUpperCase() == 'MICROSOFT INTERNET EXPLORER') { return true;}
 else { return false; }
}

function PrintThisPage()
{
 if (CheckIsIE() == true)
 {
 document.iframecontents.focus();
 document.iframecontents.print();
 }
 else
 {
 window.frames['iframecontents'].focus();
 window.frames['iframecontents'].print();
 }
}