﻿function PrintVersion() 
{
    var sURL=document.location.href;
    if (sURL.indexOf('?') > 0)
    {
        sURL=document.location+"&PrintVersion";
    }
    else
    {
        sURL=document.location+"?PrintVersion";
     }
                
   window.open(sURL);

}
 
//Hiding styles in preview mode
if (document.location.href.indexOf('PrintVersion') > 0)
{
   document.write('<style>');
   document.write('.ms-globallinks,.printVersionHide,.smallblack,.smallorange,.smallteal,.footerstyle,.breadcrumb,.jm-toolbar,.ms-navframe,.ms-bannerframe,.ms-sbtable,.ms-searchform,.ms-sbtopcorner,.ms-sblbcorner,.topNav,.leftNav,.topNavContainer,.topArea,.ms-globalbreadcrumb,.ms-pagemargin,.ms-bodyareapagemargin,.ms-pagetitle { display: none; } ');
   document.write('div.ms-titleareaframe { border-top: 0px white solid; } ');
   document.write('</style>');
     
//   var browser=navigator.appName;  
//   if (browser == "Netscape" || browser == "Microsoft Internet Explorer")
//   {
//	 print();
//   }
}
