var lpViewAssignmentsDue = new Ext.Window({
	title: 'Due assignments for [weekday], [month] [day]',
	closeAction: 'hide',
	modal: true,
	width: 330,
	height: 225,
	bodyStyle: 'background-color: white;',
	items: [{
		xtype: 'grid',
		id: 'lp_viewdue_grid',
		autoHeight: true,
		border: false,
		autoExpandColumn: 'assignmentName',
		enableColumnHide: false,
		enableColumnMove: false,
		enableColumnResize: false,
		stripeRows: false,
		columns: [{
			xtype: 'gridcolumn',
			header: 'Assignment',
			sortable: true,
			resizable: true,
			width: 100,
			dataIndex: 'assignment',
			id: 'assignmentName'
		}],
		store: new Ext.data.Store({
			url: 'teacher_tools/lessonplans_data.json.php',
			baseParams: {
				command: 'getDueAssignments'
			},
			reader: new Ext.data.JsonReader({
				root: 'assignments'
			}, [{
				name: 'assignment'
			}]),
			autoLoad: false
		})
	}],
	fbar: {
		xtype: 'toolbar',
		items: [{
			xtype: 'button',
			text: 'Close',
			handler: function(btn) {
				this.ownerCt.ownerCt.hide();
			}
		}]
	},
	showWithArgs: function(date) {
		this.setTitle('Due assignments for ' + date.format('l') + ', ' + date.format('F') + ' ' + date.format('d'));
		var grid = this.items.item(0);
		grid.store.baseParams.date = date.format('m/d/Y');
		grid.store.load();
		this.show();
	}
});

