
	function printTodoList(arg) {
	
		//alert(arg);

		var arLen = arg.length;
		var strBuild = '';
		
		strBuild += '<div style="font-family:verdana; font-size:10px;">';
		
		strBuild += '<div>&nbsp;</div>';
		strBuild += '<div>&nbsp;</div>';
		strBuild += '<div><img src="images/index_aeplogo.jpg" width="215" height="102" border="0" /></div>';
		strBuild += '<div>&nbsp;</div>';
		
		strBuild += '<table cellpadding="2" cellspacing="0" border="0">';

		strBuild += '<tr>';
		strBuild += '<td>&nbsp;</td>';
		strBuild += '<td><b>Task</b></td>';
		//strBuild += '<td><b>Savings per year</b></td>';
		//strBuild += '<td><b>Carbon reduction per year</b></td>';
		strBuild += '<td><b>Effort</b></td>';
		strBuild += '</tr>';

		
		for ( var i=0, len = arLen; i<len; ++i ){
		  	
			strBuild += '<tr>';
			strBuild += '<td>' + (i + 1) + '</td>';
			strBuild += '<td>' + arg[i].task + '</td>';
			//strBuild += '<td>$' + arg[i].savings + '</td>';
			//strBuild += '<td>' + arg[i].carbon_reduction + '%</td>';
			strBuild += '<td>' + arg[i].effort + '</td>';
			strBuild += '</tr>';
			
		}

		strBuild += '</table>';

		strBuild += '<div>&nbsp;</div>';
		strBuild += '<div>www.gridsmartohio.com</div>';
		strBuild += '<div>&nbsp;</div>';

		strBuild += '</div>';

		// SET HTML FOR PRINTABLE		
		//document.getElementById("printable").innerHTML = strBuild;
		
		// SEND PRINTABLE TO PRINTER
		//window.print();
		
		// SEND PRINTABLE TO A NEW WINDOW
		createTodoListWindow(strBuild);

	}

	
	function createTodoListWindow(theHtml) {
		
		var todowin = window.open("","todowin","width=800,height=550,scrollbars=1,resizable=1");

		todowin.document.open();
		todowin.document.write('<html><head><title>Your To-Do List</title>');
		todowin.document.write('<style>');
		todowin.document.write(' @media print { .noprint { display:none; } } ');
		todowin.document.write(' body,td,div,p { font-size:11px; } ');
		todowin.document.write(' body { background-color:#FFFFFF; } ');
		todowin.document.write(' table, td { border: 1px solid #000000; } ');
		todowin.document.write('</style>');
		todowin.document.write('</head>');
		todowin.document.write('<body>');
		todowin.document.write(theHtml);
		todowin.document.write('<div>&nbsp;</div>');
		todowin.document.write('<div><input type="button" value="Print" class="noprint" onclick="javascript:window.print();" />&nbsp;<input type="button" value="Close" class="noprint" onclick="javascript:window.close();" /></div>');
		todowin.document.write('</body></html>');
		todowin.document.close();
		
	}

