﻿	
function printDoc(str)
{
    var prtContent = document.getElementById(str);
    var prtFooter = document.getElementById("footerText");
    var breadCrumb = document.getElementById("desig");
    var d = new Date();
    var WinPrint = window.open('','','letf=0,top=0,width=0,height=0,toolbar=0,scrollbars=0,status=0');
    WinPrint.document.write('<html><body>'); 
    WinPrint.document.write("<style>.searchItemHeader{display:none;}body{font-family:arial;font-size:76%;}table{font-size:1.1em;}</style>");
    WinPrint.document.write('<table width=100%><tr><td><h3>'+ breadCrumb.innerHTML + '</h3></td>');
    WinPrint.document.write("<td align='right'><img src='../NASD_Framework/Global_Resources/MasterPages/nasd/images/NASDW_002977.gif' id='imgLogo' /></td></tr></table>");
    //Business Owner is going to take care of it in the disclaimer in SharePoint.
    //WinPrint.document.write('<b><font color="red">'+ coname +' does NOT approve or endorse any professional designation.</font></b><br><br>');
    WinPrint.document.write(prtContent.innerHTML);
    WinPrint.document.write(prtFooter.innerHTML); 
    WinPrint.document.write('&#169;' + d.getFullYear() + ' ' + coname + ' . All rights reserved.'); 
    WinPrint.document.write('</body></html>');          
    WinPrint.document.close();
    WinPrint.focus();
    WinPrint.print();
    WinPrint.close();
    return false;
}
function ValidateText()
{
    if (document.getElementById("ctl00_ContentPlaceHolder1_WDDTPage1_txtSearch").value == "" || 
        document.getElementById("ctl00_ContentPlaceHolder1_WDDTPage1_txtSearch").value == "Please enter a keyword")
    {
        document.getElementById("txtSearchValidator").style.display = "inline";
        return false;
    }
}

