		function CommonPopup(url, width, height, toolsInd, wname)
		{
		    var options = "width=" + width + ",height=" + height + ",top=" + ((screen.height - height) / 4).toString() + ",left=" + ((screen.width - width) / 2).toString();
			
		    options += ",toolbar=no,status=no,resizable=no,scrollbars=yes";
		    popupWindow = window.open(url, wname, options);
		
		    if (popupWindow)
		    {
		        popupWindow.focus();
		    }
		    
		    return popupWindow;
		}

		function PrintTovNewsLetter()
            {
                var newsTitle = document.getElementById('lblNewsTitle').innerHTML;
                var newsPosted = document.getElementById('lblNewsPostedDate').innerHTML;
                var newsContent = document.getElementById('lblNewsContent').innerHTML;
                                                                                        
                var w = CommonPopup('about:blank', 740, 800, 1, 'PrintPopup');            

			    var regex;
    			
			    //remove all [img] tag
			    regex = new RegExp('<([i|I]{1}[m|M]{1}[g|G]{1})[^<>]+>', 'g');            
                newsContent = newsContent.replace(regex, '');
                
                //remove all [script] tag
                regex = new RegExp('<([s|S]{1}[c|C]{1}[r|R]{1}[i|I]{1}[p|P]{1}[t|T]{1})[^<>]+>[^<>]*</([s|S]{1}[c|C]{1}[r|R]{1}[i|I]{1}[p|P]{1}[t|T]{1})>', 'g');
                newsContent = newsContent.replace(regex, '');
                
			    w.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">');
                w.document.write('\r\n<html' + '><head' + '><title' + '>Times Means Money Newsletter - ' + newsTitle + ' - Print Preview</' + 'title>');
                w.document.write('<style type="text/css" media="print">  @page rotated {size: landscape} * {page: rotated} </style>');
                w.document.write('</' + 'head><body' + '>');

                w.document.write('<div style="padding: 3px; text-align: left; font-family: verdana; font-size: 10pt;"><a href="#" onclick="self.print(); return false;"><b>Print</b></a> | <a href="javascript: self.close()"><b>Close</b></a></div>');
                w.document.write('<div style="font-size: 14pt;">'+newsPosted+'</div>');
				w.document.write('<div style="font-size: 24pt;">'+newsTitle+'</div>');
                //w.document.write('<div>'+newsPosted+'</div><br/>');
                w.document.write('<div id="divContent">'+newsContent+'</div>'); 

			    w.document.write('</' + 'body></' + 'html>');

			    w.document.close();
            }
