No regular expressions were active.
1 |
|
/*********
**********
**********
**********
**********
**********
**********
******
|
|
1 |
|
/*********
**********
**********
**********
**********
**********
**********
******
|
2 |
|
*
Dolphin We
b Communit
y Software
|
|
2 |
|
*
Dolphin We
b Communit
y Software
|
3 |
|
*
--------
----------
-
|
|
3 |
|
*
--------
----------
-
|
4 |
|
* beg
in
:
Mon Mar 23
2006
|
|
4 |
|
* beg
in
:
Mon Mar 23
2006
|
5 |
|
* cop
yright
:
(C) 2007 B
oonEx Grou
p
|
|
5 |
|
* cop
yright
:
(C) 2007 B
oonEx Grou
p
|
6 |
|
* web
site
:
http://www
.boonex.co
m
|
|
6 |
|
* web
site
:
http://www
.boonex.co
m
|
7 |
|
*
|
|
7 |
|
*
|
8 |
|
*
|
|
8 |
|
*
|
9 |
|
*
|
|
9 |
|
*
|
10 |
|
*********
**********
**********
**********
**********
**********
**********
*******/
|
|
10 |
|
*********
**********
**********
**********
**********
**********
**********
*******/
|
11 |
|
|
|
11 |
|
|
12 |
|
/*********
**********
**********
**********
**********
**********
**********
******
|
|
12 |
|
/*********
**********
**********
**********
**********
**********
**********
******
|
13 |
|
*
|
|
13 |
|
*
|
14 |
|
* This
is a free
software;
you can mo
dify it un
der the te
rms of Boo
nEx
|
|
14 |
|
* This
is a free
software;
you can mo
dify it un
der the te
rms of Boo
nEx
|
15 |
|
* Produ
ct License
Agreement
published
on BoonEx
site at h
ttp://www.
boonex.com
/downloads
/license.p
df
|
|
15 |
|
* Produ
ct License
Agreement
published
on BoonEx
site at h
ttp://www.
boonex.com
/downloads
/license.p
df
|
16 |
|
* You m
ay not how
ever distr
ibute it f
or free or
/and a fee
.
|
|
16 |
|
* You m
ay not how
ever distr
ibute it f
or free or
/and a fee
.
|
17 |
|
* This
notice may
not be re
moved from
the sourc
e code. Yo
u may not
also remov
e any othe
r visible
|
|
17 |
|
* This
notice may
not be re
moved from
the sourc
e code. Yo
u may not
also remov
e any othe
r visible
|
18 |
|
* refer
ence and l
inks to Bo
onEx Group
as provid
ed in sour
ce code.
|
|
18 |
|
* refer
ence and l
inks to Bo
onEx Group
as provid
ed in sour
ce code.
|
19 |
|
*
|
|
19 |
|
*
|
20 |
|
*********
**********
**********
**********
**********
**********
**********
******/
|
|
20 |
|
*********
**********
**********
**********
**********
**********
**********
******/
|
21 |
|
|
|
21 |
|
|
22 |
|
/**
|
|
22 |
|
/**
|
23 |
|
* Checks/
unchecks a
ll tables
|
|
23 |
|
* Checks/
unchecks a
ll tables
|
24 |
|
*
|
|
24 |
|
*
|
25 |
|
* @param
string
the form
name
|
|
25 |
|
* @param
string
the form
name
|
26 |
|
* @param
boolean
whether t
o check or
to unchec
k the elem
ent
|
|
26 |
|
* @param
boolean
whether t
o check or
to unchec
k the elem
ent
|
27 |
|
*
|
|
27 |
|
*
|
28 |
|
* @return
boolean
always tr
ue
|
|
28 |
|
* @return
boolean
always tr
ue
|
29 |
|
*/
|
|
29 |
|
*/
|
30 |
|
function s
etCheckbox
es(the_for
m, do_chec
k)
|
|
30 |
|
function s
etCheckbox
es(the_for
m, do_chec
k)
|
31 |
|
{
|
|
31 |
|
{
|
32 |
|
var el
ts = docu
ment.forms
[the_form]
.getElemen
tsByTagNam
e('input')
;
|
|
32 |
|
var el
ts = docu
ment.forms
[the_form]
.getElemen
tsByTagNam
e('input')
;
|
33 |
|
var el
ts_cnt =
elts.lengt
h;
|
|
33 |
|
var el
ts_cnt =
elts.lengt
h;
|
34 |
|
|
|
34 |
|
|
35 |
|
for (
i = 0; i <
elts_cnt;
i++)
|
|
35 |
|
for (
i = 0; i <
elts_cnt;
i++)
|
36 |
|
{
|
|
36 |
|
{
|
37 |
|
el
ts[i].chec
ked = do_c
heck;
|
|
37 |
|
el
ts[i].chec
ked = do_c
heck;
|
38 |
|
if
( elts[i]
.type == "
submit" )
|
|
38 |
|
if
( elts[i]
.type == "
submit" )
|
39 |
|
elts[i].
disabled =
!do_check
;
|
|
39 |
|
elts[i].
disabled =
!do_check
;
|
40 |
|
}
|
|
40 |
|
}
|
41 |
|
}
|
|
41 |
|
}
|
42 |
|
|
|
42 |
|
|
43 |
|
function U
pdateSubmi
t(the_form
) {
|
|
43 |
|
function U
pdateSubmi
t(the_form
) {
|
44 |
|
var el
ts = docu
ment.forms
[the_form]
.getElemen
tsByTagNam
e('input')
;
|
|
44 |
|
var el
ts = docu
ment.forms
[the_form]
.getElemen
tsByTagNam
e('input')
;
|
45 |
|
var el
ts_cnt =
elts.lengt
h;
|
|
45 |
|
var el
ts_cnt =
elts.lengt
h;
|
46 |
|
var bC
hecked = f
alse;
|
|
46 |
|
var bC
hecked = f
alse;
|
47 |
|
|
|
47 |
|
|
48 |
|
for (
i = 0; i <
elts_cnt;
i++) {
|
|
48 |
|
for (
i = 0; i <
elts_cnt;
i++) {
|
49 |
|
if
(elts[i].
type == "c
heckbox" &
& elts[i].
checked ==
true) {
|
|
49 |
|
if
(elts[i].
type == "c
heckbox" &
& elts[i].
checked ==
true) {
|
50 |
|
bChecked
= true;
|
|
50 |
|
bChecked
= true;
|
51 |
|
}
|
|
51 |
|
}
|
52 |
|
if
( elts[i]
.type == "
submit" )
{
|
|
52 |
|
if
( elts[i]
.type == "
submit" )
{
|
53 |
|
elts[i].
disabled =
true;
|
|
53 |
|
elts[i].
disabled =
true;
|
54 |
|
}
|
|
54 |
|
}
|
55 |
|
}
|
|
55 |
|
}
|
56 |
|
for (
i = 0; i <
elts_cnt;
i++) {
|
|
56 |
|
for (
i = 0; i <
elts_cnt;
i++) {
|
57 |
|
if
( elts[i]
.type == "
submit" )
{
|
|
57 |
|
if
( elts[i]
.type == "
submit" )
{
|
58 |
|
if (bChe
cked == tr
ue) {
|
|
58 |
|
if (bChe
cked == tr
ue) {
|
59 |
|
elts
[i].disabl
ed = false
;
|
|
59 |
|
elts
[i].disabl
ed = false
;
|
60 |
|
} else {
|
|
60 |
|
} else {
|
61 |
|
elts
[i].disabl
ed = true;
|
|
61 |
|
elts
[i].disabl
ed = true;
|
62 |
|
}
|
|
62 |
|
}
|
63 |
|
}
|
|
63 |
|
}
|
64 |
|
}
|
|
64 |
|
}
|
65 |
|
}
|
|
65 |
|
}
|
66 |
|
|
|
66 |
|
|
67 |
|
function s
etCheckbox
(the_form)
|
|
67 |
|
function s
etCheckbox
(the_form)
|
68 |
|
{
|
|
68 |
|
{
|
69 |
|
var el
ts =
document.f
orms[the_f
orm].getEl
ementsByTa
gName('inp
ut');
|
|
69 |
|
var el
ts =
document.f
orms[the_f
orm].getEl
ementsByTa
gName('inp
ut');
|
70 |
|
var el
ts_cnt =
elts.lengt
h;
|
|
70 |
|
var el
ts_cnt =
elts.lengt
h;
|
71 |
|
|
|
71 |
|
|
72 |
|
var al
lUnchecked
= true;
|
|
72 |
|
var al
lUnchecked
= true;
|
73 |
|
|
|
73 |
|
|
74 |
|
for (v
ar i = 0;
i < elts_c
nt; i++)
|
|
74 |
|
for (v
ar i = 0;
i < elts_c
nt; i++)
|
75 |
|
if
(elts[i].c
hecked)
|
|
75 |
|
if
(elts[i].c
hecked)
|
76 |
|
allUnche
cked = fal
se;
|
|
76 |
|
allUnche
cked = fal
se;
|
77 |
|
|
|
77 |
|
|
78 |
|
for (v
ar i = 0;
i < elts_c
nt; i++)
|
|
78 |
|
for (v
ar i = 0;
i < elts_c
nt; i++)
|
79 |
|
if
( elts[i].
type == "s
ubmit" )
|
|
79 |
|
if
( elts[i].
type == "s
ubmit" )
|
80 |
|
elts[i].
disabled =
allUnchec
ked;
|
|
80 |
|
elts[i].
disabled =
allUnchec
ked;
|
81 |
|
}
|
|
81 |
|
}
|
82 |
|
|
|
82 |
|
|
83 |
|
|
|
83 |
|
|
84 |
|
var
win
=
"
width=500,
height=600
,left=100,
top=100,co
pyhistory=
no,directo
ries=no,me
nubar=no,l
ocation=no
,resizable
=no,scroll
bars=yes
"
;
|
|
84 |
|
var
win
=
'
width=500,
height=600
,left=100,
top=100,co
pyhistory=
no,directo
ries=no,me
nubar=no,l
ocation=no
,resizable
=no,scroll
bars=yes
'
;
|
85 |
|
function
get_galler
y(id_prof)
|
|
85 |
|
|
86 |
|
{
|
|
86 |
|
function
get_galler
y(
id_prof
)
{
|
87 |
|
window.ope
n(
"
photos_gal
lery.php?I
D=
"
+id_prof,'
gallery',w
in);
|
|
87 |
|
window.ope
n(
'
photos_gal
lery.php?I
D=
'
+id_prof,'
gallery',w
in);
|
88 |
|
}
|
|
88 |
|
}
|
89 |
|
|
|
89 |
|
|
90 |
|
function
launchTell
Friend
()
|
|
90 |
|
function
launchTell
Friend()
{
|
91 |
|
{
|
|
91 |
|
var
win
=
'
width=300,
height=300
,left=200,
top=100,co
pyhistory=
no,directo
ries=no,me
nubar=no,l
ocation=no
,resizable
=no,scroll
bars=no
'
;
|
92 |
|
var
win
=
"
width=300,
height=300
,left=200,
top=100,co
pyhistory=
no,directo
ries=no,me
nubar=no,l
ocation=no
,resizable
=no,scroll
bars=no
"
;
|
|
92 |
|
return
!
window.ope
n(
'
tellfriend
.php
'
,'tellfrie
nd',win);
|
93 |
|
window.ope
n(
"
tellfriend
.php
"
,'tellfrie
nd',win);
|
|
|
94 |
|
return
false;
|
|
|
95 |
|
}
|
|
93 |
|
}
|
96 |
|
|
|
94 |
|
|
97 |
|
function
launchTell
FriendProf
ile
(
sID
)
|
|
95 |
|
function
launchTell
FriendProf
ile(
sID
)
{
|
98 |
|
{
|
|
|
99 |
|
var wi
n = "width
=300,heigh
t=300,left
=200,top=1
00,copyhis
tory=no,di
rectories=
no,menubar
=no,locati
on=no,resi
zable=no,s
crollbars=
no";
|
|
96 |
|
var wi
n = "width
=300,heigh
t=300,left
=200,top=1
00,copyhis
tory=no,di
rectories=
no,menubar
=no,locati
on=no,resi
zable=no,s
crollbars=
no";
|
100 |
|
window.ope
n(
"
tellfriend
.php?ID=
"
+sID,'tell
friendprof
ile',win);
|
|
97 |
|
return
!
window.ope
n(
'
tellfriend
.php?ID=
'
+sID,'tell
friendprof
ile',win);
|
101 |
|
return
false;
|
|
|
102 |
|
}
|
|
98 |
|
}
|
103 |
|
|
|
99 |
|
|
104 |
|
function B
xShowBlock
( id )
|
|
100 |
|
function B
xShowBlock
( id )
|
105 |
|
{
|
|
101 |
|
{
|
106 |
|
|
|
102 |
|
|
107 |
|
var el
;
|
|
103 |
|
var el
;
|
108 |
|
el = d
ocument.ge
tElementBy
Id( id );
|
|
104 |
|
el = d
ocument.ge
tElementBy
Id( id );
|
109 |
|
|
|
105 |
|
|
110 |
|
if( el
.style.dis
play == 'n
one' )
|
|
106 |
|
if( el
.style.dis
play == 'n
one' )
|
111 |
|
{
|
|
107 |
|
{
|
112 |
|
el
.style.dis
play = 'bl
ock'
|
|
108 |
|
el
.style.dis
play = 'bl
ock'
|
113 |
|
}
|
|
109 |
|
}
|
114 |
|
else
|
|
110 |
|
else
|
115 |
|
{
|
|
111 |
|
{
|
116 |
|
el
.style.dis
play = 'no
ne'
|
|
112 |
|
el
.style.dis
play = 'no
ne'
|
117 |
|
}
|
|
113 |
|
}
|
118 |
|
|
|
114 |
|
|
119 |
|
return
false;
|
|
115 |
|
return
false;
|
120 |
|
}
|
|
116 |
|
}
|
121 |
|
|
|
117 |
|
|
122 |
|
function S
howShowHid
e ( show_n
ame, show_
name2, hid
e_name )
|
|
118 |
|
function S
howShowHid
e ( show_n
ame, show_
name2, hid
e_name )
|
123 |
|
{
|
|
119 |
|
{
|
124 |
|
if (hi
de_name) h
ide_name.s
tyle.displ
ay = 'none
';
|
|
120 |
|
if (hi
de_name) h
ide_name.s
tyle.displ
ay = 'none
';
|
125 |
|
if (sh
ow_name) s
how_name.s
tyle.displ
ay = 'inli
ne';
|
|
121 |
|
if (sh
ow_name) s
how_name.s
tyle.displ
ay = 'inli
ne';
|
126 |
|
if (sh
ow_name2)
show_name2
.style.dis
play = 'in
line';
|
|
122 |
|
if (sh
ow_name2)
show_name2
.style.dis
play = 'in
line';
|
127 |
|
}
|
|
123 |
|
}
|
128 |
|
|
|
124 |
|
|
129 |
|
function S
howHideHid
e ( show_n
ame, hide_
name, hide
_name2 )
|
|
125 |
|
function S
howHideHid
e ( show_n
ame, hide_
name, hide
_name2 )
|
130 |
|
{
|
|
126 |
|
{
|
131 |
|
if (hi
de_name) h
ide_name.s
tyle.displ
ay = 'none
';
|
|
127 |
|
if (hi
de_name) h
ide_name.s
tyle.displ
ay = 'none
';
|
132 |
|
if (hi
de_name2)
hide_name2
.style.dis
play = 'no
ne';
|
|
128 |
|
if (hi
de_name2)
hide_name2
.style.dis
play = 'no
ne';
|
133 |
|
if (sh
ow_name) s
how_name.s
tyle.displ
ay = 'inli
ne';
|
|
129 |
|
if (sh
ow_name) s
how_name.s
tyle.displ
ay = 'inli
ne';
|
134 |
|
}
|
|
130 |
|
}
|
135 |
|
|
|
131 |
|
|
136 |
|
function c
harCounter
(field,max
Length,cou
ntTarget)
|
|
132 |
|
function c
harCounter
(field,max
Length,cou
ntTarget)
|
137 |
|
{
|
|
133 |
|
{
|
138 |
|
|
|
134 |
|
|
139 |
|
field
= document
.getElemen
tById(fiel
d);
|
|
135 |
|
field
= document
.getElemen
tById(fiel
d);
|
140 |
|
countT
arget = do
cument.get
ElementByI
d(countTar
get);
|
|
136 |
|
countT
arget = do
cument.get
ElementByI
d(countTar
get);
|
141 |
|
var in
putLength=
field.valu
e.length;
|
|
137 |
|
var in
putLength=
field.valu
e.length;
|
142 |
|
|
|
138 |
|
|
143 |
|
if(inp
utLength >
= maxLengt
h)
|
|
139 |
|
if(inp
utLength >
= maxLengt
h)
|
144 |
|
{
|
|
140 |
|
{
|
145 |
|
fi
eld.value=
field.valu
e.substrin
g(0,maxLen
gth);
|
|
141 |
|
fi
eld.value=
field.valu
e.substrin
g(0,maxLen
gth);
|
146 |
|
|
|
142 |
|
|
147 |
|
}
|
|
143 |
|
}
|
148 |
|
countT
arget.inne
rHTML=maxL
ength-fiel
d.value.le
ngth;
|
|
144 |
|
countT
arget.inne
rHTML=maxL
ength-fiel
d.value.le
ngth;
|
149 |
|
|
|
145 |
|
|
150 |
|
|
|
146 |
|
|
151 |
|
}
|
|
147 |
|
}
|
152 |
|
|
|
148 |
|
|
153 |
|
|
|
149 |
|
|
154 |
|
|
|
150 |
|
|
155 |
|
/**
|
|
151 |
|
/**
|
156 |
|
* change
images onH
over mouse
action
|
|
152 |
|
* change
images onH
over mouse
action
|
157 |
|
*/
|
|
153 |
|
*/
|
158 |
|
function s
how(FileNa
me,jpg1Nam
e)
|
|
154 |
|
function s
how(FileNa
me,jpg1Nam
e)
|
159 |
|
{
|
|
155 |
|
{
|
160 |
|
docume
nt.images[
FileName].
src = jpg1
Name;
|
|
156 |
|
docume
nt.images[
FileName].
src = jpg1
Name;
|
161 |
|
}
|
|
157 |
|
}
|
162 |
|
|
|
158 |
|
|
163 |
|
/**
|
|
159 |
|
/**
|
164 |
|
* set sta
tus of the
browser w
indow to '
s'
|
|
160 |
|
* set sta
tus of the
browser w
indow to '
s'
|
165 |
|
*/
|
|
161 |
|
*/
|
166 |
|
function s
s(s)
|
|
162 |
|
function s
s(s)
|
167 |
|
{
|
|
163 |
|
{
|
168 |
|
window
.status =
s;
|
|
164 |
|
window
.status =
s;
|
169 |
|
return
true;
|
|
165 |
|
return
true;
|
170 |
|
}
|
|
166 |
|
}
|
171 |
|
|
|
167 |
|
|
172 |
|
/**
|
|
168 |
|
/**
|
173 |
|
* set sta
tus of the
browser w
indow to e
mpty
|
|
169 |
|
* set sta
tus of the
browser w
indow to e
mpty
|
174 |
|
*/
|
|
170 |
|
*/
|
175 |
|
function c
e()
|
|
171 |
|
function c
e()
|
176 |
|
{
|
|
172 |
|
{
|
177 |
|
window
.status=''
;
|
|
173 |
|
window
.status=''
;
|
178 |
|
}
|
|
174 |
|
}
|
179 |
|
|
|
175 |
|
|
180 |
|
|
|
176 |
|
|
181 |
|
/**
|
|
177 |
|
/**
|
182 |
|
* insert
emotion it
em
|
|
178 |
|
* insert
emotion it
em
|
183 |
|
*/
|
|
179 |
|
*/
|
184 |
|
function e
moticon( t
xtarea, te
xt ) {
|
|
180 |
|
function e
moticon( t
xtarea, te
xt ) {
|
185 |
|
|
|
181 |
|
|
186 |
|
text =
' ' + tex
t + ' ';
|
|
182 |
|
text =
' ' + tex
t + ' ';
|
187 |
|
if (tx
tarea.crea
teTextRang
e && txtar
ea.caretPo
s) {
|
|
183 |
|
if (tx
tarea.crea
teTextRang
e && txtar
ea.caretPo
s) {
|
188 |
|
va
r caretPos
= txtarea
.caretPos;
|
|
184 |
|
va
r caretPos
= txtarea
.caretPos;
|
189 |
|
ca
retPos.tex
t = caretP
os.text.ch
arAt(caret
Pos.text.l
ength - 1)
== ' ' ?
text + ' '
: text;
|
|
185 |
|
ca
retPos.tex
t = caretP
os.text.ch
arAt(caret
Pos.text.l
ength - 1)
== ' ' ?
text + ' '
: text;
|
190 |
|
tx
tarea.focu
s();
|
|
186 |
|
tx
tarea.focu
s();
|
191 |
|
} else
{
|
|
187 |
|
} else
{
|
192 |
|
tx
tarea.valu
e += text
;
|
|
188 |
|
tx
tarea.valu
e += text
;
|
193 |
|
tx
tarea.focu
s();
|
|
189 |
|
tx
tarea.focu
s();
|
194 |
|
}
|
|
190 |
|
}
|
195 |
|
}
|
|
191 |
|
}
|
196 |
|
|
|
192 |
|
|
197 |
|
function l
aunchAddTo
IM (id)
|
|
193 |
|
function l
aunchAddTo
IM (id)
|
198 |
|
{
|
|
194 |
|
{
|
199 |
|
var wi
n = "width
=600,heigh
t=160,left
=100,top=1
00,copyhis
tory=no,di
rectories=
no,menubar
=no,locati
on=no,resi
zable=no,s
crollbars=
yes";
|
|
195 |
|
var wi
n = "width
=600,heigh
t=160,left
=100,top=1
00,copyhis
tory=no,di
rectories=
no,menubar
=no,locati
on=no,resi
zable=no,s
crollbars=
yes";
|
200 |
|
window
.open("exp
lanation.p
hp?explain
=imadd&ID=
"+id,'add_
to_im',win
);
|
|
196 |
|
window
.open("exp
lanation.p
hp?explain
=imadd&ID=
"+id,'add_
to_im',win
);
|
201 |
|
return
false;
|
|
197 |
|
return
false;
|
202 |
|
}
|
|
198 |
|
}
|
203 |
|
|
|
199 |
|
|
204 |
|
function d
ocOpen(tex
t)
|
|
200 |
|
function d
ocOpen(tex
t)
|
205 |
|
{
|
|
201 |
|
{
|
206 |
|
newWin
dow=window
.open('','
','toolbar
=no,resiza
ble=yes,sc
rollbars=y
es,width=4
00,height=
300');
|
|
202 |
|
newWin
dow=window
.open('','
','toolbar
=no,resiza
ble=yes,sc
rollbars=y
es,width=4
00,height=
300');
|
207 |
|
newWin
dow.docume
nt.open("t
ext/html")
;
|
|
203 |
|
newWin
dow.docume
nt.open("t
ext/html")
;
|
208 |
|
newWin
dow.docume
nt.write(u
nescape(te
xt));
|
|
204 |
|
newWin
dow.docume
nt.write(u
nescape(te
xt));
|
209 |
|
newWin
dow.docume
nt.close()
;
|
|
205 |
|
newWin
dow.docume
nt.close()
;
|
210 |
|
}
|
|
206 |
|
}
|
211 |
|
|
|
207 |
|
|
212 |
|
function g
et_data( c
ontainer,
url, siteU
rl )
|
|
208 |
|
function g
et_data( c
ontainer,
url, siteU
rl )
|
213 |
|
{
|
|
209 |
|
{
|
214 |
|
if ( c
ontainer )
|
|
210 |
|
if ( c
ontainer )
|
215 |
|
{
|
|
211 |
|
{
|
216 |
|
va
r containe
r = docume
nt.getElem
entById( c
ontainer )
;
|
|
212 |
|
va
r containe
r = docume
nt.getElem
entById( c
ontainer )
;
|
217 |
|
co
ntainer.in
nerHTML =
"loading .
.. ";
|
|
213 |
|
co
ntainer.in
nerHTML =
"loading .
.. ";
|
218 |
|
}
|
|
214 |
|
}
|
219 |
|
|
|
215 |
|
|
220 |
|
var XM
LHttpReque
stObject =
createXml
HttpObj();
|
|
216 |
|
var XM
LHttpReque
stObject =
createXml
HttpObj();
|
221 |
|
|
|
217 |
|
|
222 |
|
if( !X
MLHttpRequ
estObject
)
|
|
218 |
|
if( !X
MLHttpRequ
estObject
)
|
223 |
|
re
turn false
;
|
|
219 |
|
re
turn false
;
|
224 |
|
|
|
220 |
|
|
225 |
|
var da
ta_source
= siteUrl
+ 'xml/men
u.php' + u
rl + '&_t=
' + Math.r
andom();
|
|
221 |
|
var da
ta_source
= siteUrl
+ 'xml/men
u.php' + u
rl + '&_t=
' + Math.r
andom();
|
226 |
|
XMLHtt
pRequestOb
ject.open(
"GET", da
ta_source
);
|
|
222 |
|
XMLHtt
pRequestOb
ject.open(
"GET", da
ta_source
);
|
227 |
|
XMLHtt
pRequestOb
ject.onrea
dystatecha
nge = func
tion()
|
|
223 |
|
XMLHtt
pRequestOb
ject.onrea
dystatecha
nge = func
tion()
|
228 |
|
{
|
|
224 |
|
{
|
229 |
|
if
( XMLHttp
RequestObj
ect.readyS
tate == 4
&& XMLHttp
RequestObj
ect.status
== 200 )
|
|
225 |
|
if
( XMLHttp
RequestObj
ect.readyS
tate == 4
&& XMLHttp
RequestObj
ect.status
== 200 )
|
230 |
|
{
|
|
226 |
|
{
|
231 |
|
var xmlD
ocument =
XMLHttpReq
uestObject
.responseX
ML;
|
|
227 |
|
var xmlD
ocument =
XMLHttpReq
uestObject
.responseX
ML;
|
232 |
|
delete X
MLHttpRequ
estObject;
|
|
228 |
|
delete X
MLHttpRequ
estObject;
|
233 |
|
XMLHttpR
equestObje
ct = null;
|
|
229 |
|
XMLHttpR
equestObje
ct = null;
|
234 |
|
|
|
230 |
|
|
235 |
|
names =
xmlDocumen
t.getEleme
ntsByTagNa
me("name")
;
|
|
231 |
|
names =
xmlDocumen
t.getEleme
ntsByTagNa
me("name")
;
|
236 |
|
links =
xmlDocumen
t.getEleme
ntsByTagNa
me("link")
;
|
|
232 |
|
links =
xmlDocumen
t.getEleme
ntsByTagNa
me("link")
;
|
237 |
|
|
|
233 |
|
|
238 |
|
list_sub
links(name
s, links);
|
|
234 |
|
list_sub
links(name
s, links);
|
239 |
|
}
|
|
235 |
|
}
|
240 |
|
}
|
|
236 |
|
}
|
241 |
|
XMLHtt
pRequestOb
ject.send(
null );
|
|
237 |
|
XMLHtt
pRequestOb
ject.send(
null );
|
242 |
|
|
|
238 |
|
|
243 |
|
//cont
ainer.inne
rHTML = ''
;
|
|
239 |
|
//cont
ainer.inne
rHTML = ''
;
|
244 |
|
|
|
240 |
|
|
245 |
|
functi
on list_su
blinks(nam
es, links)
|
|
241 |
|
functi
on list_su
blinks(nam
es, links)
|
246 |
|
{
|
|
242 |
|
{
|
247 |
|
va
r loopInde
x, name, l
ink, maxIn
dex = name
s.length;
|
|
243 |
|
va
r loopInde
x, name, l
ink, maxIn
dex = name
s.length;
|
248 |
|
|
|
244 |
|
|
249 |
|
co
ntainer.in
nerHTML =
'';
|
|
245 |
|
co
ntainer.in
nerHTML =
'';
|
250 |
|
fo
r ( loopIn
dex = 0; l
oopIndex <
maxIndex;
loopIndex
++ )
|
|
246 |
|
fo
r ( loopIn
dex = 0; l
oopIndex <
maxIndex;
loopIndex
++ )
|
251 |
|
{
|
|
247 |
|
{
|
252 |
|
//if ( v
alues[loop
Index].fir
stChild.no
deName=="n
ame")
|
|
248 |
|
//if ( v
alues[loop
Index].fir
stChild.no
deName=="n
ame")
|
253 |
|
name = n
ames[loopI
ndex].firs
tChild.nod
eValue;
|
|
249 |
|
name = n
ames[loopI
ndex].firs
tChild.nod
eValue;
|
254 |
|
|
|
250 |
|
|
255 |
|
//if ( v
alues[loop
Index].chi
ldNodes[1]
.nodeName=
="link")
|
|
251 |
|
//if ( v
alues[loop
Index].chi
ldNodes[1]
.nodeName=
="link")
|
256 |
|
link = l
inks[loopI
ndex].firs
tChild.nod
eValue;
|
|
252 |
|
link = l
inks[loopI
ndex].firs
tChild.nod
eValue;
|
257 |
|
|
|
253 |
|
|
258 |
|
containe
r.innerHTM
L += '<div
class="in
nerSubmenu
Div"><a hr
ef="' + li
nk + '">'
+ name + '
</a></div>
';
|
|
254 |
|
containe
r.innerHTM
L += '<div
class="in
nerSubmenu
Div"><a hr
ef="' + li
nk + '">'
+ name + '
</a></div>
';
|
259 |
|
}
|
|
255 |
|
}
|
260 |
|
}
|
|
256 |
|
}
|
261 |
|
}
|
|
257 |
|
}
|
262 |
|
|
|
258 |
|
|
263 |
|
|
|
259 |
|
|
264 |
|
function c
reateNamed
Element( t
ype, name
)
|
|
260 |
|
function c
reateNamed
Element( t
ype, name
)
|
265 |
|
{
|
|
261 |
|
{
|
266 |
|
|
|
262 |
|
|
267 |
|
var el
ement;
|
|
263 |
|
var el
ement;
|
268 |
|
|
|
264 |
|
|
269 |
|
try
|
|
265 |
|
try
|
270 |
|
{
|
|
266 |
|
{
|
271 |
|
el
ement = do
cument.cre
ateElement
('<'+type+
' name="'+
name+'">')
;
|
|
267 |
|
el
ement = do
cument.cre
ateElement
('<'+type+
' name="'+
name+'">')
;
|
272 |
|
} catc
h (e) { }
|
|
268 |
|
} catc
h (e) { }
|
273 |
|
|
|
269 |
|
|
274 |
|
if (!e
lement ||
!element.n
ame) // Co
ol, this i
s not IE !
!
|
|
270 |
|
if (!e
lement ||
!element.n
ame) // Co
ol, this i
s not IE !
!
|
275 |
|
{
|
|
271 |
|
{
|
276 |
|
el
ement = do
cument.cre
ateElement
(type)
|
|
272 |
|
el
ement = do
cument.cre
ateElement
(type)
|
277 |
|
el
ement.name
= name;
|
|
273 |
|
el
ement.name
= name;
|
278 |
|
}
|
|
274 |
|
}
|
279 |
|
|
|
275 |
|
|
280 |
|
return
element;
|
|
276 |
|
return
element;
|
281 |
|
}
|
|
277 |
|
}
|
282 |
|
|
|
278 |
|
|
283 |
|
function d
isplay_nod
e(node, si
teUrl)
|
|
279 |
|
function d
isplay_nod
e(node, si
teUrl)
|
284 |
|
{
|
|
280 |
|
{
|
285 |
|
|
|
281 |
|
|
286 |
|
var nn
= documen
t.getEleme
ntById( no
de );
|
|
282 |
|
var nn
= documen
t.getEleme
ntById( no
de );
|
287 |
|
|
|
283 |
|
|
288 |
|
var su
b_name = n
ode.split(
'_')[1];
|
|
284 |
|
var su
b_name = n
ode.split(
'_')[1];
|
289 |
|
if ( '
none' == n
n.style.di
splay )
|
|
285 |
|
if ( '
none' == n
n.style.di
splay )
|
290 |
|
{
|
|
286 |
|
{
|
291 |
|
nn.sty
le.display
='block';
|
|
287 |
|
nn.sty
le.display
='block';
|
292 |
|
if ( '
' == nn.in
nerHTML )
|
|
288 |
|
if ( '
' == nn.in
nerHTML )
|
293 |
|
ge
t_data( no
de, '?acti
on=menu&ID
=' + sub_n
ame, siteU
rl);
|
|
289 |
|
ge
t_data( no
de, '?acti
on=menu&ID
=' + sub_n
ame, siteU
rl);
|
294 |
|
}
|
|
290 |
|
}
|
295 |
|
else
|
|
291 |
|
else
|
296 |
|
{
|
|
292 |
|
{
|
297 |
|
nn
.style.dis
play='none
';
|
|
293 |
|
nn
.style.dis
play='none
';
|
298 |
|
}
|
|
294 |
|
}
|
299 |
|
|
|
295 |
|
|
300 |
|
}
|
|
296 |
|
}
|
301 |
|
|
|
297 |
|
|
302 |
|
function s
tripSlashe
s(str)
|
|
298 |
|
function s
tripSlashe
s(str)
|
303 |
|
{
|
|
299 |
|
{
|
304 |
|
return
str.repla
ce(/\\/g,
'');
|
|
300 |
|
return
str.repla
ce(/\\/g,
'');
|
305 |
|
}
|
|
301 |
|
}
|
306 |
|
|
|
302 |
|
|
307 |
|
function c
reateXmlHt
tpObj()
|
|
303 |
|
function c
reateXmlHt
tpObj()
|
308 |
|
{
|
|
304 |
|
{
|
309 |
|
if ( w
indow.XMLH
ttpRequest
)
|
|
305 |
|
if ( w
indow.XMLH
ttpRequest
)
|
310 |
|
re
turn new X
MLHttpRequ
est();
|
|
306 |
|
re
turn new X
MLHttpRequ
est();
|
311 |
|
else i
f ( window
.ActiveXOb
ject )
|
|
307 |
|
else i
f ( window
.ActiveXOb
ject )
|
312 |
|
re
turn new A
ctiveXObje
ct("Micros
oft.XMLHTT
P");
|
|
308 |
|
re
turn new A
ctiveXObje
ct("Micros
oft.XMLHTT
P");
|
313 |
|
else
|
|
309 |
|
else
|
314 |
|
{
|
|
310 |
|
{
|
315 |
|
al
ert( 'Plea
se upgrade
your brow
ser' );
|
|
311 |
|
al
ert( 'Plea
se upgrade
your brow
ser' );
|
316 |
|
re
turn false
;
|
|
312 |
|
re
turn false
;
|
317 |
|
}
|
|
313 |
|
}
|
318 |
|
}
|
|
314 |
|
}
|
319 |
|
|
|
315 |
|
|
320 |
|
function g
etHtmlData
( elemID,
url )
|
|
316 |
|
function g
etHtmlData
( elemID,
url )
|
321 |
|
{
|
|
317 |
|
{
|
322 |
|
var el
em = docum
ent.getEle
mentById(
elemID );
|
|
318 |
|
var el
em = docum
ent.getEle
mentById(
elemID );
|
323 |
|
|
|
319 |
|
|
324 |
|
if( !e
lem || !ur
l )
|
|
320 |
|
if( !e
lem || !ur
l )
|
325 |
|
re
turn false
;
|
|
321 |
|
re
turn false
;
|
326 |
|
|
|
322 |
|
|
327 |
|
var ur
l = url +
'&r=' + Ma
th.random(
);
|
|
323 |
|
var ur
l = url +
'&r=' + Ma
th.random(
);
|
328 |
|
|
|
324 |
|
|
329 |
|
|
|
325 |
|
|
330 |
|
var oX
MLHttpReq
= createXm
lHttpObj()
;
|
|
326 |
|
var oX
MLHttpReq
= createXm
lHttpObj()
;
|
331 |
|
|
|
327 |
|
|
332 |
|
if( !o
XMLHttpReq
)
|
|
328 |
|
if( !o
XMLHttpReq
)
|
333 |
|
re
turn false
;
|
|
329 |
|
re
turn false
;
|
334 |
|
|
|
330 |
|
|
335 |
|
elem.i
nnerHTML =
'<div cla
ss="loadin
g"><img sr
c="'+urlIc
onLoading+
'"></div>'
;
|
|
331 |
|
elem.i
nnerHTML =
'<div cla
ss="loadin
g"><img sr
c="'+urlIc
onLoading+
'"></div>'
;
|
336 |
|
|
|
332 |
|
|
337 |
|
oXMLHt
tpReq.open
( "GET", u
rl );
|
|
333 |
|
oXMLHt
tpReq.open
( "GET", u
rl );
|
338 |
|
oXMLHt
tpReq.onre
adystatech
ange = fun
ction()
|
|
334 |
|
oXMLHt
tpReq.onre
adystatech
ange = fun
ction()
|
339 |
|
{
|
|
335 |
|
{
|
340 |
|
if
( oXMLHtt
pReq.ready
State == 4
&& oXMLHt
tpReq.stat
us == 200
)
|
|
336 |
|
if
( oXMLHtt
pReq.ready
State == 4
&& oXMLHt
tpReq.stat
us == 200
)
|
341 |
|
{
|
|
337 |
|
{
|
342 |
|
sNewText
= oXMLHtt
pReq.respo
nseText;
|
|
338 |
|
sNewText
= oXMLHtt
pReq.respo
nseText;
|
343 |
|
elem.inn
erHTML = s
NewText;
|
|
339 |
|
elem.inn
erHTML = s
NewText;
|
344 |
|
|
|
340 |
|
|
345 |
|
// parse
javascrip
ts and run
them
|
|
341 |
|
// parse
javascrip
ts and run
them
|
346 |
|
aScrMatc
hes = sNew
Text.match
(/<script[
^>]*javasc
ript[^>]*>
([^<]*)<\/
script>/ig
);
|
|
342 |
|
aScrMatc
hes = sNew
Text.match
(/<script[
^>]*javasc
ript[^>]*>
([^<]*)<\/
script>/ig
);
|
347 |
|
if( aScr
Matches )
|
|
343 |
|
if( aScr
Matches )
|
348 |
|
{
|
|
344 |
|
{
|
349 |
|
for(
ind = 0;
ind < aScr
Matches.le
ngth; ind
++ )
|
|
345 |
|
for(
ind = 0;
ind < aScr
Matches.le
ngth; ind
++ )
|
350 |
|
{
|
|
346 |
|
{
|
351 |
|
sScr = aSc
rMatches[i
nd];
|
|
347 |
|
sScr = aSc
rMatches[i
nd];
|
352 |
|
iOffset =
sScr.match
(/<script[
^>]*javasc
ript[^>]*>
/i)[0].len
gth;
|
|
348 |
|
iOffset =
sScr.match
(/<script[
^>]*javasc
ript[^>]*>
/i)[0].len
gth;
|
353 |
|
sScript =
sScr.subst
ring( iOff
set, sScr.
length - 9
);
|
|
349 |
|
sScript =
sScr.subst
ring( iOff
set, sScr.
length - 9
);
|
354 |
|
|
|
350 |
|
|
355 |
|
eval( sScr
ipt );
|
|
351 |
|
eval( sScr
ipt );
|
356 |
|
}
|
|
352 |
|
}
|
357 |
|
}
|
|
353 |
|
}
|
358 |
|
}
|
|
354 |
|
}
|
359 |
|
}
|
|
355 |
|
}
|
360 |
|
oXMLHt
tpReq.send
( null );
|
|
356 |
|
oXMLHt
tpReq.send
( null );
|
361 |
|
}
|
|
357 |
|
}
|
362 |
|
|
|
358 |
|
|
363 |
|
|
|
359 |
|
|
364 |
|
/*
|
|
360 |
|
/*
|
365 |
|
Show t
he Floatin
g Descript
ion for an
y element.
|
|
361 |
|
Show t
he Floatin
g Descript
ion for an
y element.
|
366 |
|
|
|
362 |
|
|
367 |
|
usage:
|
|
363 |
|
usage:
|
368 |
|
<eleme
nt
|
|
364 |
|
<eleme
nt
|
369 |
|
on
mouseover=
"showFloat
Desc( 'you
r html des
cription h
ere...' );
"
|
|
365 |
|
on
mouseover=
"showFloat
Desc( 'you
r html des
cription h
ere...' );
"
|
370 |
|
on
mousemove=
"moveFloat
Desc( even
t );"
|
|
366 |
|
on
mousemove=
"moveFloat
Desc( even
t );"
|
371 |
|
on
mouseout="
hideFloatD
esc();">
|
|
367 |
|
on
mouseout="
hideFloatD
esc();">
|
372 |
|
|
|
368 |
|
|
373 |
|
Your d
ocument mu
st contain
in the ro
ot of body
following
content:
|
|
369 |
|
Your d
ocument mu
st contain
in the ro
ot of body
following
content:
|
374 |
|
<d
iv id="Flo
atDesc" st
yle="posit
ion:absolu
te;display
:none;"></
div>
|
|
370 |
|
<d
iv id="Flo
atDesc" st
yle="posit
ion:absolu
te;display
:none;"></
div>
|
375 |
|
and sp
ecific sty
lesheet fo
r it.
|
|
371 |
|
and sp
ecific sty
lesheet fo
r it.
|
376 |
|
*/
|
|
372 |
|
*/
|
377 |
|
function s
howFloatDe
sc( text )
|
|
373 |
|
function s
howFloatDe
sc( text )
|
378 |
|
{
|
|
374 |
|
{
|
379 |
|
descDi
v = docume
nt.getElem
entById( '
FloatDesc'
);
|
|
375 |
|
descDi
v = docume
nt.getElem
entById( '
FloatDesc'
);
|
380 |
|
if ( d
escDiv )
|
|
376 |
|
if ( d
escDiv )
|
381 |
|
{
|
|
377 |
|
{
|
382 |
|
de
scDiv.inne
rHTML = te
xt;
|
|
378 |
|
de
scDiv.inne
rHTML = te
xt;
|
383 |
|
de
scDiv.styl
e.display
= 'block';
|
|
379 |
|
de
scDiv.styl
e.display
= 'block';
|
384 |
|
}
|
|
380 |
|
}
|
385 |
|
}
|
|
381 |
|
}
|
386 |
|
|
|
382 |
|
|
387 |
|
function h
ideFloatDe
sc()
|
|
383 |
|
function h
ideFloatDe
sc()
|
388 |
|
{
|
|
384 |
|
{
|
389 |
|
descDi
v = docume
nt.getElem
entById( '
FloatDesc'
);
|
|
385 |
|
descDi
v = docume
nt.getElem
entById( '
FloatDesc'
);
|
390 |
|
if ( d
escDiv )
|
|
386 |
|
if ( d
escDiv )
|
391 |
|
de
scDiv.styl
e.display
= 'none';
|
|
387 |
|
de
scDiv.styl
e.display
= 'none';
|
392 |
|
}
|
|
388 |
|
}
|
393 |
|
|
|
389 |
|
|
394 |
|
function m
oveFloatDe
sc( ev )
|
|
390 |
|
function m
oveFloatDe
sc( ev )
|
395 |
|
{
|
|
391 |
|
{
|
396 |
|
descDi
v = docume
nt.getElem
entById( '
FloatDesc'
);
|
|
392 |
|
descDi
v = docume
nt.getElem
entById( '
FloatDesc'
);
|
397 |
|
if ( d
escDiv )
|
|
393 |
|
if ( d
escDiv )
|
398 |
|
{
|
|
394 |
|
{
|
399 |
|
sh
owPos = ge
tPositionD
ata( descD
iv, ev );
|
|
395 |
|
sh
owPos = ge
tPositionD
ata( descD
iv, ev );
|
400 |
|
de
scDiv.styl
e.left = s
howPos['po
sX'] + 'px
';
|
|
396 |
|
de
scDiv.styl
e.left = s
howPos['po
sX'] + 'px
';
|
401 |
|
de
scDiv.styl
e.top = sh
owPos['pos
Y'] + 'px'
;
|
|
397 |
|
de
scDiv.styl
e.top = sh
owPos['pos
Y'] + 'px'
;
|
402 |
|
}
|
|
398 |
|
}
|
403 |
|
}
|
|
399 |
|
}
|
404 |
|
|
|
400 |
|
|
405 |
|
/*
|
|
401 |
|
/*
|
406 |
|
Core o
f the Floa
ting Descr
iption
|
|
402 |
|
Core o
f the Floa
ting Descr
iption
|
407 |
|
*/
|
|
403 |
|
*/
|
408 |
|
function g
etPosition
Data(obj,
showEvent)
|
|
404 |
|
function g
etPosition
Data(obj,
showEvent)
|
409 |
|
{
|
|
405 |
|
{
|
410 |
|
if ( !
showEvent
)
|
|
406 |
|
if ( !
showEvent
)
|
411 |
|
sh
owEvent =
window.eve
nt;
|
|
407 |
|
sh
owEvent =
window.eve
nt;
|
412 |
|
|
|
408 |
|
|
413 |
|
var po
s_X = 0, p
os_Y = 0;
|
|
409 |
|
var po
s_X = 0, p
os_Y = 0;
|
414 |
|
if ( s
howEvent )
|
|
410 |
|
if ( s
howEvent )
|
415 |
|
{
|
|
411 |
|
{
|
416 |
|
if
( typeof(
showEvent.
pageX) ==
'number' )
|
|
412 |
|
if
( typeof(
showEvent.
pageX) ==
'number' )
|
417 |
|
{
|
|
413 |
|
{
|
418 |
|
pos_X =
showEvent.
pageX;
|
|
414 |
|
pos_X =
showEvent.
pageX;
|
419 |
|
pos_Y =
showEvent.
pageY;
|
|
415 |
|
pos_Y =
showEvent.
pageY;
|
420 |
|
}
|
|
416 |
|
}
|
421 |
|
el
se if ( ty
peof(showE
vent.clien
tX) == 'nu
mber' )
|
|
417 |
|
el
se if ( ty
peof(showE
vent.clien
tX) == 'nu
mber' )
|
422 |
|
{
|
|
418 |
|
{
|
423 |
|
pos_X =
showEvent.
clientX; p
os_Y = sho
wEvent.cli
entY;
|
|
419 |
|
pos_X =
showEvent.
clientX; p
os_Y = sho
wEvent.cli
entY;
|
424 |
|
if ( doc
ument.body
&&
|
|
420 |
|
if ( doc
ument.body
&&
|
425 |
|
( do
cument.bod
y.scrollTo
p || docum
ent.body.s
crollLeft
) &&
|
|
421 |
|
( do
cument.bod
y.scrollTo
p || docum
ent.body.s
crollLeft
) &&
|
426 |
|
!( w
indow.oper
a || windo
w.debug ||
navigator
.vendor ==
'KDE' ) )
|
|
422 |
|
!( w
indow.oper
a || windo
w.debug ||
navigator
.vendor ==
'KDE' ) )
|
427 |
|
{
|
|
423 |
|
{
|
428 |
|
pos_
X += docum
ent.body.s
crollLeft;
|
|
424 |
|
pos_
X += docum
ent.body.s
crollLeft;
|
429 |
|
pos_
Y += docum
ent.body.s
crollTop;
|
|
425 |
|
pos_
Y += docum
ent.body.s
crollTop;
|
430 |
|
}
|
|
426 |
|
}
|
431 |
|
else if
( document
.documentE
lement &&
|
|
427 |
|
else if
( document
.documentE
lement &&
|
432 |
|
( do
cument.doc
umentEleme
nt.scrollT
op ||
|
|
428 |
|
( do
cument.doc
umentEleme
nt.scrollT
op ||
|
433 |
|
docu
ment.docum
entElement
.scrollLef
t ) &&
|
|
429 |
|
docu
ment.docum
entElement
.scrollLef
t ) &&
|
434 |
|
!( w
indow.oper
a || windo
w.debug ||
navigator
.vendor ==
'KDE' ) )
|
|
430 |
|
!( w
indow.oper
a || windo
w.debug ||
navigator
.vendor ==
'KDE' ) )
|
435 |
|
{
|
|
431 |
|
{
|
436 |
|
pos_
X += docum
ent.docume
ntElement.
scrollLeft
;
|
|
432 |
|
pos_
X += docum
ent.docume
ntElement.
scrollLeft
;
|
437 |
|
pos_
Y += docum
ent.docume
ntElement.
scrollTop;
|
|
433 |
|
pos_
Y += docum
ent.docume
ntElement.
scrollTop;
|
438 |
|
}
|
|
434 |
|
}
|
439 |
|
}
|
|
435 |
|
}
|
440 |
|
}
|
|
436 |
|
}
|
441 |
|
|
|
437 |
|
|
442 |
|
var sc
roll_X = 0
, scroll_Y
= 0;
|
|
438 |
|
var sc
roll_X = 0
, scroll_Y
= 0;
|
443 |
|
if ( d
ocument.bo
dy &&
|
|
439 |
|
if ( d
ocument.bo
dy &&
|
444 |
|
(
document.b
ody.scroll
Top || doc
ument.body
.scrollLef
t ) &&
|
|
440 |
|
(
document.b
ody.scroll
Top || doc
ument.body
.scrollLef
t ) &&
|
445 |
|
!(
window.de
bug || nav
igator.ven
dor == 'KD
E' ) )
|
|
441 |
|
!(
window.de
bug || nav
igator.ven
dor == 'KD
E' ) )
|
446 |
|
{
|
|
442 |
|
{
|
447 |
|
sc
roll_X = d
ocument.bo
dy.scrollL
eft;
|
|
443 |
|
sc
roll_X = d
ocument.bo
dy.scrollL
eft;
|
448 |
|
sc
roll_Y = d
ocument.bo
dy.scrollT
op;
|
|
444 |
|
sc
roll_Y = d
ocument.bo
dy.scrollT
op;
|
449 |
|
}
|
|
445 |
|
}
|
450 |
|
else i
f ( docume
nt.documen
tElement &
&
|
|
446 |
|
else i
f ( docume
nt.documen
tElement &
&
|
451 |
|
(
document.d
ocumentEle
ment.scrol
lTop ||
|
|
447 |
|
(
document.d
ocumentEle
ment.scrol
lTop ||
|
452 |
|
do
cument.doc
umentEleme
nt.scrollL
eft ) &&
|
|
448 |
|
do
cument.doc
umentEleme
nt.scrollL
eft ) &&
|
453 |
|
!(
window.de
bug || nav
igator.ven
dor == 'KD
E' ) )
|
|
449 |
|
!(
window.de
bug || nav
igator.ven
dor == 'KD
E' ) )
|
454 |
|
{
|
|
450 |
|
{
|
455 |
|
sc
roll_X = d
ocument.do
cumentElem
ent.scroll
Left;
|
|
451 |
|
sc
roll_X = d
ocument.do
cumentElem
ent.scroll
Left;
|
456 |
|
sc
roll_Y = d
ocument.do
cumentElem
ent.scroll
Top;
|
|
452 |
|
sc
roll_Y = d
ocument.do
cumentElem
ent.scroll
Top;
|
457 |
|
}
|
|
453 |
|
}
|
458 |
|
|
|
454 |
|
|
459 |
|
var wi
n_size_X =
0, win_si
ze_Y = 0;
|
|
455 |
|
var wi
n_size_X =
0, win_si
ze_Y = 0;
|
460 |
|
if (wi
ndow.inner
Width && w
indow.inne
rHeight)
|
|
456 |
|
if (wi
ndow.inner
Width && w
indow.inne
rHeight)
|
461 |
|
{
|
|
457 |
|
{
|
462 |
|
wi
n_size_X =
window.in
nerWidth;
|
|
458 |
|
wi
n_size_X =
window.in
nerWidth;
|
463 |
|
wi
n_size_Y =
window.in
nerHeight;
|
|
459 |
|
wi
n_size_Y =
window.in
nerHeight;
|
464 |
|
}
|
|
460 |
|
}
|
465 |
|
else i
f ( docume
nt.documen
tElement &
&
|
|
461 |
|
else i
f ( docume
nt.documen
tElement &
&
|
466 |
|
do
cument.doc
umentEleme
nt.clientW
idth &&
|
|
462 |
|
do
cument.doc
umentEleme
nt.clientW
idth &&
|
467 |
|
do
cument.doc
umentEleme
nt.clientH
eight )
|
|
463 |
|
do
cument.doc
umentEleme
nt.clientH
eight )
|
468 |
|
{
|
|
464 |
|
{
|
469 |
|
wi
n_size_X =
document.
documentEl
ement.clie
ntWidth;
|
|
465 |
|
wi
n_size_X =
document.
documentEl
ement.clie
ntWidth;
|
470 |
|
wi
n_size_Y =
document.
documentEl
ement.clie
ntHeight;
|
|
466 |
|
wi
n_size_Y =
document.
documentEl
ement.clie
ntHeight;
|
471 |
|
}
|
|
467 |
|
}
|
472 |
|
else i
f (documen
t.body &&
document.b
ody.client
Width && d
ocument.bo
dy.clientH
eight)
|
|
468 |
|
else i
f (documen
t.body &&
document.b
ody.client
Width && d
ocument.bo
dy.clientH
eight)
|
473 |
|
{
|
|
469 |
|
{
|
474 |
|
wi
n_size_X =
document.
body.clien
tWidth;
|
|
470 |
|
wi
n_size_X =
document.
body.clien
tWidth;
|
475 |
|
wi
n_size_Y =
document.
body.clien
tHeight;
|
|
471 |
|
wi
n_size_Y =
document.
body.clien
tHeight;
|
476 |
|
}
|
|
472 |
|
}
|
477 |
|
|
|
473 |
|
|
478 |
|
pos_X
+= 15;
|
|
474 |
|
pos_X
+= 15;
|
479 |
|
pos_Y
+= 20;
|
|
475 |
|
pos_Y
+= 20;
|
480 |
|
|
|
476 |
|
|
481 |
|
if (ob
j.offsetWi
dth && obj
.offsetHei
ght)
|
|
477 |
|
if (ob
j.offsetWi
dth && obj
.offsetHei
ght)
|
482 |
|
{
|
|
478 |
|
{
|
483 |
|
if
(pos_X -
scroll_X +
obj.offse
tWidth + 5
> win_siz
e_X)
|
|
479 |
|
if
(pos_X -
scroll_X +
obj.offse
tWidth + 5
> win_siz
e_X)
|
484 |
|
pos_X -=
(obj.offs
etWidth +
25);
|
|
480 |
|
pos_X -=
(obj.offs
etWidth +
25);
|
485 |
|
if
(pos_Y -
scroll_Y +
obj.offse
tHeight +
5 > win_si
ze_Y)
|
|
481 |
|
if
(pos_Y -
scroll_Y +
obj.offse
tHeight +
5 > win_si
ze_Y)
|
486 |
|
pos_Y -=
(obj.offs
etHeight +
20);
|
|
482 |
|
pos_Y -=
(obj.offs
etHeight +
20);
|
487 |
|
}
|
|
483 |
|
}
|
488 |
|
|
|
484 |
|
|
489 |
|
var re
s = new Ar
ray;
|
|
485 |
|
var re
s = new Ar
ray;
|
490 |
|
res['p
osX'] = po
s_X;
|
|
486 |
|
res['p
osX'] = po
s_X;
|
491 |
|
res['p
osY'] = po
s_Y;
|
|
487 |
|
res['p
osY'] = po
s_Y;
|
492 |
|
res['s
crollX'] =
scroll_X;
|
|
488 |
|
res['s
crollX'] =
scroll_X;
|
493 |
|
res['s
crollY'] =
scroll_Y;
|
|
489 |
|
res['s
crollY'] =
scroll_Y;
|
494 |
|
res['w
inSizeX']
= win_size
_X;
|
|
490 |
|
res['w
inSizeX']
= win_size
_X;
|
495 |
|
res['w
inSizeY']
= win_size
_Y;
|
|
491 |
|
res['w
inSizeY']
= win_size
_Y;
|
496 |
|
|
|
492 |
|
|
497 |
|
return
res;
|
|
493 |
|
return
res;
|
498 |
|
}
|
|
494 |
|
}
|
499 |
|
|
|
495 |
|
|
500 |
|
function a
ddBookmark
( title, u
rl )
|
|
496 |
|
function a
ddBookmark
( title, u
rl )
|
501 |
|
{
|
|
497 |
|
{
|
502 |
|
if (ti
tle == und
efined)
|
|
498 |
|
if (ti
tle == und
efined)
|
503 |
|
ti
tle = docu
ment.title
;
|
|
499 |
|
ti
tle = docu
ment.title
;
|
504 |
|
|
|
500 |
|
|
505 |
|
if (ur
l == undef
ined)
|
|
501 |
|
if (ur
l == undef
ined)
|
506 |
|
ur
l = top.lo
cation.hre
f;
|
|
502 |
|
ur
l = top.lo
cation.hre
f;
|
507 |
|
|
|
503 |
|
|
508 |
|
if (wi
ndow.sideb
ar) // fir
efox
|
|
504 |
|
if (wi
ndow.sideb
ar) // fir
efox
|
509 |
|
wi
ndow.sideb
ar.addPane
l(title, u
rl, '');
|
|
505 |
|
wi
ndow.sideb
ar.addPane
l(title, u
rl, '');
|
510 |
|
else i
f(window.o
pera && wi
ndow.print
) // opera
|
|
506 |
|
else i
f(window.o
pera && wi
ndow.print
) // opera
|
511 |
|
{
|
|
507 |
|
{
|
512 |
|
va
r elem = d
ocument.cr
eateElemen
t('a');
|
|
508 |
|
va
r elem = d
ocument.cr
eateElemen
t('a');
|
513 |
|
el
em.setAttr
ibute('hre
f',url);
|
|
509 |
|
el
em.setAttr
ibute('hre
f',url);
|
514 |
|
el
em.setAttr
ibute('tit
le',title)
;
|
|
510 |
|
el
em.setAttr
ibute('tit
le',title)
;
|
515 |
|
el
em.setAttr
ibute('rel
','sidebar
');
|
|
511 |
|
el
em.setAttr
ibute('rel
','sidebar
');
|
516 |
|
el
em.click()
;
|
|
512 |
|
el
em.click()
;
|
517 |
|
}
|
|
513 |
|
}
|
518 |
|
else i
f(document
.all) // i
e
|
|
514 |
|
else i
f(document
.all) // i
e
|
519 |
|
wi
ndow.exter
nal.AddFav
orite(url,
title);
|
|
515 |
|
wi
ndow.exter
nal.AddFav
orite(url,
title);
|
520 |
|
else i
f (navigat
or.appName
=="Netscap
e") //Nets
cape
|
|
516 |
|
else i
f (navigat
or.appName
=="Netscap
e") //Nets
cape
|
521 |
|
al
ert( 'To b
ookmark th
is site pr
ess "Ctrl+
D".' );
|
|
517 |
|
al
ert( 'To b
ookmark th
is site pr
ess "Ctrl+
D".' );
|
522 |
|
else
|
|
518 |
|
else
|
523 |
|
al
ert( 'Your
browser d
oesn\'t su
pport this
feature'
);
|
|
519 |
|
al
ert( 'Your
browser d
oesn\'t su
pport this
feature'
);
|
524 |
|
}
|
|
520 |
|
}
|
525 |
|
|
|
521 |
|
|
526 |
|
newID = 2;
|
|
522 |
|
function A
ddFilesFie
lds(sDelet
eCapt) {
|
527 |
|
|
|
523 |
|
|
528 |
|
function A
ddFilesFie
lds() {
|
|
524 |
|
if ($(
"#browse_f
ile_div").
children(
'[class="f
ile_field"
]' ).lengt
h >= 5) {
|
529 |
|
var el
;
|
|
|
530 |
|
el = d
ocument.ge
tElementBy
Id( 'brows
e_file_div
' );
|
|
|
531 |
|
if (el
.childNode
s.length >
10) {
|
|
|
532 |
|
al
ert('5 fil
es maximum
');
|
|
525 |
|
al
ert('5 fil
es maximum
');
|
533 |
|
re
turn;
|
|
526 |
|
re
turn;
|
534 |
|
}
|
|
527 |
|
}
|
535 |
|
newEl
= document
.createEle
ment( 'INP
UT' );
|
|
528 |
|
|
536 |
|
newEl.
type = 'fi
le';
|
|
529 |
|
var el
= $('<div
style="ma
rgin-top:1
0px;" clas
s="file_fi
eld"><inpu
t name="us
erfile[]"
type="file
" style=""
/> &
nbsp; 
;<a href="
#">' + sDe
leteCapt +
'</a></di
v>');
|
537 |
|
newEl.
name = 'us
erfile[]';
|
|
530 |
|
$("#brows
e
_fi
l
e_div")
.append
(
e
l);
|
538 |
|
//newE
l.id = '
file_' + n
ewID;
|
|
531 |
|
|
539 |
|
e
l
.append
Child
(
n
e
wE
l
);
|
|
532 |
|
el.chi
ldren('a')
.click( fu
nction(){
|
540 |
|
newElb
r = docume
nt.createE
lement( 'B
R' );
|
|
533 |
|
$(th
is).parent
().remove(
);
|
541 |
|
el.app
endChild(
newElbr );
|
|
534 |
|
retu
rn false;
|
542 |
|
newID
++;
|
|
535 |
|
} );
|
543 |
|
}
|
|
536 |
|
}
|
544 |
|
|
|
537 |
|
|
545 |
|
function c
hangeBigPi
cTo(newBig
ImageName,
newBigIma
geHref) {
|
|
538 |
|
function c
hangeBigPi
cTo(newBig
ImageName,
newBigIma
geHref) {
|
546 |
|
var el
;
|
|
539 |
|
var el
;
|
547 |
|
el = d
ocument.ge
tElementBy
Id('AdvBig
Img');
|
|
540 |
|
el = d
ocument.ge
tElementBy
Id('AdvBig
Img');
|
548 |
|
el.sty
le.backgro
undImage =
'url(' +
newBigImag
eName + ')
';
|
|
541 |
|
el.sty
le.backgro
undImage =
'url(' +
newBigImag
eName + ')
';
|
549 |
|
el = d
ocument.ge
tElementBy
Id('AdvBig
ImgFullSiz
e');
|
|
542 |
|
el = d
ocument.ge
tElementBy
Id('AdvBig
ImgFullSiz
e');
|
550 |
|
el.hre
f = newBig
ImageHref;
|
|
543 |
|
el.hre
f = newBig
ImageHref;
|
551 |
|
}
|
|
544 |
|
}
|
552 |
|
|
|
545 |
|
|
553 |
|
function m
oveScrollR
ightAuto(
el_id, b )
{
|
|
546 |
|
function m
oveScrollR
ightAuto(
el_id, b )
{
|
554 |
|
if (b)
|
|
547 |
|
if (b)
|
555 |
|
sc
rollTimerI
d = setInt
erval ("mo
veScrollRi
ght('"+el_
id+"')", 1
00);
|
|
548 |
|
sc
rollTimerI
d = setInt
erval ("mo
veScrollRi
ght('"+el_
id+"')", 1
00);
|
556 |
|
else
|
|
549 |
|
else
|
557 |
|
cl
earInterva
l (scrollT
imerId);
|
|
550 |
|
cl
earInterva
l (scrollT
imerId);
|
558 |
|
}
|
|
551 |
|
}
|
559 |
|
|
|
552 |
|
|
560 |
|
function m
oveScrollL
eftAuto( e
l_id, b )
{
|
|
553 |
|
function m
oveScrollL
eftAuto( e
l_id, b )
{
|
561 |
|
if (b)
|
|
554 |
|
if (b)
|
562 |
|
sc
rollTimerI
d = setInt
erval ("mo
veScrollLe
ft('"+el_i
d+"')", 10
0);
|
|
555 |
|
sc
rollTimerI
d = setInt
erval ("mo
veScrollLe
ft('"+el_i
d+"')", 10
0);
|
563 |
|
else
|
|
556 |
|
else
|
564 |
|
cl
earInterva
l (scrollT
imerId);
|
|
557 |
|
cl
earInterva
l (scrollT
imerId);
|
565 |
|
}
|
|
558 |
|
}
|
566 |
|
|
|
559 |
|
|
567 |
|
function m
oveScrollR
ight( el_i
d ) {
|
|
560 |
|
function m
oveScrollR
ight( el_i
d ) {
|
568 |
|
var st
ep = 5;
|
|
561 |
|
var st
ep = 5;
|
569 |
|
var e
= document
.getElemen
tById( el_
id );
|
|
562 |
|
var e
= document
.getElemen
tById( el_
id );
|
570 |
|
var le
ft = e.st
yle.left ?
parseInt(
e.style.l
eft ) : 0;
|
|
563 |
|
var le
ft = e.st
yle.left ?
parseInt(
e.style.l
eft ) : 0;
|
571 |
|
|
|
564 |
|
|
572 |
|
minLef
t = e.pare
ntNode.cli
entWidth -
parseInt(
e.clientW
idth );
|
|
565 |
|
minLef
t = e.pare
ntNode.cli
entWidth -
parseInt(
e.clientW
idth );
|
573 |
|
|
|
566 |
|
|
574 |
|
if ( (
left-step)
> minLeft
) {
|
|
567 |
|
if ( (
left-step)
> minLeft
) {
|
575 |
|
e.
style.left
= left -
step + "px
";
|
|
568 |
|
e.
style.left
= left -
step + "px
";
|
576 |
|
}
|
|
569 |
|
}
|
577 |
|
else {
|
|
570 |
|
else {
|
578 |
|
e.
style.left
= minLeft
+ "px";
|
|
571 |
|
e.
style.left
= minLeft
+ "px";
|
579 |
|
mo
veScrollRi
ghtAuto (
el_id, fal
se);
|
|
572 |
|
mo
veScrollRi
ghtAuto (
el_id, fal
se);
|
580 |
|
}
|
|
573 |
|
}
|
581 |
|
}
|
|
574 |
|
}
|
582 |
|
|
|
575 |
|
|
583 |
|
function m
oveScrollL
eft( el_id
) {
|
|
576 |
|
function m
oveScrollL
eft( el_id
) {
|
584 |
|
var st
ep = 5;
|
|
577 |
|
var st
ep = 5;
|
585 |
|
var e
= document
.getElemen
tById( el_
id );
|
|
578 |
|
var e
= document
.getElemen
tById( el_
id );
|
586 |
|
var le
ft = parse
Int(e.styl
e.left ? e
.style.lef
t : 0);
|
|
579 |
|
var le
ft = parse
Int(e.styl
e.left ? e
.style.lef
t : 0);
|
587 |
|
|
|
580 |
|
|
588 |
|
if (le
ft + step
< 0 ) {
|
|
581 |
|
if (le
ft + step
< 0 ) {
|
589 |
|
e.
style.left
= left +
step + "px
";
|
|
582 |
|
e.
style.left
= left +
step + "px
";
|
590 |
|
}
|
|
583 |
|
}
|
591 |
|
else {
|
|
584 |
|
else {
|
592 |
|
e.
style.left
= "0px";
|
|
585 |
|
e.
style.left
= "0px";
|
593 |
|
mo
veScrollLe
ftAuto (fa
lse);
|
|
586 |
|
mo
veScrollLe
ftAuto (fa
lse);
|
594 |
|
}
|
|
587 |
|
}
|
595 |
|
}
|
|
588 |
|
}
|
596 |
|
|
|
589 |
|
|
597 |
|
function a
ddEvent( o
bj, evt, f
unc )
|
|
590 |
|
function a
ddEvent( o
bj, evt, f
unc )
|
598 |
|
{
|
|
591 |
|
{
|
599 |
|
if( !o
bj || !evt
|| !func
)
|
|
592 |
|
if( !o
bj || !evt
|| !func
)
|
600 |
|
re
turn false
;
|
|
593 |
|
re
turn false
;
|
601 |
|
|
|
594 |
|
|
602 |
|
if( ob
j.addEvent
Listener )
|
|
595 |
|
if( ob
j.addEvent
Listener )
|
603 |
|
ob
j.addEvent
Listener(
evt, func,
false );
|
|
596 |
|
ob
j.addEvent
Listener(
evt, func,
false );
|
604 |
|
else i
f( obj.att
achEvent )
|
|
597 |
|
else i
f( obj.att
achEvent )
|
605 |
|
ob
j.attachEv
ent( 'on'
+ evt, fun
c );
|
|
598 |
|
ob
j.attachEv
ent( 'on'
+ evt, fun
c );
|
606 |
|
}
|
|
599 |
|
}
|
607 |
|
|
|
600 |
|
|
608 |
|
function s
howHiddenM
enu( id )
|
|
|
609 |
|
{
|
|
|
610 |
|
setTim
eout( 'if(
holdHidde
nMenu == '
+ id + '
){ var _el
= documen
t.getEleme
ntById( \'
hiddenMenu
_' + id +
'\' ); if(
_el ){ hi
deHiddenMe
nu( curren
tTopItem )
; _el.styl
e.display
= \'block\
'; } }', 1
00 );
|
|
|
611 |
|
}
|
|
|
612 |
|
|
|
|
613 |
|
if( typeof
( holdHidd
enMenu ) =
= 'undefin
ed' )
|
|
|
614 |
|
holdHi
ddenMenu =
0;
|
|
|
615 |
|
|
|
|
616 |
|
function h
ideHiddenM
enu( id )
|
|
|
617 |
|
{
|
|
|
618 |
|
setTim
eout( 'if(
holdHidde
nMenu != '
+ id + '
){ var _el
= documen
t.getEleme
ntById( \'
hiddenMenu
_' + id +
'\' ); if(
_el ){ sh
owHiddenMe
nu( curren
tTopItem )
; _el.styl
e.display
= \'none\'
; } }', 10
0 );
|
|
|
619 |
|
}
|
|
|
620 |
|
|
|
|
621 |
|
function c
heckAll( f
ormName, _
pref, doCh
eck ) {
|
|
601 |
|
function c
heckAll( f
ormName, _
pref, doCh
eck ) {
|
622 |
|
_form
= document
.forms[for
mName];
|
|
602 |
|
_form
= document
.forms[for
mName];
|
623 |
|
|
|
603 |
|
|
624 |
|
if( !_
form )
|
|
604 |
|
if( !_
form )
|
625 |
|
re
turn false
;
|
|
605 |
|
re
turn false
;
|
626 |
|
|
|
606 |
|
|
627 |
|
for( i
nd = 0; in
d < _form.
length; in
d ++ ) {
|
|
607 |
|
for( i
nd = 0; in
d < _form.
length; in
d ++ ) {
|
628 |
|
_e
lem = _for
m[ind];
|
|
608 |
|
_e
lem = _for
m[ind];
|
629 |
|
|
|
609 |
|
|
630 |
|
if
( _elem.ty
pe != 'che
ckbox' )
|
|
610 |
|
if
( _elem.ty
pe != 'che
ckbox' )
|
631 |
|
continue
;
|
|
611 |
|
continue
;
|
632 |
|
|
|
612 |
|
|
633 |
|
if
( _elem.na
me.substr(
0, _pref.
length ) !
= _pref )
|
|
613 |
|
if
( _elem.na
me.substr(
0, _pref.
length ) !
= _pref )
|
634 |
|
continue
;
|
|
614 |
|
continue
;
|
635 |
|
|
|
615 |
|
|
636 |
|
_e
lem.checke
d = doChec
k;
|
|
616 |
|
_e
lem.checke
d = doChec
k;
|
637 |
|
}
|
|
617 |
|
}
|
638 |
|
}
|
|
618 |
|
}
|
639 |
|
|
|
619 |
|
|
640 |
|
function e
mailCheck(
str )
|
|
620 |
|
function e
mailCheck(
str )
|
641 |
|
{
|
|
621 |
|
{
|
642 |
|
|
|
622 |
|
|
643 |
|
if (str.s
earch( /^[
a-z0-9_\-]
+(\.[_a-z0
-9\-]+)*@(
[_a-z0-9\-
]+\.)+([a-
z]{2}|aero
|arpa|biz|
com|coop|e
du|gov|inf
o|int|jobs
|mil|museu
m|name|nat
o|net|org|
pro|travel
)$/i ) ==
-1 )
|
|
623 |
|
if (str.s
earch( /^[
a-z0-9_\-]
+(\.[_a-z0
-9\-]+)*@(
[_a-z0-9\-
]+\.)+([a-
z]{2}|aero
|arpa|biz|
com|coop|e
du|gov|inf
o|int|jobs
|mil|museu
m|name|nat
o|net|org|
pro|travel
)$/i ) ==
-1 )
|
644 |
|
return
false;
|
|
624 |
|
return
false;
|
645 |
|
else
|
|
625 |
|
else
|
646 |
|
return
true;
|
|
626 |
|
return
true;
|
647 |
|
}
|
|
627 |
|
}
|
648 |
|
|
|
628 |
|
|
649 |
|
function g
etBoonexId
( formFrom
, formTo )
|
|
629 |
|
function g
etBoonexId
( formFrom
, formTo )
|
650 |
|
{
|
|
630 |
|
{
|
651 |
|
if( !f
ormFrom ||
!formTo )
|
|
631 |
|
if( !f
ormFrom ||
!formTo )
|
652 |
|
re
turn false
;
|
|
632 |
|
re
turn false
;
|
653 |
|
|
|
633 |
|
|
654 |
|
ID
=
formFrom.I
D;
|
|
634 |
|
var
ID
=
formFrom.I
D;
|
655 |
|
Password
=
formFrom.P
assword;
|
|
635 |
|
var
Password
=
formFrom.P
assword;
|
656 |
|
|
|
636 |
|
|
657 |
|
if( !I
D || !Pass
word )
|
|
637 |
|
if( !I
D || !Pass
word )
|
658 |
|
re
turn false
;
|
|
638 |
|
re
turn false
;
|
659 |
|
|
|
639 |
|
|
660 |
|
var oX
MLHttpReq
= createXm
lHttpObj()
;
|
|
640 |
|
var oX
MLHttpReq
= createXm
lHttpObj()
;
|
661 |
|
|
|
641 |
|
|
662 |
|
if( !o
XMLHttpReq
)
|
|
642 |
|
if( !o
XMLHttpReq
)
|
663 |
|
re
turn false
;
|
|
643 |
|
re
turn false
;
|
664 |
|
|
|
644 |
|
|
665 |
|
if( !I
D.value.le
ngth )
|
|
645 |
|
if( !I
D.value.le
ngth )
|
666 |
|
{
|
|
646 |
|
{
|
667 |
|
al
ert( 'Plea
se enter B
oonEx ID'
);
|
|
647 |
|
al
ert( 'Plea
se enter B
oonEx ID'
);
|
668 |
|
ID
.focus();
|
|
648 |
|
ID
.focus();
|
669 |
|
re
turn false
;
|
|
649 |
|
re
turn false
;
|
670 |
|
}
|
|
650 |
|
}
|
671 |
|
|
|
651 |
|
|
672 |
|
if( !P
assword.va
lue.length
)
|
|
652 |
|
if( !P
assword.va
lue.length
)
|
673 |
|
{
|
|
653 |
|
{
|
674 |
|
al
ert( 'Plea
se enter P
assword' )
;
|
|
654 |
|
al
ert( 'Plea
se enter P
assword' )
;
|
675 |
|
Pa
ssword.foc
us();
|
|
655 |
|
Pa
ssword.foc
us();
|
676 |
|
re
turn false
;
|
|
656 |
|
re
turn false
;
|
677 |
|
}
|
|
657 |
|
}
|
678 |
|
|
|
658 |
|
|
679 |
|
formFr
om.Submit.
disabled =
true;
|
|
659 |
|
formFr
om.Submit.
disabled =
true;
|
680 |
|
formFr
om.Submit.
value = 'W
ait...';
|
|
660 |
|
formFr
om.Submit.
value = 'W
ait...';
|
681 |
|
|
|
661 |
|
|
682 |
|
sUrl
=
'get_boone
x_id.php?I
D='
+
encodeURIC
omponent(I
D.value)
+
'&Password
='
+
encodeURIC
omponent(P
assword.va
lue)
+
'&r='
+
Math.rando
m();
|
|
662 |
|
var
sUrl
=
'get_boone
x_id.php?I
D='
+
encodeURIC
omponent(I
D.value)
+
'&Password
='
+
encodeURIC
omponent(P
assword.va
lue)
+
'&r='
+
Math.rando
m();
|
683 |
|
|
|
663 |
|
|
684 |
|
oXMLHt
tpReq.open
( "GET", s
Url );
|
|
664 |
|
oXMLHt
tpReq.open
( "GET", s
Url );
|
685 |
|
oXMLHt
tpReq.onre
adystatech
ange = fun
ction()
|
|
665 |
|
oXMLHt
tpReq.onre
adystatech
ange = fun
ction()
|
686 |
|
{
|
|
666 |
|
{
|
687 |
|
if
( oXMLHtt
pReq.ready
State == 4
&& oXMLHt
tpReq.stat
us == 200
)
|
|
667 |
|
if
( oXMLHtt
pReq.ready
State == 4
&& oXMLHt
tpReq.stat
us == 200
)
|
688 |
|
{
|
|
668 |
|
{
|
689 |
|
//
a
le
r
t(
oXMLHttpRe
q.response
Text
)
;
|
|
669 |
|
v
a
r
oXML
=
oXMLHttpRe
q.response
XML
;
|
690 |
|
oXML = o
XMLHttpReq
.responseX
ML;
|
|
|
691 |
|
|
|
670 |
|
|
692 |
|
if( !oXM
L.getEleme
ntsByTagNa
me( 'ID' )
.length )
|
|
671 |
|
if( !oXM
L.getEleme
ntsByTagNa
me( 'ID' )
.length )
|
693 |
|
{
|
|
672 |
|
{
|
694 |
|
aler
t( 'Author
ization fa
iled. Try
again.' );
|
|
673 |
|
aler
t( 'Author
ization fa
iled. Try
again.' );
|
695 |
|
retu
rn false;
|
|
674 |
|
retu
rn false;
|
696 |
|
}
|
|
675 |
|
}
|
697 |
|
|
|
676 |
|
|
698 |
|
aFields
=
new
Array();
|
|
677 |
|
var
aFields
=
new
Array();
|
699 |
|
aFields['U
sername']
=
'NickName
';
|
|
678 |
|
aFields['U
sername']
=
'NickName
[0]
';
|
700 |
|
aFields['E
mail']
=
'Email
';
|
|
679 |
|
aFields['E
mail']
=
'Email
[0]
';
|
701 |
|
aFields['P
assword']
=
'Password
,Password
1,Passw
o
r
d2
';
|
|
680 |
|
aFields['P
assword']
=
'Password
[0]
,Password
_c
o
nfi
r
m[0]
';
|
702 |
|
aFields['R
ealname']
=
'Realname
';
|
|
681 |
|
aFields['R
ealname']
=
'Realname
[0]
';
|
703 |
|
aFields['D
ateOfBirth
']
=
'DateOfBir
th
';
|
|
682 |
|
aFields['D
ateOfBirth
']
=
'DateOfBir
th
[0]
';
|
704 |
|
aFields['S
ex']
=
'Sex
';
|
|
683 |
|
aFields['S
ex']
=
'Sex
[0]
';
|
705 |
|
aFields['C
ountry']
=
'Country
';
|
|
684 |
|
aFields['C
ountry']
=
'Country
[0]
';
|
706 |
|
aFields['C
ity']
=
'City
';
|
|
685 |
|
aFields['C
ity']
=
'City
[0]
';
|
707 |
|
aFields['Z
IP']
=
'zip
';
|
|
686 |
|
aFields['Z
IP']
=
'zip
[0]
';
|
708 |
|
aFields['H
eadline']
=
'Headline
';
|
|
687 |
|
aFields['H
eadline']
=
'Headline
[0]
';
|
709 |
|
aFields['D
escription
Me']
=
'Descripti
onMe
';
|
|
688 |
|
aFields['D
escription
Me']
=
'Descripti
onMe
[0]
';
|
710 |
|
aFields[
'tags']
= 'Tags'
;
|
|
689 |
|
aFields[
'tags']
= 'Tags'
;
|
711 |
|
|
|
690 |
|
|
712 |
|
for(
fieldFrom
in
aFields
)
|
|
691 |
|
for(
var
fieldFrom
in
aFields
)
|
713 |
|
{
|
|
692 |
|
{
|
714 |
|
if(
!oXML.getE
lementsByT
agName( fi
eldFrom ).
length )
|
|
693 |
|
if(
!oXML.getE
lementsByT
agName( fi
eldFrom ).
length )
|
715 |
|
continue;
|
|
694 |
|
continue;
|
716 |
|
|
|
695 |
|
|
717 |
|
eFieldFrom
=
oXML.getEl
ementsByTa
gName(
fieldFrom
)[0];
|
|
696 |
|
var
eFieldFrom
=
oXML.getEl
ementsByTa
gName(
fieldFrom
)[0];
|
718 |
|
sValue
=
eFieldFrom
.firstChil
d.data;
|
|
697 |
|
var
sValue
=
eFieldFrom
.firstChil
d.data;
|
|
|
698 |
|
|
|
|
699 |
|
if(
fieldFrom
== 'DateOf
Birth' ) {
//convert
date
|
|
|
700 |
|
var aDate
= sValue.s
plit( '-'
);
|
|
|
701 |
|
sValue = p
arseInt( a
Date[2], 1
0 ) + '/'
+ parseInt
( aDate[1]
, 10 ) + '
/' + parse
Int( aDate
[0], 10 );
|
|
|
702 |
|
}
|
719 |
|
|
|
703 |
|
|
720 |
|
aFieldsTo
=
aFields[fi
eldFrom].s
plit(
','
);
|
|
704 |
|
var
aFieldsTo
=
aFields[fi
eldFrom].s
plit(
','
);
|
721 |
|
|
|
705 |
|
|
722 |
|
for(
i
in
aFieldsTo
)
|
|
706 |
|
for(
var
i
in
aFieldsTo
)
|
723 |
|
{
|
|
707 |
|
{
|
724 |
|
fieldTo =
aFieldsTo[
i];
|
|
708 |
|
fieldTo =
aFieldsTo[
i];
|
725 |
|
if( formTo
[fieldTo]
)
|
|
709 |
|
if( formTo
[fieldTo]
)
|
726 |
|
{
|
|
710 |
|
{
|
727 |
|
eField
To = formT
o[fieldTo]
;
|
|
711 |
|
eField
To = formT
o[fieldTo]
;
|
728 |
|
|
|
712 |
|
|
729 |
|
switch
( eFieldTo
.type )
|
|
713 |
|
switch
( eFieldTo
.type )
|
730 |
|
{
|
|
714 |
|
{
|
731 |
|
ca
se 'text':
|
|
715 |
|
ca
se 'text':
|
732 |
|
ca
se 'textar
ea':
|
|
716 |
|
ca
se 'textar
ea':
|
733 |
|
ca
se 'passwo
rd':
|
|
717 |
|
ca
se 'passwo
rd':
|
734 |
|
ca
se 'select
-one':
|
|
718 |
|
ca
se 'select
-one':
|
735 |
|
eFieldTo
.value = s
Value;
|
|
719 |
|
eFieldTo
.value = s
Value;
|
736 |
|
break;
|
|
720 |
|
break;
|
737 |
|
de
fault:
|
|
721 |
|
de
fault:
|
738 |
|
if( type
of eFieldT
o == 'obje
ct' ) //ra
dio
|
|
722 |
|
if( type
of eFieldT
o == 'obje
ct' ) //ra
dio
|
739 |
|
for(
n = 0; n
< eFieldTo
.length; n
++ )
|
|
723 |
|
for(
n = 0; n
< eFieldTo
.length; n
++ )
|
740 |
|
if( eField
To[n].valu
e == sValu
e )
|
|
724 |
|
if( eField
To[n].valu
e == sValu
e )
|
741 |
|
eField
To[n].chec
ked = true
;
|
|
725 |
|
eField
To[n].chec
ked = true
;
|
742 |
|
}
|
|
726 |
|
}
|
743 |
|
}
|
|
727 |
|
}
|
744 |
|
else if( f
ormTo[fiel
dTo + '_da
y'] && for
mTo[fieldT
o + '_mont
h'] && for
mTo[fieldT
o + '_year
'] ) //dat
e
|
|
|
745 |
|
{
|
|
|
746 |
|
aDate
= sValue.s
plit( '-'
);
|
|
|
747 |
|
|
|
|
748 |
|
if( aD
ate[2].sub
str( 0, 1
) == '0' )
//drop le
ading zero
|
|
|
749 |
|
aD
ate[2] = a
Date[2].su
bstr( 1, 1
);
|
|
|
750 |
|
|
|
|
751 |
|
formTo
[fieldTo +
'_year'].
value = a
Date[0];
|
|
|
752 |
|
formTo
[fieldTo +
'_month']
.value = a
Date[1];
|
|
|
753 |
|
formTo
[fieldTo +
'_day'].v
alue = a
Date[2];
|
|
|
754 |
|
}
|
|
|
755 |
|
}
|
|
728 |
|
}
|
756 |
|
}
|
|
729 |
|
}
|
757 |
|
}
|
|
730 |
|
}
|
758 |
|
}
|
|
731 |
|
}
|
759 |
|
oXMLHt
tpReq.send
( null );
|
|
732 |
|
oXMLHt
tpReq.send
( null );
|
760 |
|
|
|
733 |
|
|
761 |
|
formFr
om.Submit.
disabled =
false;
|
|
734 |
|
formFr
om.Submit.
disabled =
false;
|
762 |
|
formFr
om.Submit.
value = 'I
mport';
|
|
735 |
|
formFr
om.Submit.
value = 'I
mport';
|
763 |
|
}
|
|
736 |
|
}
|
|
|
737 |
|
|
|
|
738 |
|
function l
oadDynamic
Block( iBl
ockID, sUr
l ) {
|
|
|
739 |
|
if( $
== undefin
ed )
|
|
|
740 |
|
re
turn false
;
|
|
|
741 |
|
|
|
|
742 |
|
var $b
lock = $(
'#page_blo
ck_' + iBl
ockID );
|
|
|
743 |
|
|
|
|
744 |
|
$( '.b
oxContent'
, $block )
.html(
|
|
|
745 |
|
'<
div style=
"text-alig
n: center;
"><img src
="' + urlI
conLoading
+ '" alt=
"Loading..
." /></div
>'
|
|
|
746 |
|
);
|
|
|
747 |
|
|
|
|
748 |
|
$block
.load( sUr
l + '&page
Block=' +
iBlockID )
;
|
|
|
749 |
|
return
true;
|
|
|
750 |
|
}
|
|
|
751 |
|
|
|
|
752 |
|
function s
howItemEdi
tForm( ele
ment_id )
|
|
|
753 |
|
{
|
|
|
754 |
|
var ed
itFormWrap
= documen
t.getEleme
ntById( el
ement_id )
;
|
|
|
755 |
|
|
|
|
756 |
|
editFo
rmWrap.sty
le.width
= documen
t.body.cli
entWidth +
30 + "px"
;
|
|
|
757 |
|
editFo
rmWrap.sty
le.height
= (window
.innerHeig
ht ? (wind
ow.innerHe
ight + 30)
: screen.
height) +
"px";
|
|
|
758 |
|
editFo
rmWrap.sty
le.left
= getHori
zScroll1()
- 30 + "p
x";
|
|
|
759 |
|
editFo
rmWrap.sty
le.top
= getVert
Scroll1()
- 30 + "px
";
|
|
|
760 |
|
editFo
rmWrap.sty
le.display
= 'block'
;
|
|
|
761 |
|
}
|
|
|
762 |
|
|
|
|
763 |
|
function g
etHorizScr
oll1()
|
|
|
764 |
|
{
|
|
|
765 |
|
if (na
vigator.ap
pName == "
Microsoft
Internet E
xplorer")
|
|
|
766 |
|
re
turn docum
ent.docume
ntElement.
scrollLeft
;
|
|
|
767 |
|
else
|
|
|
768 |
|
re
turn windo
w.pageXOff
set;
|
|
|
769 |
|
}
|
|
|
770 |
|
|
|
|
771 |
|
function g
etVertScro
ll1()
|
|
|
772 |
|
{
|
|
|
773 |
|
if (na
vigator.ap
pName == "
Microsoft
Internet E
xplorer")
|
|
|
774 |
|
re
turn docum
ent.docume
ntElement.
scrollTop;
|
|
|
775 |
|
else
|
|
|
776 |
|
re
turn windo
w.pageYOff
set;
|
|
|
777 |
|
}
|