-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsearch.php
466 lines (427 loc) · 21.1 KB
/
search.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
<?php
/**
* Searches based on user query.
*
* Genmod: Genealogy Viewer
* Copyright (C) 2005 - 2012 Genmod Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* @package Genmod
* @subpackage Display
* @version $Id: search.php 29 2022-07-17 13:18:20Z Boudewijn $
*/
/**
* Inclusion of the configuration file
*/
require("config.php");
$search_controller = new SearchController("search");
PrintHeader($search_controller->pagetitle);
?>
<script language="JavaScript" type="text/javascript">
<!--
function checknames(frm) {
if (frm.action[1].checked) {
if (frm.year.value!="") {
message=true;
if (frm.firstname.value!="") message=false;
if (frm.lastname.value!="") message=false;
if (frm.place.value!="") message=false;
if (message) {
alert("<?php print GM_LANG_invalid_search_input?>");
frm.firstname.focus();
return false;
}
}
}
if (frm.action[0].checked) {
if (frm.query.value.length<1) {
alert("<?php print GM_LANG_search_more_chars?>");
frm.query.focus();
return false;
}
}
return true;
}
//-->
</script>
<?php
print "<div id=\"SearchPageTitle\">";
print "<span class=\"PageTitleName\">".GM_LANG_search_gedcom."</span>";
print "</div>";
if ($search_controller->view == "preview") {
// to be done
// print "</td><tr><td align=\"center\">".$logstring."</td></tr></table>";
}
else {
print "<form method=\"post\" onsubmit=\""?>return checknames(this);<?php print " \" action=\"".SCRIPT_NAME."\">";
print "<div id=\"SearchOptions\">";
// start of new searchform
print "<table class=\"NavBlockTable\">\n";
print "<tr><td colspan=\"2\" class=\"NavBlockHeader\">";
PrintHelpLink("search_options_help", "qm","search_options");
print GM_LANG_search_options;
print "</td></tr>";
// If more than one GEDCOM, switching is allowed AND DB mode is set, let the user select
if ((count($GEDCOMS) > 1) && (SystemConfig::$ALLOW_CHANGE_GEDCOM)) {
print "<tr><td class=\"NavBlockLabel\">";
print GM_LANG_search_geds;
print "</td><td class=\"NavBlockField\">";
echo '<input type="checkbox" onclick="CheckAllGed(this)" />'.GM_LANG_select_deselect_all.'<br>';
foreach ($GEDCOMS as $key=>$ged) {
SwitchGedcom($key);
if ($gm_user->username != "" || !GedcomConfig::$MUST_AUTHENTICATE) {
$str = "sg".$key;
print "<input type=\"checkbox\" ";
if (($key == GedcomConfig::$GEDCOMID) && ($search_controller->action == "")) print "checked=\"checked\" ";
else {
if (in_array($key, $search_controller->searchgeds)) print "checked=\"checked\" ";
}
print "value=\"yes\" class=\"checkged\" name=\"".$str."\""." />".$GEDCOMS[$key]["title"]."<br />";
}
}
SwitchGedcom();
print "</td></tr>\n";
}
// Show associated persons/fams?
print "<tr><td class=\"NavBlockLabel\">";
print GM_LANG_search_asso_label;
print "</td><td class=\"NavBlockField\">";
print "<input type=\"checkbox\" name=\"showasso\" value=\"on\" ";
if ($search_controller->showasso == "on") print "checked=\"checked\" ";
print "/>".GM_LANG_search_asso_text;
print "</td></tr>\n";
// switch between general and soundex
print "<tr><td class=\"NavBlockLabel\">".GM_LANG_search_type;
print "</td><td class=\"NavBlockField\">";
print "<input type=\"radio\" name=\"action\" value=\"general\" ";
if ($search_controller->action == "general") print "checked=\"checked\" ";
print "onclick=\"expand_layer('SearchGeneral'); expand_layer('SearchSoundex');\" />".GM_LANG_search_general;
print "<br /><input type=\"radio\" name=\"action\" value=\"soundex\" ";
if (($search_controller->action == "soundex") || ($search_controller->action == "")) print "checked=\"checked\" ";
print "onclick=\"expand_layer('SearchGeneral'); expand_layer('SearchSoundex');\" />".GM_LANG_search_soundex;
print "</td></tr>\n";
print "</table>\n";
print "</div>";
// The first searchform
print "<div id=\"SearchGeneral\" style=\"display: ";
if ($search_controller->action == "soundex" || $search_controller->action == "") print "none\">";
else print "block\">";
print "\n\t<table class=\"NavBlockTable\">\n";
// search terms
print "\n\t<tr><td class=\"NavBlockHeader\" colspan=\"4\">";
PrintHelpLink("search_enter_terms_help", "qm", "search_general");
print GM_LANG_search_general;
print "</td></tr>";
print "<tr><td rowspan=\"2\" class=\"NavBlockLabel\">".GM_LANG_search_inrecs;
print "</td><td rowspan=\"2\" class=\"NavBlockField\">";
print "<input type=\"checkbox\"";
if ((!is_null($search_controller->srindi)) || ($search_controller->action == "")) print " checked=\"checked\"";
print " value=\"yes\" name=\"srindi\" />".GM_LANG_search_indis."<br />";
print "<input type=\"checkbox\"";
if (!is_null($search_controller->srfams)) print " checked=\"checked\"";
print " value=\"yes\" name=\"srfams\" />".GM_LANG_search_fams."<br />";
if (PrivacyFunctions::ShowSourceFromAnyGed()) {
print "<input type=\"checkbox\"";
if (!is_null($search_controller->srsour)) print " checked=\"checked\"";
print " value=\"yes\" name=\"srsour\" />".GM_LANG_search_sources."<br />";
print "<input type=\"checkbox\"";
if (!is_null($search_controller->srrepo)) print " checked=\"checked\"";
print " value=\"yes\" name=\"srrepo\" />".GM_LANG_search_repos."<br />";
}
print "<input type=\"checkbox\"";
if (!is_null($search_controller->srmedia)) print " checked=\"checked\"";
print " value=\"yes\" name=\"srmedia\" />".GM_LANG_search_media."<br />";
print "<input type=\"checkbox\"";
if (!is_null($search_controller->srnote)) print " checked=\"checked\"";
print " value=\"yes\" name=\"srnote\" />".GM_LANG_search_notes."<br />";
print "</td>";
print "<td class=\"NavBlockLabel\">";
print GM_LANG_enter_terms;
print "</td><td class=\"NavBlockField\"><input tabindex=\"1\" type=\"text\" name=\"query\" value=\"";
if ($search_controller->action == "general" && !is_null($search_controller->myquery)) print htmlspecialchars($search_controller->myquery);
else print "";
print "\" /></td></tr>";
// Choice where to search
print "<tr><td class=\"NavBlockLabel\">".GM_LANG_search_tagfilter."</td>";
print "<td class=\"NavBlockField\"><input type=\"radio\" name=\"tagfilter\" value=\"on\" ";
if (($search_controller->tagfilter == "on") || ($search_controller->tagfilter == "")) print "checked=\"checked\" ";
print " />".GM_LANG_search_tagfon."<br /><input type=\"radio\" name=\"tagfilter\" value=\"off\" ";
if ($search_controller->tagfilter == "off") print "checked=\"checked\"";
print " />".GM_LANG_search_tagfoff;
print "</td></tr>\n";
print "<tr><td class=\"NavBlockFooter\" colspan=\"4\">";
print "<input tabindex=\"2\" type=\"submit\" value=\"".GM_LANG_search."\" /></td></tr>\n";
print "<table></td></tr>";
print "</table>";
print "</div>";
// The second searchform
print "<div id=\"SearchSoundex\" style=\"display: ";
if ($search_controller->action == "soundex" || $search_controller->action == "") print "block\">";
else print "none\">";
print "<table class=\"NavBlockTable SearchSoundexNavBlockTable\">\n";
print "<tr><td class=\"NavBlockHeader\" colspan=\"4\">";
PrintHelpLink("soundex_search_help", "qm");
print GM_LANG_soundex_search."</td></tr>";
print "<tr><td class=\"NavBlockLabel\">";
print GM_LANG_lastname_search;
print "</td><td class=\"NavBlockField\"><input tabindex=\"3\" type=\"text\" name=\"lastname\" value=\"";
if ($search_controller->action == "soundex") print $search_controller->mylastname;
print "\" /></td>";
print "<td class=\"NavBlockLabel\">";
print GM_LANG_search_place;
print "</td><td class=\"NavBlockField\"><input tabindex=\"5\" type=\"text\" name=\"place\" value=\"";
if ($search_controller->action == "soundex") print $search_controller->myplace;
print "\" /></td></tr>\n";
print "<tr><td class=\"NavBlockLabel\">";
print GM_LANG_firstname_search;
print "</td><td class=\"NavBlockField\">";
print "<input tabindex=\"4\" type=\"text\" name=\"firstname\" value=\"";
if ($search_controller->action == "soundex") print $search_controller->myfirstname;
print "\" /></td>\n";
print "<td class=\"NavBlockLabel\">";
print GM_LANG_search_year;
print "</td><td class=\"NavBlockField\"><input tabindex=\"6\" type=\"text\" name=\"year\" value=\"";
if ($search_controller->action == "soundex") print $search_controller->myyear;
print "\" /></td>";
print "</tr>\n";
print "<tr><td class=\"NavBlockLabel\" >";
print GM_LANG_search_soundextype;
print "</td><td class=\"NavBlockField\"><input type=\"radio\" name=\"soundex\" value=\"Russell\" ";
if (($search_controller->soundex == "Russell") || ($search_controller->soundex == "")) print "checked=\"checked\" ";
print " />".GM_LANG_search_russell."<br /><input type=\"radio\" name=\"soundex\" value=\"DaitchM\" ";
if ($search_controller->soundex == "DaitchM") print "checked=\"checked\" ";
print " />".GM_LANG_search_DM;
print "</td>";
print "<td class=\"NavBlockLabel\">";
print GM_LANG_search_prtnames;
print "</td><td class=\"NavBlockField\"><input type=\"radio\" name=\"nameprt\" value=\"hit\" ";
if (($search_controller->nameprt == "hit")) print "checked=\"checked\" ";
print " />".GM_LANG_search_prthit."<br /><input type=\"radio\" name=\"nameprt\" value=\"all\" ";
if ($search_controller->nameprt == "all" || ($search_controller->nameprt == "")) print "checked=\"checked\" ";;
print " />".GM_LANG_search_prtall;
print "</td>";
print "</tr>\n";
print "<tr><td class=\"NavBlockLabel\">";
print GM_LANG_search_sorton;
print "</td><td class=\"NavBlockField\"><input type=\"radio\" name=\"sorton\" value=\"last\" ";
if (($search_controller->sorton == "last") || ($search_controller->sorton == "")) print "checked=\"checked\" ";
print " />".GM_LANG_lastname_search."<br /><input type=\"radio\" name=\"sorton\" value=\"first\" ";
if ($search_controller->sorton == "first") print "checked=\"checked\" ";;
print " />".GM_LANG_firstname_search;
print "</td>";
print "<td class=\"NavBlockLabel\" colspan=\"2\"> </td></tr>";
print "<tr><td class=\"NavBlockFooter\" colspan=\"4\">";
print "<input tabindex=\"7\" type=\"submit\" value=\"";
print GM_LANG_search;
print "\" /></td></tr>\n";
print "</table>";
print "</div>";
print "</form>";
}
// ---- section to search and display results on a general keyword search
if ($search_controller->action == "general") {
if (!is_null($search_controller->query) && $search_controller->query != "") {
?>
<script type="text/javascript">
<!--
function tabswitch(n) {
if (n==7) n = 0;
var tabid = new Array('0','indis','fams','sources','repos','media','notes');
// show all tabs ?
var disp='none';
if (n==0) disp='block';
// reset all tabs areas
for (i=1; i<tabid.length; i++) document.getElementById(tabid[i]).style.display=disp;
if ('<?php echo $search_controller->view; ?>' != 'preview') {
// current tab area
if (n>0) document.getElementById(tabid[n]).style.display='block';
// empty tabs
for (i=0; i<tabid.length; i++) {
var elt = document.getElementById('door'+i);
elt.className = '';
if (document.getElementById('no_tab'+i)) { // empty ?
if (<?php if ($gm_user->username != "") echo 'true'; else echo 'false';?>) {
elt.style.display='block';
elt.className='TabDoorEmpty';
}
else elt.style.display='none'; // empty and not editable ==> hide
}
else elt.style.display='block';
}
// current door
for (i=0; i<tabid.length; i++) {
if (i != n) document.getElementById('door'+i).className+=' TabDoorUnselected';
else document.getElementById('door'+i).className+=' TabDoorSelected';
}
return false;
}
}
//-->
</script>
<div id="SearchGeneralResult">
<div id="TabDoor">
<dl>
<dd id="door1"><a href="javascript:;" onclick="tabswitch(1)" ><?php print GM_LANG_search_indis." (".count($search_controller->indi_total).")";?></a></dd>
<dd id="door2"><a href="javascript:;" onclick="tabswitch(2)" ><?php print GM_LANG_search_fams." (".count($search_controller->fam_total).")";?></a></dd>
<dd id="door3"><a href="javascript:;" onclick="tabswitch(3)" ><?php print GM_LANG_search_sources." (".count($search_controller->sour_total).")";?></a></dd>
<dd id="door4"><a href="javascript:;" onclick="tabswitch(4)" ><?php print GM_LANG_search_repos." (".count($search_controller->repo_total).")";?></a></dd>
<dd id="door5"><a href="javascript:;" onclick="tabswitch(5)" ><?php print GM_LANG_search_media." (".count($search_controller->media_total).")";?></a></dd>
<dd id="door6"><a href="javascript:;" onclick="tabswitch(6)" ><?php print GM_LANG_search_notes." (".count($search_controller->note_total).")";?></a></dd>
<dd id="door0"><a href="javascript:;" onclick="tabswitch(0)" ><?php print GM_LANG_all?></a></dd>
</dl>
</div>
<div id="SearchGeneralResultContent">
<?php
// Print the indis
print "<div id=\"indis\" class=\"TabPage\" style=\"display:none;\" >";
if (!SearchFunctions::PrintIndiSearchResults($search_controller)) print "<div id=\"no_tab1\"></div>";
print "</div>";
// print the fams
print "<div id=\"fams\" class=\"TabPage\" style=\"display:none;\" >";
if (!SearchFunctions::PrintFamSearchResults($search_controller)) print "<div id=\"no_tab2\"></div>";
print "</div>";
// Print the sources
print "<div id=\"sources\" class=\"TabPage\" style=\"display:none;\" >";
if (!SearchFunctions::PrintSourceSearchResults($search_controller)) print "<div id=\"no_tab3\"></div>";
print "</div>";
// Print the repositories
print "<div id=\"repos\" class=\"TabPage\" style=\"display:none;\" >";
if (!SearchFunctions::PrintRepoSearchResults($search_controller)) print "<div id=\"no_tab4\"></div>";
print "</div>";
// Print the media
print "<div id=\"media\" class=\"TabPage\" style=\"display:none;\" >";
if (count($search_controller->media_total) > 0) {
$ctm = count($search_controller->printmedia);
print "\n\t<table class=\"DetailListTable SearchListTable\">\n\t\t<tr><td class=\"DetailListHeader\"";
if($ctm > 12) print " colspan=\"2\"";
print "><img src=\"".GM_IMAGE_DIR."/".$GM_IMAGES["media"]["small"]."\" border=\"0\" title=\"".GM_LANG_media."\" alt=\"".GM_LANG_media."\" /> ";
print GM_LANG_media;
print "</td></tr><tr><td class=\"DetaillistContent\"><ul>";
$media_private = array();
$i=1;
foreach ($search_controller->printmedia as $key => $mediakey) {
$media = $search_controller->smedialist[$mediakey];
if (!$media->PrintListMedia()) $media_private[$media->key] = true;
if ($i==ceil($ctm/2) && $ctm>12) print "</ul></td><td class=\"ListTableContent\"><ul>\n";
$i++;
}
print "\n\t\t</ul></td>\n\t\t</tr>";
print "<tr><td colspan=\"".($ctm>12 ? 2 : 1)."\"class=\"DetailListFooter\">".GM_LANG_total_media." ".count($search_controller->media_total);
if (count($search_controller->media_hide) > 0) print " -- ".GM_LANG_hidden." ".count($search_controller->media_hide);
if (count($media_private)>0) print " -- ".GM_LANG_private." ".count($media_private);
if (count($media_private) > 0 || count($search_controller->media_hide) > 0) PrintHelpLink("privacy_error_help", "qm");
print "</td></tr>";
print "</table><br />";
}
else print "<div id=\"no_tab5\"></div>";
print "</div>";
// Print the notes
print "<div id=\"notes\" class=\"TabPage\" style=\"display:none;\" >";
if (!SearchFunctions::PrintNoteSearchResults($search_controller)) print "<div id=\"no_tab6\"></div>";
print "</div>";
print "</div>"; // End result content div
print "</div>"; // End result div
}
}
// ----- section to search and display results for a Soundex last name search
if ($search_controller->action == "soundex") {
if ($search_controller->soundex == "DaitchM") NameFunctions::DMsoundex("", "closecache");
// $query = ""; // Stop function PrintReady from doing strange things to accented names
if (!is_null($search_controller->lastname) || !is_null($search_controller->firstname) || !is_null($search_controller->place)) {
$ct = count($search_controller->printindiname);
if ($ct > 0) {
print "<div id=\"SearchSoundexResult\">";
print "\n\t<table class=\"DetailListTable SearchListTable\">\n\t\t<tr>\n\t\t";
$extrafams = false;
if (count($search_controller->printfamname) > 0) $extrafams = true;
if ($extrafams) {
print "<td class=\"DetailListHeader\"><img src=\"".GM_IMAGE_DIR."/".$GM_IMAGES["indis"]["small"]."\" border=\"0\" alt=\"\" /> ".GM_LANG_people."</td>";
print "<td class=\"DetailListHeader\"><img src=\"".GM_IMAGE_DIR."/".$GM_IMAGES["sfamily"]["small"]."\" border=\"0\" alt=\"\" /> ".GM_LANG_families."</td>";
}
else print "<td colspan=\"2\" class=\"DetailListHeader\"><img src=\"".GM_IMAGE_DIR."/".$GM_IMAGES["indis"]["small"]."\" border=\"0\" alt=\"\" /> ".GM_LANG_people."</td>";
print "</tr><tr>\n\t\t<td class=\"DetaillistContent\"><ul>";
$i=1;
$indi_private = array();
foreach($search_controller->printindiname as $pkey => $pvalue) {
$person = $search_controller->sindilist[JoinKey($pvalue[1], $pvalue[2])];
if (!$person->PrintListPerson(true, false, "", $pvalue[4], "", $pvalue[3])) $indi_private[$person->key] = true;;
print "\n";
if (!$extrafams && $i == ceil($ct/2) && $ct>12) print "</ul></td><td class=\"ListTableContent\"><ul>\n";
$i++;
}
print "\n\t\t</ul></td>";
// Start printing the associated fams
if ($extrafams) {
print "\n\t\t<td class=\"DetaillistContent\"><ul>";
$fam_private = array();
foreach($search_controller->printfamname as $pkey => $pvalue) {
$fam = Family::GetInstance($pvalue[1], "", $pvalue[2]);
if (!$fam->PrintListFamily(true, "", $pvalue[0], $pvalue[3])) $fam_private[$fam->key] = true;
print "\n";
}
print "\n\t\t</ul> </td>";
}
// start printing the table footer
print "\n\t\t</tr>\n\t";
print "<tr><td class=\"DetailListFooter\"";
if ((!$extrafams) && ($ct > 9)) print " colspan=\"2\">";
else print ">";
print GM_LANG_total_indis." ".count($search_controller->indi_total);
if (count($indi_private)>0) print " (".GM_LANG_private." ".count($indi_private).")";
if (count($search_controller->indi_hide)>0) print " -- ".GM_LANG_hidden." ".count($search_controller->indi_hide);
if (count($indi_private)>0 || count($search_controller->indi_hide)>0) PrintHelpLink("privacy_error_help", "qm");
print "</td>";
if ($extrafams) {
print "<td class=\"DetailListFooter\">".GM_LANG_total_fams." ".count($search_controller->fam_total);
if (count($fam_private)>0) print " (".GM_LANG_private." ".count($fam_private).")";
if (count($search_controller->fam_hide)>0) print " -- ".GM_LANG_hidden." ".count($search_controller->fam_hide);
if (count($fam_private)>0 || count($search_controller->fam_hide)>0) PrintHelpLink("privacy_error_help", "qm");
print "</td>";
}
print "</tr>";
print "</table></div>";
}
else if (is_null($search_controller->topsearch)) print "<div class=\"SearchWarning\">".GM_LANG_no_results."</div>\n\t\t";
}
else if (is_null($search_controller->topsearch)) print "<div class=\"SearchWarning\">".GM_LANG_no_results."</div>\n\t\t";
}
if ($search_controller->action == "general") {
if(!is_null($search_controller->srindi) && count($search_controller->indi_total) > 0) $tab = 1;
else if(count($search_controller->fam_total) > 0) $tab = 2;
else if(count($search_controller->sour_total) > 0) $tab = 3;
else if(count($search_controller->repo_total) > 0) $tab = 4;
else if(count($search_controller->media_total) > 0) $tab = 5;
else if(count($search_controller->note_total) > 0) $tab = 6;
else if ($search_controller->query != "") {
print "<div class=\"SearchWarning\">".GM_LANG_no_results."</div>";
print "<div id=\"no_tab0\"></div>";
$tab = "0";
}
else $tab = 0;
if ($tab != "0") {
print "<script type=\"text/javascript\">\n<!--\n";
if ($search_controller->isPrintPreview()) print "tabswitch(0)";
else print "tabswitch($tab)";
print "\n//-->\n</script>\n";
}
else {
print "<script type=\"text/javascript\">\n<!--\n";
print "document.getElementById('SearchGeneralResult').style.display='none';";
print "\n//-->\n</script>\n";
}
}
PrintFooter();
?>