 function PrintFrame(FrameName)
{
      var Frame=window.frames[FrameName];
      if(Frame)
      {
          Frame.focus();
          Frame.print();
      }
        
 }
function PrintThisPage()
{
	 PrintElementWithCSS('PrintContent','');
}
function PrintWithCSS(css)
{
     PrintElementWithCSS('PrintContent',css);
}
function PrintElement(EId) {
  
    if (document.getElementById("closeprntr") != null) {
        document.getElementById("closeprntr").style.display = "none";
        
    }
    if (document.getElementById("closecpn") != null) {
        document.getElementById("closecpn").style.display = "none";

    }
    if (document.getElementById("closeprntr1") != null) {
        document.getElementById("closeprntr1").style.display = "none";

    }
    if (document.getElementById("closecpn1") != null) {
        document.getElementById("closecpn1").style.display = "none";

    }
    document.getElementById(EId).style.display = "none";
     PrintElementWithCSS(EId,'');
}
function PrintElementWithCSS(EId, css) {
    // alert(EId);
    var sWinHTML = ''; var sHeadingHTML = '';
    if (document.getElementById(EId) != null) {
        sWinHTML = document.getElementById(EId).innerHTML;
    }
//    if (document.getElementById('headingContent') != null) {
//        sHeadingHTML = document.getElementById('headingContent').innerHTML;
//        alert(sHeadingHTML);
//    }

    var CSSPath = new Array();
   
    if (css != '') {
        CSSPath[0] = css;
       
        CSSPath[1] = "http://www.bizoik.com/css/style.css";
    }
    PrintContent(sHeadingHTML, sWinHTML, CSSPath);

}
function PrintContent(sHeadingHTML, sWinHTML, CSSPath) {
    //Modified for XHTML-Compatibility
    var sOption = "toolbar=yes,location=no,directories=yes,menubar=yes,scrollbars=yes,left=100,top=25";
    var winprint = window.open("", "", sOption);
    var CSSContent = '';

    for (var tempI = 0; tempI < CSSPath.length; tempI++) {
        CSSContent = CSSContent + '<link href="' + CSSPath[tempI] + '" rel="Stylesheet" />\n';
    }

   
    // winprint.document.write('<link href="/portal/Headers/OldPortalStyles.css" rel="Stylesheet" /><link href="/portal/Headers/NewPortalStyles.css" rel="Stylesheet" /><body>');
    var Content = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html  xmlns="http://www.w3.org/1999/xhtml" >\n';
    Content = Content + '\n<head >\n' + CSSContent + '</head>\n';
    Content = Content + '<body>' + '<table align=left>' + '<tr><td>' + sWinHTML + '</td></tr>';
    //Content = Content + '<tr><td>' + sWinHTML + '</td></tr>';
    Content = Content + '</table>';
    Content = Content + '</body>';
    Content = Content + '</html>';
    //alert(Content);
    winprint.document.open();
    winprint.document.write(Content);
    winprint.document.close();

    winprint.focus();
    winprint.print();
    //winprint.close();

}
