function isValidContactName(ob) {
  var param = ob.value;
  if (!param) {
    alert("Please enter your contact name...");
    ob.focus();
    return false;
  }
  ob.value = param;
  return true;
}

function isValidEmail(ob) {
  var param = ob.value;
  if (!cs_IsEmail(param)) {
    alert('The email address you have entered cannot be recognised.\r\nPlease enter a new email address...');
    ob.focus();
    return false;
  }
  ob.value = param;
  return true;
}

function isValidNotes(ob) {
  var param = ob.value;
  var m = parseInt(param.length);
  if (m > 2000) {
    alert('You have exceeded the maximum length permitted\r\nfor your notes.\r\n\r\nPlease limit your text notes to less than 2k or\r\napproximately 30 lines of text...');
    ob.focus();
    return false;
  }
  return true;
}

function isValidPhone(ob) {
  var param = ob.value;
  if (!cs_IsPhoneNumber(param)) {
    alert('The phone number you have entered cannot be recognised. Please enter a new number...');
    ob.focus();
    return false;
  }
  ob.value = param;
  return true;
}  

function isValidData() {
  var ob = eval('document.content');
  if (!isValidContactName(ob.nvContactName)) return false;
  if (!isValidEmail(ob.nvEmail)) return false;
  if (ob.nvPhone.value) if (!isValidPhone(ob.nvPhone)) return false;
  if (!isValidNotes(ob.nvNotes)) return false;
  submitForm(isSecure() + 'tp_SubscriberOptionsForm.asp'); return true;
}