function CrossOriginRequest(method,url){
        var x = new XMLHttpRequest();
        if (typeof XDomainRequest !== "undefined"){
            x = new XDomainRequest();
        }
        x.open(method,url,true);
        return x;
      }
// Centralized cross origin request so that 2
Centralized cross origin request so that 2
Centralized cross origin request so that 2
function CrossOriginRequest(method,url){
        var x = new XMLHttpRequest();
        if (typeof XDomainRequest !== "undefined"){
            x = new XDomainRequest();
        }
        x.open(method,url,true);
        return x;
      }
function CrossOriginRequest ( method , url ) { var x = new XMLHttpRequest ( ) ; if ( typeof XDomainRequest !== "undefined" ) { x = new XDomainRequest ( ) ; } x . open ( method , url , true ) ; return x ; }
Centralized cross origin request so that 2
Centralized cross origin request so that 2