var win = null;
function newWindow(mypage,myname,w,h,features) {
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
}

var AlertMessageString = "Your message suggests that you may be looking for software produced by Symantec.\nWe are not that company!\n\n";
AlertMessageString += "Symantec can be found at: www.symantec.com\n\n";
AlertMessageString += "Do you still want to send this message?";

function ValidateForm() {
if (document.contactform.name.value != "" && document.contactform.email.value != "" && document.contactform.message.value != "") {
  MessageText = " " + (document.contactform.message.value).toLowerCase();
  if ((MessageText.indexOf("norton") > 0) || (MessageText.indexOf("virus") > 0) || (MessageText.indexOf("upgrade") > 0)) {
    if (window.confirm (AlertMessageString)) {
    return true;
    } else {
    return false;
    }
  }
} else alert("You must enter at least your name, e-mail and a message.");
}

function ValidateFormButton() {
if (document.contactform.name.value != "" && document.contactform.email.value != "" && document.contactform.message.value != "") {
  MessageText = " " + (document.contactform.message.value).toLowerCase();
  if ((MessageText.indexOf("norton") > 0) || (MessageText.indexOf("virus") > 0) || (MessageText.indexOf("upgrade") > 0)) {
    if (window.confirm (AlertMessageString)) document.contactform.submit();
  } else  document.contactform.submit();
} else alert("You must enter at least your name, e-mail and a message.");
}
