
var gAutoPrint = true; 

 function printSpecial(divId)    

 {

        var sOption="toolbar=no,location=no,directories=no,menubar=no,"; 

                sOption+="scrollbars=yes,width=652,height=600"; 

          if (document.getElementById != null)

          {

                var html = '<HTML>\n<head><meta name="msvalidate.01" content="35EF2C41B9124106B97FF7E9A2898E88" />\n';

            if (document.getElementsByTagName != null)

                {

                      var headTags = document.getElementsByTagName("head");

                      if (headTags.length > 0)

                            html += headTags[0].innerHTML;

                }

            

                html += '\n</HE' + 'AD>\n<BODY onLoad="DisableLinks();"><br>\n';

            var printReadyElem = document.getElementById(divId);

            if (printReadyElem != null)

                {

                            html += printReadyElem.innerHTML;

                }

                else

                {

                      alert("Could not find the printReady section in the HTML");

                      return;

                }

                  

                html += '\n</BO' + 'DY>\n</HT' + 'ML>';

            

            var printWin = window.open("","",sOption); 

                printWin.document.open();

                printWin.document.write(html);

                printWin.document.close();

                if (gAutoPrint){

                      printWin.print();

                      // printWin.close();

                  }

          }

          else

          {

                alert("Sorry, the print ready feature is only available in modern browsers.");

          }

}


function DisableLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   var events=anchor.getAttribute("onClick");
   
   if(events==null){
	   var href=anchor.getAttribute("href");
	   anchor.setAttribute('href_bak', href);
	   anchor.removeAttribute('href');
	   anchor.style.color="#173871";
   }

 }
}

