combine ticket notification scrips, #15353
[freeside.git] / httemplate / elements / rs_init_object.html
1 <%doc>
2
3 Example:
4
5   include( '/elements/rs_init_object.html' );
6
7 </%doc>
8 <SCRIPT TYPE="text/javascript">
9
10   function rs_init_object() {
11     var A;
12     try {
13       A=new ActiveXObject("Msxml2.XMLHTTP");
14     } catch (e) {
15       try {
16         A=new ActiveXObject("Microsoft.XMLHTTP");
17       } catch (oc) {
18         A=null;
19       }
20     }
21     if(!A && typeof XMLHttpRequest != "undefined")
22       A = new XMLHttpRequest();
23     if (!A)
24       alert("Can't create XMLHttpRequest object");
25     return A;
26
27   }
28
29 </SCRIPT>