<script type="text/javascript" language="JavaScript1.2">
function launchPrint()
{
    var printURL = document.location;
    if (window.pdfProcessor == null)
    {
        try
        {
            // PDF printing object; this requires that PDFCamp drivers to have been installed previously.
            window.pdfProcessor = new ActiveXObject("PdfOut.PdfCreator");
        }
        catch(e)
        {
            alert("Cannot instantiante PDFCamp: " + e.message);
        }
    } // end if

    if (window.pdfProcessor != null)
    {
        try
        {
            var hh3 = window.pdfProcessor;
            var version = hh3.getVersion;
            //alert("pdfProcessor Version Number is: " + version);

            hh3.paperType = 2; //2 "Executive [7.25 x 10.5 in]",
            hh3.html2PDF = printURL;
            hh3.fileName = "ProfileResultsPDF";
            hh3.ViewPDF();

            // Destroy the object, so PDFCamp can be called again without refreshing the page
            window.pdfProcessor = null;
        }
        catch (e)
        {
            alert("Cannot create the PDF: " + e.message);
        }
    } // End if
} // End function
</script>
กก