forked from yuezhongxin/MessageManager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlib.js
More file actions
46 lines (37 loc) · 1.16 KB
/
Copy pathlib.js
File metadata and controls
46 lines (37 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
function getObj(objId) {
return document.all ? document.all[objId] : document.getElementById(objId);
}
function newWin(url,width,height)
{
window.open (url, "_blank", "height="+ height +", width="+ width +", toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no, top="+(screen.availHeight-height)/2+", left="+(screen.availWidth-width)/2);
}
function OpenWin(url)
{
window.open (url, "_blank", "height=200, width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no");
}
function CloseWin()
{
window.close();
}
function ctlent(eventobject)
{
if(event.ctrlKey && window.event.keyCode==13)
this.document.myform.submit();
}
//Ñ¡Ôñ
function SelectAllItems() {
var selAll = document.getElementById("chkSelAll");
var selItems = $("input[name=chkID]");
if (selAll.checked) {
if (selItems != null)
for (i = 0; i < selItems.length; i++) {
if (!selItems[i].disabled)
selItems[i].checked = true;
}
}
else {
if (selItems != null)
for (i = 0; i < selItems.length; i++)
selItems[i].checked = false;
}
}