function sndMsg(msg) {
  return snd(msg, null);
};
function snd(url, data) {
  var req = false;
  try {
    req = new XMLHttpRequest;
  } catch (e) {
    try {
      req = new ActiveXObject('Msxml2.XMLHTTP');
    } catch (e) {
      try {
        req = new ActiveXObject('Microsoft.XMLHTTP');
      } catch (e) {
        req = false;
      };
    };
  };
  if (!req) {
    alert('Error initializing XMLHttpRequest!');
  };
  req.open('GET', url, false);
  req.send(data);
  return req.responseText;
};