keep obsolete file in samba4 source directory.
[tprouty/samba.git] / source4 / lib / appweb / ejs-2.0 / ejs / lib / global.js
1 /*
2  *      @file   global.js
3  *      @brief  Misc global functions
4  *      @copy   Copyright (c) Mbedthis Software LLC, 2005-2006. All Rights Reserved.
5  */
6
7 /******************************************************************************/
8
9 function min(a, b) 
10 {
11         if (a < b) {
12                 return a;
13         } else {
14                 return b;
15         }
16 }
17
18
19 function max(a, b) 
20 {
21         if (a > b) {
22                 return a;
23         } else {
24                 return b;
25         }
26 }
27
28 function abs(a)
29 {
30         if (a < 0) {
31                 return -a;
32         }
33         return a;
34 }