function initPrintDialog(time) {
	var now = new Date();
	var limit = now.getSeconds() + time;
	
	while ( now.getSeconds() < limit) { 
		now = new Date();
	}
	print();
}