-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebscript.js
More file actions
28 lines (27 loc) · 974 Bytes
/
Copy pathwebscript.js
File metadata and controls
28 lines (27 loc) · 974 Bytes
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
<!-- Version 2 17/10/2018 -->
var Main
var fromleft;
function initialize(mainoffset)
{
var w=window,d=document,e=d.documentElement,g=d.getElementsByTagName('body')[0];
x=w.innerWidth; //||e.clientWidth||g.clientWidth;
y=w.innerHeight; //||e.clientHeight||g.clientHeight;
Main = document.getElementById("main");
w = x;
if (w > 920) {w = 920;}
fromleft = (x / 2) - (x - 150)/2;
if (fromleft < 0) {fromleft = 0;}
Main.style.left = fromleft + "px";
Main.style.width = x - 150 + "px";
Main.style.height = y - mainoffset + "px";
}
function newmsg(Key)
{
var param = "toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,titlebar=yes,toobar=yes";
window.open("/WebMail/NewMsg?" + Key,"_self",param);
}
function Reply(Num, Key)
{
var param = "toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,titlebar=yes,toobar=yes";
window.open("/WebMail/Reply/" + Num + "?" + Key,"_self",param);
}