source: other-projects/trunk/greenstone3-extension/mat/resources/script/status.js@ 17693

Last change on this file since 17693 was 17693, checked in by cc108, 15 years ago

new resources folder

File size: 983 bytes
Line 
1function checkStatus(){
2var x = "";
3var prefix ="";
4var 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
36function autoSubmit()
37{
38//alert("autoSubmit1");
39setTimeout('document.collectionForm.submit()',5000);
40}
41
42function autoSubmit2()
43{
44//alert("autoSubmit2");
45setTimeout('document.aForm.submit()',5000);
46}
47
Note: See TracBrowser for help on using the repository browser.