[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm lonhtmlcommon.pm lonpreferences.pm

www www@source.lon-capa.org
Sat, 25 Apr 2009 16:53:13 -0000


This is a MIME encoded message

--www1240678393
Content-Type: text/plain

www		Sat Apr 25 16:53:13 2009 EDT

  Modified files:              
    /loncom/interface	loncommon.pm lonhtmlcommon.pm lonpreferences.pm 
  Log:
  Formatting the CSS code (make easier to read/debug)
  Success message
  
  
--www1240678393
Content-Type: text/plain
Content-Disposition: attachment; filename="www-20090425165313.txt"

Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.794 loncom/interface/loncommon.pm:1.795
--- loncom/interface/loncommon.pm:1.794	Fri Apr 24 13:02:09 2009
+++ loncom/interface/loncommon.pm	Sat Apr 25 16:53:13 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.794 2009/04/24 13:02:09 www Exp $
+# $Id: loncommon.pm,v 1.795 2009/04/25 16:53:13 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -4547,15 +4547,22 @@
 
 
     return <<END;
-body{
-     font-family: $sans;
-     line-height:130%;
-     font-size:0.83em;
-     color:$font;
-  }
-a:link, a:visited { font-size:100%; }
+body {
+   font-family: $sans;
+   line-height:130%;
+   font-size:0.83em;
+   color:$font;
+}
+
+a:link, a:visited { 
+  font-size:100%; 
+}
+
+a:focus { 
+  color: red;
+  background: yellow 
+}
 
-a:focus { color: red; background: yellow }
 table.thinborder,
 table.thinborder tr th {
   border-style: solid;
@@ -4563,16 +4570,24 @@
   border-color: $lg_border_color;
   background: $tabbg;
 }
+
 table.thinborder tr td {
   border-style: solid;
   border-width: 1px;
   border-color: $lg_border_color;
 }
 
-form, .inline { display: inline; }
+form, .inline { 
+   display: inline; 
+}
 
-.LC_right {text-align:right;}
-.LC_middle {vertical-align:middle;}
+.LC_right {
+   text-align:right;
+}
+
+.LC_middle {
+   vertical-align:middle;
+}
 
 /* just for tests */
 .LC_400Box {width:400px; }
@@ -4595,6 +4610,7 @@
   color: red;
   font-size: larger;
 }
+
 .LC_warning,
 .LC_diff_removed {
   color: red;
@@ -4605,6 +4621,7 @@
 .LC_diff_added {
   color: green;
 }
+
 .LC_unknown {
   color: yellow;
 }
@@ -4618,6 +4635,7 @@
   border: 0px;
   height: 22px;
 }
+
 .LC_docs_spacer {
   width: 25px;
   height: 1px;
@@ -4638,7 +4656,7 @@
    background: $tabbg;
    font-family: $sans;
    border: 0px;
-   margin: 2px;
+   margin: 4px;
 }
 
 .LC_disc_action_left {
@@ -4661,12 +4679,19 @@
    margin: 2px;
 }
 
+.LC_success_confirm {
+   font-family: $sans;
+   color: darkgreen;
+} 
+
 table.LC_pastsubmission {
   border: 1px solid black;
   margin: 2px;
 }
 
-table#LC_top_nav, table#LC_menubuttons,table#LC_nav_location {
+table#LC_top_nav,
+table#LC_menubuttons,
+table#LC_nav_location {
   width: 100%;
   background: $pgbg;
   border: 2px;
@@ -4674,18 +4699,19 @@
   padding: 0px;
 }
 
-table#LC_title_bar, table.LC_breadcrumbs,
+table#LC_title_bar,
+table.LC_breadcrumbs,
 table#LC_title_bar.LC_with_remote {
   width: 100%;
   border-color: $pgbg;
   border-style: solid;
   border-width: $border;
-
   background: $pgbg;
   font-family: $sans;
   border-collapse: collapse;
   padding: 0px;
 }
+
 table.LC_docs_path {
   width: 100%;
   border: 0;
@@ -4698,6 +4724,7 @@
 table#LC_title_bar td {
   background: $tabbg;
 }
+
 table#LC_title_bar .LC_title_bar_who {
   background: $tabbg;
   color: $font;
@@ -4705,22 +4732,27 @@
   text-align: right;
   margin: 0px;
 }
+
 table#LC_title_bar .LC_title_bar_name {
   margin: 0px;
 }
+
 table#LC_title_bar .LC_title_bar_role {
   margin: 0px;
 }
+
 table#LC_title_bar .LC_title_bar_realm {
   margin: 0px;
 }
+
 span.LC_metadata {
-    font-family: $sans;
+  font-family: $sans;
 }
 
 table#LC_menubuttons img{
   border: 0px;
 }
+
 table#LC_top_nav td {
   background: $tabbg;
   border: 0px;
@@ -4728,34 +4760,43 @@
   vertical-align:top;
   padding:2px 5px 2px 5px;
 }
-table#LC_top_nav td a, div#LC_top_nav a {
+
+table#LC_top_nav td a,
+div#LC_top_nav a {
   color: $font;
   font-family: $sans;
 }
+
 table#LC_top_nav td.LC_top_nav_logo {
   background: $tabbg;
   text-align: left;
   white-space: nowrap;
   width: 31px;
 }
+
 table#LC_top_nav td.LC_top_nav_logo img {
   border: 0px;
   vertical-align: bottom;
 }
+
 table#LC_top_nav td.LC_top_nav_exit,
 table#LC_top_nav td.LC_top_nav_help {
   width: 2.0em;
 }
+
 table#LC_top_nav td.LC_top_nav_login {
   width: 4.0em;
   text-align: center;
 }
-table.LC_breadcrumbs td, table.LC_docs_path td  {
+
+table.LC_breadcrumbs td,
+table.LC_docs_path td  {
   background: $tabbg;
   color: $font;
   font-family: $sans;
   font-size: smaller;
 }
+
 table.LC_breadcrumbs td.LC_breadcrumbs_component,
 table.LC_docs_path td.LC_docs_path_component {
   background: $tabbg;
@@ -4764,25 +4805,24 @@
   font-size: larger;
   text-align: right;
 }
+
 td.LC_table_cell_checkbox {
   text-align: center;
 }
+
 table#LC_mainmenu td.LC_mainmenu_column {
     vertical-align: top;
 }
 
-.LC_fontsize_small
-{
+.LC_fontsize_small {
  font-size: 70%;
 }
 
-.LC_fontsize_medium
-{
+.LC_fontsize_medium {
  font-size: 85%;
 }
 
-.LC_fontsize_large
-{
+.LC_fontsize_large {
  font-size: 120%;
 }
 
@@ -4796,7 +4836,7 @@
 .LC_menubuttons_link {
   text-decoration: none;
 }
-/*2008--9-5: new menu style sheet.Changed category*/
+
 .LC_menubuttons_category {
   color: $font;
   background: $pgbg;
@@ -4809,19 +4849,17 @@
  	color: $font;
 }
 
-
-
 .LC_current_location {
   font-family: $sans;
   background: $tabbg;
 }
+
 .LC_new_mail {
   font-family: $sans;
   background: $tabbg;
   font-weight: bold;
 }
 
-
 .LC_dropadd_labeltext {
   font-family: $sans;
   text-align: right;
@@ -4845,57 +4883,71 @@
   border-collapse: collapse;
   border-spacing: 0px;
 }
-table.LC_data_table, table.LC_mail_list {
+
+table.LC_data_table,
+table.LC_mail_list {
   border: 1px solid #000000;
   border-collapse: separate;
   border-spacing: 1px;
   background: $pgbg;
 }
+
 .LC_data_table_dense {
   font-size: small;
 }
+
 table.LC_nested_outer {
   border: 1px solid #000000;
   border-collapse: collapse;
   border-spacing: 0px;
   width: 100%;
 }
+
 table.LC_nested {
   border: 0px;
   border-collapse: collapse;
   border-spacing: 0px;
   width: 100%;
 }
-table.LC_data_table tr th, table.LC_calendar tr th, table.LC_mail_list tr th,
+
+table.LC_data_table tr th, 
+table.LC_calendar tr th, 
+table.LC_mail_list tr th,
 table.LC_prior_tries tr th {
   font-weight: bold;
   background-color: $data_table_head;
   font-size:90%;
 }
+
 table.LC_data_table tr.LC_info_row > td {
   background-color: #CCCCCC;
   font-weight: bold;
   text-align: left;
 }
+
 table.LC_data_table tr.LC_odd_row > td,
 table.LC_pick_box tr > td.LC_odd_row,
 table.LC_aboutme_port tr td {
   background-color: $data_table_light;
   padding: 2px;
 }
+
 table.LC_data_table tr.LC_even_row > td,
 table.LC_pick_box tr > td.LC_even_row,
 table.LC_aboutme_port tr.LC_even_row td {
   background-color: $data_table_dark;
   padding: 2px;
 }
+
 table.LC_data_table tr.LC_data_table_highlight td {
   background-color: $data_table_darker;
 }
+
 table.LC_data_table tr td.LC_leftcol_header {
   background-color: $data_table_head;
   font-weight: bold;
 }
+
 table.LC_data_table tr.LC_empty_row td,
 table.LC_nested tr.LC_empty_row td {
   background-color: #FFFFFF;
@@ -4904,15 +4956,18 @@
   text-align: center;
   padding: 8px;
 }
+
 table.LC_nested tr.LC_empty_row td {
   padding: 4ex
 }
+
 table.LC_nested_outer tr th {
   font-weight: bold;
   background-color: $data_table_head;
   font-size: small;
   border-bottom: 1px solid #000000;
 }
+
 table.LC_nested_outer tr td.LC_subheader {
   background-color: $data_table_head;
   font-weight: bold;
@@ -4920,20 +4975,24 @@
   border-bottom: 1px solid #000000;
   text-align: right;
 }
+
 table.LC_nested tr.LC_info_row td {
   background-color: #CCCCCC;
   font-weight: bold;
   font-size: small;
   text-align: center;
 }
+
 table.LC_nested tr.LC_info_row td.LC_left_item,
 table.LC_nested_outer tr th.LC_left_item {
   text-align: left;
 }
+
 table.LC_nested td {
   background-color: #FFFFFF;
   font-size: small;
 }
+
 table.LC_nested_outer tr th.LC_right_item,
 table.LC_nested tr.LC_info_row td.LC_right_item,
 table.LC_nested tr.LC_odd_row td.LC_right_item,
@@ -4962,44 +5021,58 @@
   border: 1px solid #000000;
   border-collapse: collapse;
 }
+
 table.LC_calendar_pickdate {
   font-size: xx-small;
 }
+
 table.LC_calendar tr td {
   border: 1px solid #000000;
   vertical-align: top;
 }
+
 table.LC_calendar tr td.LC_calendar_day_empty {
   background-color: $data_table_dark;
 }
+
 table.LC_calendar tr td.LC_calendar_day_current {
   background-color: $data_table_highlight;
 }
+
 table.LC_mail_list tr.LC_mail_new {
   background-color: $mail_new;
 }
+
 table.LC_mail_list tr.LC_mail_new:hover {
   background-color: $mail_new_hover;
 }
-table.LC_mail_list tr.LC_mail_even{
+
+table.LC_mail_list tr.LC_mail_even {
 }
-table.LC_mail_list tr.LC_mail_odd{
+
+table.LC_mail_list tr.LC_mail_odd {
 }
+
 table.LC_mail_list tr.LC_mail_read {
   background-color: $mail_read;
 }
+
 table.LC_mail_list tr.LC_mail_read:hover {
   background-color: $mail_read_hover;
 }
+
 table.LC_mail_list tr.LC_mail_replied {
   background-color: $mail_replied;
 }
+
 table.LC_mail_list tr.LC_mail_replied:hover {
   background-color: $mail_replied_hover;
 }
+
 table.LC_mail_list tr.LC_mail_other {
   background-color: $mail_other;
 }
+
 table.LC_mail_list tr.LC_mail_other:hover {
   background-color: $mail_other_hover;
 }
@@ -5008,17 +5081,21 @@
 table.LC_data_table tr > td.LC_browser_file_published {
   background: #CCFF88;
 }
+
 table.LC_data_table tr > td.LC_browser_file_locked,
 table.LC_data_table tr > td.LC_browser_file_unpublished {
   background: #FFAA99;
 }
+
 table.LC_data_table tr > td.LC_browser_file_obsolete {
   background: #AAAAAA;
 }
+
 table.LC_data_table tr > td.LC_browser_file_modified,
 table.LC_data_table tr > td.LC_browser_file_metamodified {
   background: #FFFF77;
 }
+
 table.LC_data_table tr.LC_browser_folder > td {
   background: #CCCCFF;
 }
@@ -5026,18 +5103,23 @@
 table.LC_data_table tr > td.LC_roles_is {
 /*  background: #77FF77; */
 }
+
 table.LC_data_table tr > td.LC_roles_future {
   background: #FFFF77;
 }
+
 table.LC_data_table tr > td.LC_roles_will {
   background: #FFAA77;
 }
+
 table.LC_data_table tr > td.LC_roles_expired {
   background: #FF7777;
 }
+
 table.LC_data_table tr > td.LC_roles_will_not {
   background: #AAFF77;
 }
+
 table.LC_data_table tr > td.LC_roles_selected {
   background: #11CC55;
 }
@@ -5051,41 +5133,51 @@
   font-size: larger;
   font-family: $sans;
 }
+
 span.LC_parm_scope_all {
   color: red;
 }
+
 span.LC_parm_scope_folder {
   color: green;
 }
+
 span.LC_parm_scope_resource {
   color: orange;
 }
+
 span.LC_parm_part {
   color: blue;
 }
+
 span.LC_parm_folder, span.LC_parm_symb {
   font-size: x-small;
   font-family: $mono;
   color: #AAAAAA;
 }
 
-td.LC_parm_overview_level_menu, td.LC_parm_overview_map_menu,
-td.LC_parm_overview_parm_selectors,td.LC_parm_overview_restrictions  {
+td.LC_parm_overview_level_menu,
+td.LC_parm_overview_map_menu,
+td.LC_parm_overview_parm_selectors,
+td.LC_parm_overview_restrictions  {
   border: 1px solid black;
   border-collapse: collapse;
 }
+
 table.LC_parm_overview_restrictions td {
   border-width: 1px 4px 1px 4px;
   border-style: solid;
   border-color: $pgbg;
   text-align: center;
 }
+
 table.LC_parm_overview_restrictions th {
   background: $tabbg;
   border-width: 1px 4px 1px 4px;
   border-style: solid;
   border-color: $pgbg;
 }
+
 table#LC_helpmenu {
   border: 0px;
   height: 55px;
@@ -5096,6 +5188,7 @@
   font-size: larger;
   font-weight: bold;
 }
+
 table#LC_helpmenu_links {
   width: 100%;
   border: 1px solid black;
@@ -5103,6 +5196,7 @@
   padding: 0px;
   border-spacing: 1px;
 }
+
 table#LC_helpmenu_links tr td {
   padding: 1px;
   background: $tabbg;
@@ -5110,11 +5204,13 @@
   font-weight: bold;
 }
 
-table#LC_helpmenu_links a:link, table#LC_helpmenu_links a:visited,
+table#LC_helpmenu_links a:link,
+table#LC_helpmenu_links a:visited,
 table#LC_helpmenu_links a:active {
   text-decoration: none;
   color: $font;
 }
+
 table#LC_helpmenu_links a:hover {
   text-decoration: underline;
   color: $vlink;
@@ -5124,20 +5220,24 @@
   border: 1px solid #339933;
   margin: -1px;
 }
+
 .LC_chrt_popup_up {
   border: 1px solid yellow;
   margin: -1px;
 }
+
 .LC_chrt_popup {
   border: 1px solid #8888FF;
   background: #CCCCFF;
 }
+
 table.LC_pick_box {
   border-collapse: separate;
   background: white;
   border: 1px solid black;
   border-spacing: 1px;
 }
+
 table.LC_pick_box td.LC_pick_box_title {
   background: $tabbg;
   font-weight: bold;
@@ -5146,6 +5246,7 @@
   width: 184px;
   padding: 8px;
 }
+
 table.LC_pick_box td.LC_selfenroll_pick_box_title {
   background: $tabbg;
   font-weight: bold;
@@ -5158,28 +5259,34 @@
   text-align: left;
   padding: 8px;
 }
+
 table.LC_pick_box td.LC_pick_box_select {
   text-align: left;
   padding: 8px;
 }
+
 table.LC_pick_box td.LC_pick_box_separator {
   padding: 0px;
   height: 1px;
   background: black;
 }
+
 table.LC_pick_box td.LC_pick_box_submit {
   text-align: right;
 }
+
 table.LC_pick_box td.LC_evenrow_value {
   text-align: left;
   padding: 8px;
   background-color: $data_table_light;
 }
+
 table.LC_pick_box td.LC_oddrow_value {
   text-align: left;
   padding: 8px;
   background-color: $data_table_light;
 }
+
 table.LC_helpform_receipt {
   width: 620px;
   border-collapse: separate;
@@ -5187,6 +5294,7 @@
   border: 1px solid black;
   border-spacing: 1px;
 }
+
 table.LC_helpform_receipt td.LC_pick_box_title {
   background: $tabbg;
   font-weight: bold;
@@ -5194,48 +5302,58 @@
   width: 184px;
   padding: 8px;
 }
+
 table.LC_helpform_receipt td.LC_evenrow_value {
   text-align: left;
   padding: 8px;
   background-color: $data_table_light;
 }
+
 table.LC_helpform_receipt td.LC_oddrow_value {
   text-align: left;
   padding: 8px;
   background-color: $data_table_light;
 }
+
 table.LC_helpform_receipt td.LC_pick_box_separator {
   padding: 0px;
   height: 1px;
   background: black;
 }
+
 span.LC_helpform_receipt_cat {
   font-weight: bold;
 }
+
 table.LC_group_priv_box {
   background: white;
   border: 1px solid black;
   border-spacing: 1px;
 }
+
 table.LC_group_priv_box td.LC_pick_box_title {
   background: $tabbg;
   font-weight: bold;
   text-align: right;
   width: 184px;
 }
+
 table.LC_group_priv_box td.LC_groups_fixed {
   background: $data_table_light;
   text-align: center;
 }
+
 table.LC_group_priv_box td.LC_groups_optional {
   background: $data_table_dark;
   text-align: center;
 }
+
 table.LC_group_priv_box td.LC_groups_functionality {
   background: $data_table_darker;
   text-align: center;
   font-weight: bold;
 }
+
 table.LC_group_priv td {
   text-align: left;
   padding: 0px;
@@ -5246,12 +5364,15 @@
   border: 1px solid black;
   padding: 8px;
 }
+
 table.LC_notify_front_page td {
   padding: 8px;
 }
+
 .LC_navbuttons {
   margin: 2ex 0ex 2ex 0ex;
 }
+
 .LC_topic_bar {
   font-family: $sans;
   font-weight: bold;
@@ -5260,34 +5381,42 @@
   vertical-align: middle;
   margin: 2ex 0ex 2ex 0ex;
 }
+
 .LC_topic_bar span {
   vertical-align: middle;
 }
+
 .LC_topic_bar img {
   vertical-align: bottom;
 }
+
 table.LC_course_group_status {
   margin: 20px;
 }
+
 table.LC_status_selector td {
   vertical-align: top;
   text-align: center;
   padding: 4px;
 }
+
 table.LC_descriptive_input td.LC_description {
   vertical-align: top;
   text-align: right;
   font-weight: bold;
 }
+
 div.LC_feedback_link {
   clear: both;
   background: white;
   width: 100%;
 }
+
 span.LC_feedback_link {
   background: $feedback_link_bg;
   font-size: larger;
 }
+
 span.LC_message_link {
   background: $feedback_link_bg;
   font-size: larger;
@@ -5306,31 +5435,49 @@
 }
 
 .LC_answer_correct {
-  background: #AAFFAA;
-  color: black;
+  background: lightgreen;
+  font-family: $sans;
+  color: darkgreen;
+  padding: 6px;
 }
+
 .LC_answer_charged_try {
-  background: #FFAAAA ! important;
-  color: black;
+  background: lightred;
+  font-family: $sans;
+  color: darkred;
+  padding: 6px;
 }
+
 .LC_answer_not_charged_try,
 .LC_answer_no_grade,
 .LC_answer_late {
-  background: #FFFFAA;
+  background: lightyellow;
+  font-family: $sans;
   color: black;
+  padding: 6px;
 }
+
 .LC_answer_previous {
-  background: #AAAAFF;
-  color: black;
+  background: lightblue;
+  font-family: $sans;
+  color: darkblue;
+  padding: 6px;
 }
+
 .LC_answer_no_message {
   background: #FFFFFF;
+  font-family: $sans;
   color: black;
+  padding: 6px;
 }
+
 .LC_answer_unknown {
   background: orange;
+  font-family: $sans;
   color: black;
+  padding: 6px;
 }
+
 span.LC_prior_numerical,
 span.LC_prior_string,
 span.LC_prior_custom,
@@ -5349,9 +5496,12 @@
   width: 100%;
   border-collapse: collapse;
 }
-table.LC_prior_rank, table.LC_prior_match {
+
+table.LC_prior_rank, 
+table.LC_prior_match {
   border-collapse: collapse;
 }
+
 table.LC_prior_option tr td,
 table.LC_prior_rank tr td,
 table.LC_prior_match tr td {
@@ -5377,10 +5527,12 @@
   border-width: 0px;
   border-collapse: collapse;
 }
+
 table.LC_docs_documents td.LC_docs_document {
   border: 2px solid black;
   padding: 4px;
 }
+
 .LC_docs_entry_move {
   border: 0px;
   border-collapse: collapse;
@@ -5395,15 +5547,19 @@
   background: #DDDDDD;
   font-size: x-small;
 }
+
 .LC_docs_copy {
   color: #000099;
 }
+
 .LC_docs_cut {
   color: #550044;
 }
+
 .LC_docs_rename {
   color: #009900;
 }
+
 .LC_docs_remove {
   color: #990000;
 }
@@ -5417,6 +5573,7 @@
 .LC_docs_editor td.LC_docs_entry_icon {
   background: #FFFFBB;
 }
+
 .LC_docs_editor td.LC_docs_entry_parameter {
   background: #BBBBFF;
   font-size: x-small;
@@ -5433,6 +5590,7 @@
 table.LC_sty_begin {
   background: #BBFFBB;
 }
+
 table.LC_sty_end {
   background: #FFBBBB;
 }
@@ -5477,17 +5635,18 @@
   clear: both;
 }
 
-
 div.LC_grade_show_user {
   margin-top: 20px;
   border: 1px solid black;
 }
+
 div.LC_grade_user_name {
   background: #DDDDEE;
   border-bottom: 1px solid black;
   font-weight: bold;
   font-size: large;
 }
+
 div.LC_grade_show_user_odd_row div.LC_grade_user_name {
   background: #DDEEDD;
 }
@@ -5501,6 +5660,7 @@
   width: 99%;
   background: #FFFFFF;
 }
+
 div.LC_grade_show_problem_header,
 div.LC_grade_submissions_header,
 div.LC_grade_message_center_header,
@@ -5508,6 +5668,7 @@
   font-weight: bold;
   font-size: large;
 }
+
 div.LC_grade_show_problem_problem,
 div.LC_grade_submissions_body,
 div.LC_grade_message_center_body,
@@ -5516,6 +5677,7 @@
   width: 99%;
   background: #FFFFFF;
 }
+
 span.LC_grade_check_note {
   font-weight: normal;
   font-size: medium;
@@ -5527,16 +5689,19 @@
 table.LC_scantron_action {
   width: 100%;
 }
+
 table.LC_scantron_action tr th {
   font-weight:bold;
   font-style:normal;
 }
+
 .LC_edit_problem_header,
 div.LC_edit_problem_footer {
   font-weight: normal;
   font-size:  medium;
   margin: 2px;
 }
+
 div.LC_edit_problem_header,
 div.LC_edit_problem_header div,
 div.LC_edit_problem_footer,
@@ -5545,17 +5710,20 @@
 div.LC_edit_problem_editxml_header div {
   margin-top: 5px;
 }
+
 div.LC_edit_problem_header_edit_row {
   background: $tabbg;
   padding: 3px;
   margin-bottom: 5px;
 }
+
 div.LC_edit_problem_header_title {
   font-weight: bold;
   font-size: larger;
   background: $tabbg;
   padding: 3px;
 }
+
 table.LC_edit_problem_header_title {
   font-size: larger;
   font-weight:  bold;
@@ -5563,7 +5731,6 @@
   border-color: $pgbg;
   border-style: solid;
   border-width: $border;
-
   background: $tabbg;
   border-collapse: collapse;
   padding: 0px
@@ -5573,10 +5740,12 @@
   float: left;
   padding-bottom: 5px;
 }
+
 div.LC_edit_problem_saves {
   float: right;
   padding-bottom: 5px;
 }
+
 hr.LC_edit_problem_divide {
   clear: both;
   color: $tabbg;
@@ -5584,6 +5753,7 @@
   height: 3px;
   border: 0px;
 }
+
 img.stift{
   border-width:0;
   vertical-align:middle;
@@ -5592,13 +5762,13 @@
 table#LC_mainmenu{
  margin-top:10px;
  width:80%;
-
 }
 
 table#LC_mainmenu td.LC_mainmenu_col_fieldset{
   vertical-align: top;
   width: 45%;
 }
+
 .LC_mainmenu_fieldset_category {
   color: $font;
   background: $pgbg;
@@ -5606,6 +5776,7 @@
   font-size: small;
   font-weight: bold;
 }
+
 div.LC_createcourse {
     margin: 10px 10px 10px 10px;
 }
@@ -5623,7 +5794,7 @@
 ol#LC_PathBreadcrumbs a:hover,
 ul#LC_TabMainMenuContent a:hover,
 .LC_FormSectionClearButton input:hover
-ul.LC_TabContent   li:hover a{
+ul.LC_TabContent   li:hover a {
 	color:#BF2317;
         text-decoration:none;
 }
@@ -5633,18 +5804,19 @@
 	line-height:130%;
 }
 
-h2,h3,h4,h5,h6
-{
+h2,h3,h4,h5,h6 {
 	margin:5px 0px 5px 0px;
 	padding:0px;
 	line-height:130%;
 }
-.LC_hcell{
+
+.LC_hcell {
         padding:3px 15px 3px 15px;
         margin:0px;
 	background-color:$tabbg;
 	border-bottom:solid 1px $lg_border_color;
 }
+
 .LC_noBorder {
         border:0px;
 }
@@ -5679,6 +5851,7 @@
 	margin: 10px 10px 10px 0px;
 	overflow:hidden;
 }
+
 ol.LC_smallMenu, ol#LC_PathBreadcrumbs {
 	margin: 0px;
 }
@@ -5698,7 +5871,9 @@
 	color: RGB(80, 80, 80);
 	text-decoration: none;
 }
-ol#LC_TabMainMenuContent, ul.LC_TabContent ,
+
+ol#LC_TabMainMenuContent, 
+ul.LC_TabContent ,
 ul.LC_TabContentBigger {
 	display:block;
 	list-style:none;
@@ -5706,15 +5881,17 @@
 	padding: 0px;
 }
 
-ol#LC_TabMainMenuContent li, ul.LC_TabContent li,
-ul.LC_TabContentBigger li{
+ol#LC_TabMainMenuContent li,
+ul.LC_TabContent li,
+ul.LC_TabContentBigger li {
 	display: inline;
 	border-right: solid 1px $lg_border_color;
 	float:left;
 	line-height:140%;
 	white-space:nowrap;
 }
-ol#LC_TabMainMenuContent li{
+
+ol#LC_TabMainMenuContent li {
 	vertical-align: bottom;
 	border-bottom: solid 1px RGB(175, 175, 175);
 	padding: 5px 10px 5px 10px;
@@ -5724,32 +5901,37 @@
 	background: url(/adm/lonIcons/lightGreyBG.png) repeat-x left top;
 }
 
-ol#LC_TabMainMenuContent li a{
+ol#LC_TabMainMenuContent li a {
 	color: RGB(47, 47, 47);
 	text-decoration: none;
 }
+
 ul.LC_TabContent {
 	min-height:1.6em;
 }
-ul.LC_TabContent li{
+
+ul.LC_TabContent li {
 	vertical-align:middle;
 	padding:0px 10px 0px 10px;
 	background-color:$tabbg;
 	border-bottom:solid 1px $lg_border_color;
 }
-ul.LC_TabContent li a, ul.LC_TabContent li{
+
+ul.LC_TabContent li a, ul.LC_TabContent li {
 	color:rgb(47,47,47);
 	text-decoration:none;
 	font-size:95%;
 	font-weight:bold;
 	padding-right: 16px;
 }
-ul.LC_TabContent li:hover, ul.LC_TabContent li.active{
+
+ul.LC_TabContent li:hover, ul.LC_TabContent li.active {
         background:#FFFFFF url(/adm/lonIcons/open.gif) no-repeat scroll right center;
 	border-bottom:solid 1px #FFFFFF;
 	padding-right: 16px;
 }
-ul.LC_TabContentBigger li{
+
+ul.LC_TabContentBigger li {
 	vertical-align:bottom;
 	border-top:solid 1px $lg_border_color;
 	border-left:solid 1px $lg_border_color;
@@ -5757,15 +5939,21 @@
 	margin-left:2px;
 	background:url(/adm/lonIcons/lightGreyBG.png) repeat-x left top;
 }
-ul.LC_TabContentBigger li:hover, ul.LC_TabContentBigger li.active{
+
+ul.LC_TabContentBigger li:hover, 
+ul.LC_TabContentBigger li.active {
 	background:url(/adm/lonIcons/lightGreyBG.png) repeat-x right bottom;
 }
-ul.LC_TabContentBigger li, ul.LC_TabContentBigger li a{
+
+ul.LC_TabContentBigger li, 
+ul.LC_TabContentBigger li a {
 	font-size:110%;
 	font-weight:bold;
 }
 
-ol#LC_MenuBreadcrumbs, ol#LC_PathBreadcrumbs, ul.LC_CourseBreadcrumbs{
+ol#LC_MenuBreadcrumbs, 
+ol#LC_PathBreadcrumbs, 
+ul.LC_CourseBreadcrumbs {
 	border-top: solid 1px RGB(255, 255, 255);
 	height: 20px;
 	line-height: 20px;
@@ -5776,7 +5964,9 @@
 	background: url(/adm/lonIcons/lightGreyBG.png) repeat-x left top;
 }
 
-ol#LC_MenuBreadcrumbs li, ol#LC_PathBreadcrumbs li, ul.LC_CourseBreadcrumbs li {
+ol#LC_MenuBreadcrumbs li, 
+ol#LC_PathBreadcrumbs li, 
+ul.LC_CourseBreadcrumbs li {
 /*
 	background: url(/adm/lonIcons/arrow_white.png) no-repeat left center;
 */
@@ -5790,34 +5980,36 @@
 	text-decoration: none;
 	font-size:90%;
 }
-ol#LC_PathBreadcrumbs li a{
+
+ol#LC_PathBreadcrumbs li a {
 	text-decoration:none;
 	font-size:100%;
 	font-weight:bold;
 }
-.LC_BoxPadding
-{
+
+.LC_BoxPadding {
 	padding: 10px;
 }
-.LC_ContentBoxSpecial
-{
+
+.LC_ContentBoxSpecial {
 	border: solid 1px $lg_border_color;
 }
-.LC_ContentBoxSpecialContactInfo
-{
+
+.LC_ContentBoxSpecialContactInfo {
 	border: solid 1px $lg_border_color;
 	max-width:25%;
 	min-width:25%;
 }
-.LC_AboutMe_Image
-{
+
+.LC_AboutMe_Image {
 	float:left;
 	margin-right:10px;
 }
-.LC_Clear_AboutMe_Image
-{
+
+.LC_Clear_AboutMe_Image {
 	clear:left;
 }
+
 dl.LC_ListStyleClean dt {
 	padding-right: 5px;
 	display: table-header-group;
@@ -5831,8 +6023,7 @@
 .LC_ListStyleSimple,
 .LC_ListStyleNormal,
 .LC_ListStyle_Border,
-.LC_ListStyleSpecial
-	{
+.LC_ListStyleSpecial {
 	/*display:block;	*/
 	list-style-position: inside;
 	list-style-type: none;
@@ -5845,8 +6036,7 @@
 .LC_ListStyleNormal li,
 .LC_ListStyleNormal dd,
 .LC_ListStyleSpecial li,
-.LC_ListStyleSpecial dd
-	{
+.LC_ListStyleSpecial dd {
 	margin: 0px;
 	padding: 5px 5px 5px 10px;
 	clear: both;
@@ -5859,7 +6049,7 @@
 }
 
 .LC_ListStyleSimple dd,
-.LC_ListStyleSimple li{
+.LC_ListStyleSimple li {
 	border-bottom: solid 1px $lg_border_color;
 }
 
@@ -5873,13 +6063,14 @@
 table.LC_SimpleTable {
 	margin:5px;
 	border:solid 1px $lg_border_color;
-	}
+}
 
 table.LC_SimpleTable tr {
 	padding:0px;
 	border:solid 1px $lg_border_color;
 }
-table.LC_SimpleTable thead{
+
+table.LC_SimpleTable thead {
 	 background:rgb(220,220,220);
 }
 
@@ -5896,21 +6087,20 @@
 	overflow:hidden;
 }
 
-.ContentBoxSpecialTemplate
-{
+.ContentBoxSpecialTemplate {
         border: solid 1px $lg_border_color;
 }
+
 .ContentBoxTemplate {
         padding:10px;
 }
 
 div.LC_columnSection > .ContentBoxTemplate,
-div.LC_columnSection > .ContentBoxSpecialTemplate
-        {
+div.LC_columnSection > .ContentBoxSpecialTemplate {
         width: 600px;
 }
 
-.clear{
+.clear {
 	clear: both;
 	line-height: 0px;
 	font-size: 0px;
@@ -5936,7 +6126,7 @@
 	background-color:$loginbg;
 }
 
-.LC_loginpage_loginContainer h2{
+.LC_loginpage_loginContainer h2 {
 	margin-top:0;
 	display:block;
 	background:$bgcol;
@@ -5963,12 +6153,13 @@
 	margin: 0;
 }
 
-table em{
+table em {
 	font-weight: bold;
 	font-style: normal;
 }
+
 table.LC_tableBrowseRes,
-table.LC_tableOfContent{
+table.LC_tableOfContent {
         border:none;
 	border-spacing: 1;
 	padding: 3px;
@@ -5991,50 +6182,50 @@
 	background-color: #EEEEEE;
 }
 
-table.LC_tableOfContent img{
+table.LC_tableOfContent img {
 	border: none;
 	height: 1.3em;
 	vertical-align: text-bottom;
 	margin-right: 0.3em;
 }
 
-a#LC_content_toolbar_firsthomework{
+a#LC_content_toolbar_firsthomework {
 	background-image:url(/res/adm/pages/open-first-problem.gif);
 }
 
-a#LC_content_toolbar_launchnav{
+a#LC_content_toolbar_launchnav {
 	background-image:url(/res/adm/pages/start-navigation.gif);
 }
 
-a#LC_content_toolbar_closenav{
+a#LC_content_toolbar_closenav {
 	background-image:url(/res/adm/pages/close-navigation.gif);
 }
 
-a#LC_content_toolbar_everything{
+a#LC_content_toolbar_everything {
 	background-image:url(/res/adm/pages/show-all.gif);
 }
 
-a#LC_content_toolbar_uncompleted{
+a#LC_content_toolbar_uncompleted {
 	background-image:url(/res/adm/pages/show-incomplete-problems.gif);
 }
 
-#LC_content_toolbar_clearbubbles{
+#LC_content_toolbar_clearbubbles {
 	background-image:url(/res/adm/pages/mark-discussionentries-read.gif);
 }
 
-a#LC_content_toolbar_changefolder{
+a#LC_content_toolbar_changefolder {
 	background : url(/res/adm/pages/close-all-folders.gif) top center ;
 }
 
-a#LC_content_toolbar_changefolder_toggled{
+a#LC_content_toolbar_changefolder_toggled {
 	background-image:url(/res/adm/pages/open-all-folders.gif);
 }
 
-ul#LC_toolbar li a:hover{
+ul#LC_toolbar li a:hover {
 	background-position: bottom center;
 }
 
-ul#LC_toolbar{
+ul#LC_toolbar {
 	padding:0;
 	margin: 2px;
 	list-style:none;
@@ -6042,17 +6233,17 @@
 	background-color:white;
 }
 
-ul#LC_toolbar li{
+ul#LC_toolbar li {
 	border:1px solid white;
 	padding:0;
 	margin: 0;
-    float: left;
+        float: left;
 	display:inline;
 	vertical-align:middle;
-}
+} 
 
 
-a.LC_toolbarItem{
+a.LC_toolbarItem {
 	display:block;
 	padding:0;
 	margin:0;
Index: loncom/interface/lonhtmlcommon.pm
diff -u loncom/interface/lonhtmlcommon.pm:1.207 loncom/interface/lonhtmlcommon.pm:1.208
--- loncom/interface/lonhtmlcommon.pm:1.207	Tue Apr  7 15:40:38 2009
+++ loncom/interface/lonhtmlcommon.pm	Sat Apr 25 16:53:13 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common html routines
 #
-# $Id: lonhtmlcommon.pm,v 1.207 2009/04/07 15:40:38 amueller Exp $
+# $Id: lonhtmlcommon.pm,v 1.208 2009/04/25 16:53:13 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -62,6 +62,23 @@
 use Apache::lonnet;
 use LONCAPA;
 
+##############################################
+##############################################
+
+=pod
+
+=item confirm_success
+
+Successful completion of an operation message
+
+=cut
+
+sub confirm_success {
+   my ($message)=@_;
+   return '<span class="LC_success_confirm">'.
+          $message.
+          ' <img src="/adm/lonIcons/navmap.correct.gif" /></span>';
+}
 
 ##############################################
 ##############################################
Index: loncom/interface/lonpreferences.pm
diff -u loncom/interface/lonpreferences.pm:1.151 loncom/interface/lonpreferences.pm:1.152
--- loncom/interface/lonpreferences.pm:1.151	Fri Apr 17 11:12:57 2009
+++ loncom/interface/lonpreferences.pm	Sat Apr 25 16:53:13 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Preferences
 #
-# $Id: lonpreferences.pm,v 1.151 2009/04/17 11:12:57 bisitz Exp $
+# $Id: lonpreferences.pm,v 1.152 2009/04/25 16:53:13 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -135,9 +135,8 @@
     my $newsetting=$env{'form.wysiwyg'};
     &Apache::lonnet::put('environment',{'wysiwygeditor' => $newsetting});
     &Apache::lonnet::appenv({'environment.wysiwygeditor' => $newsetting});
-#   $r->print('<p>'.&mt('Setting WYSIWYG editor to:').' '.&mt($newsetting).'</p>');
-    print_main_menu($r,'<p>'.&mt('Setting WYSIWYG editor to:').' '
-			.&mt($newsetting).'</p>');
+    &print_main_menu($r,'<p>'.&Apache::lonhtmlcommon::confirm_success(&mt('Setting WYSIWYG editor to:').' '
+			.&mt($newsetting)).'</p>');
 }
 
 ################################################################
@@ -187,17 +186,14 @@
     if ($newlanguage) {
         &Apache::lonnet::put('environment',{'languages' => $newlanguage});
         &Apache::lonnet::appenv({'environment.languages' => $newlanguage});
-        $message=&mt('Set new preferred languages to ').'<tt>"'.$newlanguage.'"</tt>.';
+        $message=&Apache::lonhtmlcommon::confirm_success(&mt('Set new preferred languages to ').'<tt>"'.$newlanguage.'"</tt>.');
     } else {
         &Apache::lonnet::del('environment',['languages']);
         &Apache::lonnet::delenv('environment.languages');
-        $message=&mt('Reset preferred language.');
+        $message=&Apache::lonhtmlcommon::confirm_success(&mt('Reset preferred language.'));
     }
     &Apache::loncommon::flush_langs_cache($user,$domain);
-    print_main_menu($r, $message);
-#    $r->print(<<ENDVCSCREEN);
-#$message
-#ENDVCSCREEN
+    &print_main_menu($r, $message);
 }
 
 ################################################################
@@ -304,18 +300,13 @@
     if ($newtexengine) {
         &Apache::lonnet::put('environment',{'texengine' => $newtexengine});
         &Apache::lonnet::appenv({'environment.texengine' => $newtexengine});
-        $message=&mt('Set new preferred math display to ').'<tt>"'.$newtexengine.'"</tt>.';
+        $message=&Apache::lonhtmlcommon::confirm_success(&mt('Set new preferred math display to ').'<tt>"'.$newtexengine.'"</tt>.');
     } else {
         &Apache::lonnet::del('environment',['texengine']);
         &Apache::lonnet::delenv('environment.texengine');
-        $message=&mt('Reset preferred math display.');
+        $message=&Apache::lonhtmlcommon::confirm_success(&mt('Reset preferred math display.'));
     }
-
-
-#    $r->print(<<ENDVCSCREEN);
-#$message
-#ENDVCSCREEN
-    print_main_menu($r, $message);
+    &print_main_menu($r, $message);
 }
 
 ################################################################
@@ -496,11 +487,7 @@
         }
     }
     $message .= "<hr /><br />\n";
-
-#    $r->print(<<ENDRPSCREEN);
-#$message
-#ENDRPSCREEN
-    print_main_menu($r, $message);
+    &print_main_menu($r, $message);
 }
 
 
@@ -553,11 +540,11 @@
     if ($newscreen) {
         &Apache::lonnet::put('environment',{'screenname' => $newscreen});
         &Apache::lonnet::appenv({'environment.screenname' => $newscreen});
-        $message=&mt('Set new screenname to ').'<tt>"'.$newscreen.'."</tt>.';
+        $message=&Apache::lonhtmlcommon::confirm_success(&mt('Set new screenname to ').'<tt>"'.$newscreen.'."</tt>.');
     } else {
         &Apache::lonnet::del('environment',['screenname']);
         &Apache::lonnet::delenv('environment.screenname');
-        $message=&mt('Reset screenname.');
+        $message=&Apache::lonhtmlcommon::confirm_success(&mt('Reset screenname.'));
     }
 # Nickname
     $message.='<br />';
@@ -566,17 +553,14 @@
     if ($newscreen) {
         &Apache::lonnet::put('environment',{'nickname' => $newscreen});
         &Apache::lonnet::appenv({'environment.nickname' => $newscreen});
-        $message.=&mt('Set new nickname to ').'<tt>"'.$newscreen.'"</tt>.';
+        $message.=&Apache::lonhtmlcommon::confirm_success(&mt('Set new nickname to ').'<tt>"'.$newscreen.'"</tt>.');
     } else {
         &Apache::lonnet::del('environment',['nickname']);
         &Apache::lonnet::delenv('environment.nickname');
-        $message.=&mt('Reset nickname.');
+        $message.=&Apache::lonhtmlcommon::confirm_success(&mt('Reset nickname.'));
     }
     &Apache::lonnet::devalidate_cache_new('namescache',$user.':'.$domain);
-#    $r->print(<<ENDVCSCREEN);
-#$message
-#ENDVCSCREEN
-    print_main_menu($r, $message);
+    &print_main_menu($r, $message);
 }
 
 ################################################################
@@ -628,8 +612,7 @@
 
     &Apache::lonnet::put('environment',{'icons' => $newicons});
     &Apache::lonnet::appenv({'environment.icons' => $newicons});
-#    $r->print(&mt('Set menu mode to [_1].',$newicons));
-    print_main_menu($r, &mt('Set menu mode to [_1].',$newicons));
+    &print_main_menu($r, &Apache::lonhtmlcommon::confirm_success(&mt('Set menu mode to [_1].',$newicons)));
 }
 
 ################################################################
@@ -638,7 +621,7 @@
 
 sub clickerchanger {
     my $r = shift;
-    Apache::lonhtmlcommon::add_breadcrumb(
+    &Apache::lonhtmlcommon::add_breadcrumb(
 	    {	href => '/adm/preferences?action=changeclicker',
                 text => 'Register Clicker'});
     $r->print(Apache::loncommon::start_page('Other'));
@@ -677,8 +660,7 @@
     $newclickers=~s/\,$//;
     &Apache::lonnet::put('environment',{'clickers' => $newclickers});
     &Apache::lonnet::appenv({'environment.clickers' => $newclickers});
-#    $r->print(&mt('Registering clickers: [_1]',$newclickers));
-    print_main_menu($r, &mt('Registering clickers: [_1]',$newclickers));
+    &print_main_menu($r, &Apache::lonhtmlcommon::confirm_success(&mt('Registering clickers: [_1]',$newclickers)));
 }
 
 ################################################################
@@ -721,8 +703,7 @@
     if ($env{'form.construction'}) { $domcoord{'domcoord.author'}='blocked'; }
     &Apache::lonnet::put('environment',\%domcoord);
     &Apache::lonnet::appenv({'environment.domcoord.author' => $domcoord{'domcoord.author'}});
-#    $r->print(&mt('Registering Domain Coordinator access restrictions.'));
-    print_main_menu($r, &mt('Registering Domain Coordinator access restrictions.'));
+    &print_main_menu($r,&Apache::lonhtmlcommon::confirm_success(&mt('Registering Domain Coordinator access restrictions.')));
 }
 
 #################################################################
@@ -1184,24 +1165,18 @@
 	if (($color=~/^\#[0-9A-Fa-f]{6}$/) && (!$env{'form.resetall'})) {
 	    &Apache::lonnet::put('environment',{$entry => $color});
 	    &Apache::lonnet::appenv({'environment.'.$entry => $color});
-	    $message.=&mt('Set '.$colortypes{$item}.' to ').'<tt>"'.$color.'"</tt>.<br />';
+	    $message.=&Apache::lonhtmlcommon::confirm_success(&mt('Set '.$colortypes{$item}.' to ').'<tt>"'.$color.'"</tt>').'<br />';
 	} else {
 	    &Apache::lonnet::del('environment',[$entry]);
 	    &Apache::lonnet::delenv('environment.'.$entry);
-	    $message.=&mt('Reset '.$colortypes{$item}.'.').'<br />';
+	    $message.=&Apache::lonhtmlcommon::confirm_success(&mt('Reset '.$colortypes{$item}.'.')).'<br />';
 	}
     }
     my $now = time;
     &Apache::lonnet::put('environment',{'color.timestamp' => $now});
     &Apache::lonnet::appenv({'environment.color.timestamp' => $now});
 
-    print_main_menu($r, $message);
-#    $r->print(<<ENDVCCOL);
-#$message
-#<form name="client" action="/adm/preferences" method="post">
-#<input type="hidden" name="action" value="changecolors" />
-#</form>
-#ENDVCCOL
+    &print_main_menu($r, $message);
 }
 
 ######################################################
@@ -1213,7 +1188,7 @@
     # Passwords are encrypted using londes.js (DES encryption)
     $errormessage = ($errormessage || '');
     my ($user,$domain,$currentpass,$defdom);
-    Apache::lonhtmlcommon::add_breadcrumb(
+    &Apache::lonhtmlcommon::add_breadcrumb(
 		{ href => '/adm/preferences?action=changepass',
                   text => 'Change Password'});
     unless ($caller eq 'reset_by_email') {
@@ -1555,21 +1530,18 @@
     # Inform the user the password has (not?) been changed
     my $message;
     if ($result =~ /^ok$/) {
-        $message = &mt('The password for [_1] was successfully changed.',$user);
+        $message = &Apache::lonhtmlcommon::confirm_success(&mt('The password for [_1] was successfully changed.',$user));
         if ($caller eq 'reset_by_email') {
             $r->print($message.'<br />');
         } else {
             &print_main_menu($r, $message);
         }
-#	$r->print("<h3>".&mt('The password for [_1] was successfully changed',$user)."</h3>");
     } else {
 	# error error: run in circles, scream and shout
         $message = &mt("The password for [_1] was not changed.",$user).' '.&mt('Please make sure your old password was entered correctly.');
         unless ($caller eq 'reset_by_email') {
             &print_main_menu($r, $message);
         }
-#        $r->print("<h3><span class='LC_error'>".&mt("The password for [_1] was not changed",$user)."</span></h3>".
-#                  &mt('Please make sure your old password was entered correctly.'));
         return 1;
     }
     return;
@@ -1699,19 +1671,16 @@
     if (defined($env{'form.discmark'}) ) {
         my $newmark = $env{'form.newmark'};
         if ($newmark eq 'ondisp') {
-           $message.=&mt('In discussions: new posts will be cease to be identified as "NEW" after display.').'<br />';
+            $message.=&Apache::lonhtmlcommon::confirm_success(&mt('In discussions: new posts will be cease to be identified as "NEW" after display.')).'<br />';
             &Apache::lonnet::put('environment',{'discmarkread' => $newmark});
             &Apache::lonnet::appenv({'environment.discmarkread' => $newmark});
         } else {
-            $message.=&mt('In discussions: posts will be identified as "NEW" until marked as read by the reader.').'<br />';
+            $message.=&Apache::lonhtmlcommon::confirm_success(&mt('In discussions: posts will be identified as "NEW" until marked as read by the reader.')).'<br />';
             &Apache::lonnet::del('environment',['discmarkread']);
             &Apache::lonnet::delenv('environment.discmarkread');
         }
     }
-#    $r->print(<<ENDVCSCREEN);
-#$message
-#ENDVCSCREEN
-    print_main_menu($r, $message);
+    &print_main_menu($r, $message);
 }
 
 ################################################################
@@ -1719,7 +1688,7 @@
 ################################################################
 sub coursedisplaychanger {
     my $r = shift;
-    Apache::lonhtmlcommon::add_breadcrumb(
+    &Apache::lonhtmlcommon::add_breadcrumb(
 	    {	href => '/adm/preferences?action=changecourseinit',
                 text => 'Change Course Init. Pref.'});
     $r->print(Apache::loncommon::start_page('Change Course Initialization Preference'));
@@ -1798,11 +1767,7 @@
                         $refpage.'">'.$lt{'dasp'}.'</a></font>';
         }
     }
-#    $r->print(<<ENDVCSCREEN);
-#$message
-#<br /><br />
-#ENDVCSCREEN
-    print_main_menu($r, $message);
+    &print_main_menu($r, &Apache::lonhtmlcommon::confirm_success($message));
 }
 
 sub print_main_menu {

--www1240678393--