1 rizwank 1.1 function makeWin2(url) { // pop up window for <autocard> tag
2
3 agent = navigator.userAgent;
4 windowName = "Sitelet";
5
6 params = "";
7 params += "toolbar=0,";
8 params += "location=0,";
9 params += "directories=0,";
10 params += "status=0,";
11 params += "menubar=0,";
12 params += "scrollbars=0,";
13 params += "resizable=0,";
14 params += "width=220,";
15 params += "height=310";
16
17 win = window.open(url, windowName , params);
18
19 if (agent.indexOf("Mozilla/2") != -1 &&
20 agent.indexOf("Win") == -1) {
21 win = window.open(url, windowName , params);
22 rizwank 1.1 }
23
24 if (!win.opener) {
25 win.opener = window;
26 }
27
28 }
29
30 function autoCardWindow(cardname) { // pop up window for <autocard> tag - with drop shadows
31
32 agent = navigator.userAgent;
33 windowName = "Sitelet";
34
35 params = "";
36 params += "toolbar=0,";
37 params += "location=0,";
38 params += "directories=0,";
39 params += "status=0,";
40 params += "menubar=0,";
41 params += "scrollbars=0,";
42 params += "resizable=0,";
43 rizwank 1.1 params += "width=445,";
44 params += "height=470";
45
46 win = window.open("http://www.wizards.com/magic/autocard.asp?name="+cardname, windowName , params);
47
48 if (!win.opener) {
49 win.opener = window;
50 }
51
52 }
|