function checkEmail(emailAddress) 
{
  var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
  if (!filter.test(emailAddress)) 
  {
    return false;
  }
  else
  {
    return true;
  }
}

function submitEmail()
{
  var theForm = document.subEmail;
  if (theForm.email.value == "")
  {
    alert("Please enter an email address.");
  }
  else if (!checkEmail(theForm.email.value))
  {
    alert("Please enter an email address in the format username@domain.xxx");
  }
  else
  {
    theForm.action = "/aboutsec_installed-sound_getEmail";
    theForm.submit();
  }
}

function popupVideo(url,width,height) 
{
  var fromLeft = (screen.width-800)/2;
  var fromTop = (screen.height-500)/2;
  var Location = url;
  cwinx = window.open(Location,'cwinx','width='+ width + ',height=' + height + ',scrollbars=0,location=no,resizable=no,left=' + fromLeft + ',top=' + fromTop + ',toolbar=no');
  cwinx.focus();
}
