var myWindow;
var globalPrintContentDIV;
function printVersion(printContentDIV) {
 
                var popwidth = (document.getElementById('rightContentPane'))?750:950;
                                                                var LeftPosition = (screen.width) ? (screen.width-popwidth)/2 : 0;
                                                                var TopPosition = (screen.height) ? (screen.height-600)/2 : 0;
				globalPrintContentDIV=printContentDIV;
                myWindow=window.open(dummyHtmlPath, "PopUpWindow",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,top='+TopPosition+',left='+LeftPosition+',width='+popwidth+',height=600' );
                                 
}
 
/*print script */
function PrintContents() {            
                 printedDiv=document.getElementById(globalPrintContentDIV);      
                 
	     /* This inserts a Print button onto the print preview page.  We may or may not use this. */
    var  printContents="<div class='printPopHead'><a href='#' onclick='window.print()' class='popPrintLink'>Print</a></div>";
	/* Adding header to Overlay print content*/
		if(globalPrintContentDIV.match("webFormOverlayCnt")){
		printContents+=document.getElementById("masthead").innerHTML;
		}
		
     printContents+=printedDiv.innerHTML;
                 printContents+="<br/>";
                 /* Uncomment the line below to display Parent Page URL in the Print Preview Window*/
                 /* printContents+="<div class='pgURL'>"+window.location+"</div>" */
                 /* This sets the conents of the popup window to the html that was copied from the parent. */
     myWindow.document.body.innerHTML=printContents;
                 var aPrint = myWindow.document.body.getElementsByTagName('a'); 
                 for(l=0;l<aPrint.length;l++) {      
                                if(aPrint[l].className != 'popPrintLink') {
                                                aPrint[l].removeAttribute('href');
                                                aPrint[l].style.cursor = 'text';
                                                aPrint[l].style.color = '#000';
                                                
                                }
                 }
}