-
Notifications
You must be signed in to change notification settings - Fork 6
/
b2spell.php
97 lines (88 loc) · 2.69 KB
/
b2spell.php
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<HTML>
<HEAD><TITLE>Loading Spell Checker</TITLE>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function window_onload() {
document.SPELLDATA.formname.value=opener.document.SPELLDATA.formname.value
document.SPELLDATA.subjectname.value=opener.document.SPELLDATA.subjectname.value
document.SPELLDATA.messagebodyname.value=opener.document.SPELLDATA.messagebodyname.value
document.SPELLDATA.companyID.value=opener.document.SPELLDATA.companyID.value
document.SPELLDATA.language.value=opener.document.SPELLDATA.language.value
document.SPELLDATA.opener.value=opener.document.SPELLDATA.opener.value
document.SPELLDATA.action=opener.document.SPELLDATA.formaction.value
var flen=opener.document.forms.length
var index=flen
for(i=0; i<flen; i++){
if(opener.document.forms[i].name==document.SPELLDATA.formname.value){
index=i
i=flen
}
}
if(index<flen){
var ilen=opener.document.forms[index].elements.length
var indexcontrol=ilen
if(document.SPELLDATA.subjectname.value!=""){
for(i=0; i<ilen; i++){
if(opener.document.forms[index].elements[i].name==document.SPELLDATA.subjectname.value){
indexcontrol=i
i=ilen
}
}
if(indexcontrol<ilen)
document.SPELLDATA.subject.value=opener.document.forms[index].elements[indexcontrol].value
}
if(document.SPELLDATA.messagebodyname.value!=""){
indexcontrol=ilen
for(i=0; i<ilen; i++){
if(opener.document.forms[index].elements[i].name==document.SPELLDATA.messagebodyname.value){
indexcontrol=i
i=ilen
}
}
if(indexcontrol<ilen)
document.SPELLDATA.messagebody.value=opener.document.forms[index].elements[indexcontrol].value
}
document.SPELLDATA.submit()
}else{
alert("no form found. Check java function call")
window.close()
}
}
//-->
</SCRIPT>
</HEAD>
<BODY LANGUAGE=javascript onload="return window_onload()">
<FORM action="" method=post name=SPELLDATA LANGUAGE=javascript>
<H1>Loading Spell Checker. Please wait</H1>
<INPUT name="formname" type=hidden >
<INPUT name="messagebodyname" type=hidden >
<INPUT name="subjectname" type=hidden >
<INPUT name="companyID" type=hidden >
<INPUT name="language" type=hidden >
<INPUT name="opener" type=hidden >
<INPUT name="closer" type=hidden value="finish.asp">
<INPUT name="IsHTML" type=hidden value=0>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<TEXTAREA name=subject></TEXTAREA>
<TEXTAREA name=messagebody></TEXTAREA>
</FORM>
</BODY>
</HTML>