private boolean doSaveBeforeOpenOrNew(){
		LogoDocument program = getProgram();
		if (program.isDirty()){
			int option = JOptionPane.showConfirmDialog(this, "Hay cosas sin guardar, desea guardar ahora?", "Atencion", JOptionPane.YES_NO_CANCEL_OPTION);

			if (option == JOptionPane.CANCEL_OPTION){
				return false;
			} else if (option == JOptionPane.YES_OPTION){
				saveProgram();
			} 
		} 
		return true;
	}