- StrBufAppendBufPlain(
- Target,
- HKEY(
- "<script type=\"text/javascript\"> "
- "var previously_selected_tab = '0'; "
- "function tabsel(which_tab) { "
- " if (which_tab == previously_selected_tab) { "
- " return; "
- " } "
- " $('tabdiv'+previously_selected_tab).style.display = 'none'; "
- " $('tabdiv'+which_tab).style.display = 'block'; "
- " $('tabtd'+previously_selected_tab).className = 'tab_cell_edit'; "
- " $('tabtd'+which_tab).className = 'tab_cell_label'; "
- " previously_selected_tab = which_tab; "
- "} "
- "</script> \n"
- ), 0);
-
- StrBufAppendBufPlain(
- Target,
- HKEY(
- "<table id=\"TheTabs\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"
- "<tr align=\"center\" style=\"cursor:pointer\"><td> </td>"
- ), 0);
-
- for (i=0; i<num_tabs; ++i) {
- StrBufAppendPrintf(
- Target,
- "<td id=\"tabtd%d\" class=\"%s\" "
- "onClick='tabsel(\"%d\");'"
- ">",
- i,
- ( (i==0) ? "tab_cell_label" : "tab_cell_edit" ),
- i
- );
+ StrBufAppendBufPlain(Target,
+ HKEY("<script type=\"text/javascript\"> "
+ "var previously_selected_tab = '0'; "
+ "function tabsel(which_tab) { "
+ " if (which_tab == previously_selected_tab) { "
+ " return; "
+ " } "
+ " $('tabdiv'+previously_selected_tab).style.display = 'none'; "
+ " $('tabdiv'+which_tab).style.display = 'block'; "
+ " $('tabtd'+previously_selected_tab).className = 'tab_cell_edit'; "
+ " $('tabtd'+which_tab).className = 'tab_cell_label'; "
+ " previously_selected_tab = which_tab; "
+ "} "
+ "</script> \n"), 0);
+
+ StrBufAppendBufPlain(Target,
+ HKEY("<table id=\"TheTabs\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"
+ "<tr align=\"center\" style=\"cursor:pointer\"><td> </td>"), 0);
+
+ for (i = 0; i < num_tabs; ++i) {
+ StrBufAppendPrintf(Target,
+ "<td id=\"tabtd%d\" class=\"%s\" "
+ "onClick='tabsel(\"%d\");'" ">", i, ((i == 0) ? "tab_cell_label" : "tab_cell_edit"), i);