 // global_helpers.js
 // 3SENS - 06/2005
 // Miscellaneous JS utilities

 // This source code is the sole property of Troisième Sens and cannot
 // be used or reproduced without Troisième Sens prior consent

 // =======================================================
 // PlaySound
 // =======================================================
 function PlaySound(sTag, sTarget)
 {
  if (document.getElementById("playsound") != null)
  {
      document.getElementById("playsound").src = "global_ramgen.php?tag=" + sTag + "&sound=" + sTarget;
  }
  return(false);
 }

 // =======================================================
 // NavigateLink
 // =======================================================
 function NavigateLink(sTarget, bSpawn)
 {
  oMatcher = /^.+?:\/\//;
  if (! oMatcher.test(sTarget))
  {
      sTarget = "http://" + sTarget;
  }
  if (bSpawn)
  {
      open(sTarget,"external","");
  }
  else
  {
      location.href = sTarget;
  }
  return(false);
 }
