OSDN Git Service

3.15 taka-san version
[nucleus-jp/nucleus-jp-ancient.git] / nucleus / javascript / admin.js
1 function help(url) {\r
2         popup = window.open(url,'helpwindow','status=no,toolbar=yes,scrollbars=yes,resizable=yes,width=500,height=500,top=0,left=0');\r
3         if (popup.focus) popup.focus();\r
4         if (popup.GetAttention) popup.GetAttention();\r
5         return false;\r
6 }                               \r
7 \r
8 var oldCellColor = "#000";\r
9 function focusRow(row) {\r
10         var cells = row.cells;\r
11         if (!cells) return;\r
12         oldCellColor = cells[0].style.backgroundColor;\r
13         for (var i=0;i<cells.length;i++) {\r
14                 cells[i].style.backgroundColor='whitesmoke';\r
15         }\r
16 }\r
17 function blurRow(row) {\r
18         var cells = row.cells;\r
19         if (!cells) return;\r
20         for (var i=0;i<cells.length;i++) {\r
21                 cells[i].style.backgroundColor=oldCellColor;\r
22         }\r
23 }\r
24 function batchSelectAll(what) {\r
25         var i = 0;\r
26         var el;\r
27         while (el = document.getElementById('batch' + i)) {\r
28                 el.checked = what?'checked':'';\r
29                 i++;\r
30         }\r
31         return false;                                   \r
32 }\r
33 \r