Line | |
---|
1 | function checkStatus(){
|
---|
2 | var x = "";
|
---|
3 | var prefix ="";
|
---|
4 | var o = document.forms[0];
|
---|
5 |
|
---|
6 | for(var i = 0; i<o.length; i++){
|
---|
7 | var a = document.forms[0].elements[i];
|
---|
8 | if(a.type=="checkbox" && a.checked){
|
---|
9 | x = x+"H";
|
---|
10 | }
|
---|
11 |
|
---|
12 | if(a.type=="checkbox" && !a.checked){
|
---|
13 | x = x+"S";
|
---|
14 | }
|
---|
15 | if(a.type=="radio" && a.checked && a.id=="C1"){
|
---|
16 | prefix = "dublin_";
|
---|
17 | }
|
---|
18 | if(a.type=="radio" && a.checked && a.id=="C2"){
|
---|
19 | prefix = "extracted_";
|
---|
20 | }
|
---|
21 | if(a.type=="radio" && a.checked && a.id=="C3"){
|
---|
22 | prefix = "both_";
|
---|
23 | }
|
---|
24 | if(a.type=="radio" && a.id =="R1" && a.checked){
|
---|
25 | x = x+"_best.html"
|
---|
26 | }
|
---|
27 |
|
---|
28 | if(a.type=="radio" && a.id =="R2" && a.checked){
|
---|
29 | x = x+"_worst.html"
|
---|
30 | }
|
---|
31 | }
|
---|
32 | x = prefix+x;
|
---|
33 | window.open(x);
|
---|
34 | }
|
---|
35 |
|
---|
36 | function autoSubmit()
|
---|
37 | {
|
---|
38 | //alert("autoSubmit1");
|
---|
39 | setTimeout('document.collectionForm.submit()',5000);
|
---|
40 | }
|
---|
41 |
|
---|
42 | function autoSubmit2()
|
---|
43 | {
|
---|
44 | //alert("autoSubmit2");
|
---|
45 | setTimeout('document.aForm.submit()',5000);
|
---|
46 | }
|
---|
47 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.