-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgScript.js
More file actions
78 lines (74 loc) · 2.29 KB
/
gScript.js
File metadata and controls
78 lines (74 loc) · 2.29 KB
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
<script type="text/javascript">
function validate(btnId){
switch(btnId){
case "j_id0:form:orgBtn":
return validateOrg();
break;
case "j_id0:form:comBtn":
return validateCom();
break;
case "j_id0:form:contactBtn":
return validateContact();
break;
case "j_id0:form:projectBtn":
return validateProject();
break;
case "j_id0:form:fundBtn":
return validateFund();
break;
case "j_id0:form:dateBtn":
return validateDates();
break;
case "j_id0:form:outcomesBtn":
return validateOutcomes();
break;
case "j_id0:form:submit":
return validateSubmit();
break;
default:
alert("Undefined action");
}
return false;
}
function validateOrg(){
return true;
}
function validateCom(){
return true;
}
function validateContact(){
return true;
}
function validateProject(){
return true;
}
function validateFund(){
return true;
}
function validateDates(){
return true;
}
function validateOutcomes(){
return true;
}
function validateSubmit(){
var chkBx= document.getElementById("j_id0:form:chkBx").checked;
if(chkBx){
return true;
}
else
alert("Please, confirm to proceed");
return false;
}
function enableCR(){
document.getElementById("capital").className='unhide';
document.getElementById("revenue").className='unhide';
}
function redirect1(){
alert("Redirecting to Login Page...");
return true;
}
function getId(id){
alert("id-> "+id);
}
</script>