function PrivacyPolicy() {
  window.open('/privacy_policy.htm','PrivacyPolicy','toolbar=no,location=no,status=no,menubar=yes,scrollbars=yes,resizable=no,width=420,height=380');
}

function ReadMsg(intMsgID) {
  parent.location = 'advice_updates.asp?read_msg=' + intMsgID +
    '&msg_subject=' + escape(document.forms[0].msg_subject.value) +
    '&msg_body=' + escape(document.forms[0].msg_body.value) +
    '&goto=#Msg' + intMsgID;
}

function ReplyToMsg(strMsgSubject) {
  RETest = strMsgSubject.substring(0,3);
  if (RETest == 'RE:') {
    document.forms[0].msg_subject.value = strMsgSubject.replace("¿", "'");
  }
  else {
    document.forms[0].msg_subject.value = 'RE: ' + strMsgSubject.replace("¿", "'");
  }
  document.forms[0].msg_subject.style.bgcolor = 'red';
}

function SubmitResume() {
  if (document.frmNewResume.understand_conditions.value == 'verify') {
    if (document.frmNewResume.understand_conditions.checked == false) {
      alert('You must agree to the terms of this resume form before submitting.');
    }
    else {
      document.frmNewResume.submit();
    }
  }
  if (document.frmNewResume.understand_conditions.value == 'true') {
    document.frmNewResume.submit();
  }
}

function SaveInfoWarning() {
  if (document.frmNewResume.save_extData.checked == false) {
    alert('Please note: By unchecking this checkbox your resume data will NOT be saved.');
  }
}

function updateProfile(queryString) {
  var rnd_number = Math.round(Math.random() * 100000000000);
  parent.location = "YourPage.asp?" + queryString + "&update=yes" + "&id=" + rnd_number;
}