/[clipping]/templates/js_c_news.tt2
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /templates/js_c_news.tt2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (hide annotations) (vendor branch)
Fri Jan 16 22:46:52 2004 UTC (20 years, 3 months ago) by dpavlin
Branch: MAIN, phperl
CVS Tags: r20040116, HEAD
Changes since 1.1: +0 -0 lines
initial import of downloaded version

1 dpavlin 1.1 <SCRIPT language="javascript">
2     function Validation() {
3    
4     var txt = '';
5    
6     if (document.forms[0].c_source_fk[0].selected) {
7     txt += '- source is mandatory\n';
8     }
9    
10     if (document.forms[0].c_customer_fk[0].selected) {
11     txt += '- customer is mandatory\n';
12     }
13    
14     if (document.forms[0].c_type_fk[0].selected) {
15     txt += '- type is mandatory\n';
16     }
17    
18     if (document.forms[0].c_news_title.value == '') {
19     txt += '- title is mandatory\n';
20     }
21    
22     if (document.forms[0].c_news_abstract.value == '') {
23     txt += '- abstract is mandatory\n';
24     }
25    
26     if (txt == '') {
27     return true;
28     } else {
29     alert (txt);
30     return false;
31     }
32     } // End of validation
33     </SCRIPT>

  ViewVC Help
Powered by ViewVC 1.1.26