function PopulateGenericPrintingWindow() {
   var PrintFrame;
   // This routine expects the caller to have a DIV named PrintContent
   // and the desination template to have a DIV named Content 
   // which can then be surrounded by all of the formatting you want
   // The original page also needs a hidden IFRAME called 
   // HiddenPrintFrame to receive the focus and print
   this.document.all['Content'].innerHTML = parent.document.all['PrintContent'].innerHTML;
   PrintFrame = parent.frames['adreSubHeader_adrePageTools_HiddenPrintFrame'];
   if (PrintFrame) {
      // IE requires you to set focus first
      PrintFrame.focus();
      PrintFrame.print();
   }
}
function PrintThisPage() 
{ 
   var sOption="toolbar=yes,location=no,directories=yes,menubar=yes,scrollbars=yes"; 
//         sOption+="scrollbars=yes,width=750,height=600,left=100,top=25"; 
   
   var winprint=window.open("PrintTemplate.aspx","Print",sOption); 
 
    winprint.focus(); 
}
function GetPrintContent()
{
    var PrintDiv =  document.getElementById('printcontent');
    var ContentDiv =  window.opener.document.getElementById('printcontent');
    PrintDiv.innerHTML = ContentDiv.innerHTML;
}
function printpage() {
window.print();  
}