function installHelp()
{
   installhelp = open('/installhelp.asp', 'installhelp', 'width=575,height=435,scrollbars=no,resizable=no');
   installhelp.focus();
}

function ValidateProductUpdates()
{
  if(!isEmail(document.ProductUpdates.Email.value))
  {
    alert("Please enter a valid e-mail address.")
    document.ProductUpdates.Email.focus();
    return(false);
  }

  return(true);
}

function isEmail(s)
{
  var newString = s.trim();

  var emailFilter = /^.+@.+\..{2,}$/;
  var illegalChars = /[\(\)\<\>\,\;\:\\\/\"\[\] ]/

  return(emailFilter.test(newString) && !newString.match(illegalChars));
}

String.prototype.trim  = function() {return this.ltrim().rtrim()}
String.prototype.ltrim = function() {return this.replace(/^\s+/g, "")}
String.prototype.rtrim = function() {return this.replace(/\s+$/g, "")}

