function PageQuery(q) {
  if(q.length > 1) this.q = q.substring(1, q.length);
  else this.q = null;
  this.keyValuePairs = new Array();
  if(q) {
    for(var i=0; i < this.q.split("&").length; i++) {
      this.keyValuePairs[i] = this.q.split("&")[i];
    }
  }
  this.getKeyValuePairs = function() { return
this.keyValuePairs; }
  this.getValue = function(s) {
    for(var j=0; j < this.keyValuePairs.length; j++) {
      if(this.keyValuePairs[j].split("=")[0] == s) {
        if(this.keyValuePairs[j].split("=").length>1)
{
          return this.keyValuePairs[j].split("=")[1];
        }
      }
    }
    return "";
  }
  this.getParameters = function() {
    var a = new Array(this.getLength());
    for(var j=0; j < this.keyValuePairs.length; j++) {
      a[j] = this.keyValuePairs[j].split("=")[0];
    }
    return a;
  }
  this.getLength = function() { return
this.keyValuePairs.length; }
}

function queryString(key){
  var page = new PageQuery(window.location.search);
  return unescape(page.getValue(key));
}

function getPageHeadline(){
  var occupation = queryString("_OCC");
  if(occupation == 'social worker') {
    return "Earn Your Degree and Become a <strong>Social Worker</strong>";
  } else if (occupation == 'criminal investigator') {
    return "Earn Your Degree and Become a <strong>Criminal Investigator</strong>";
  } else if (occupation == 'graphic designer') {
    return "Earn Your Degree and Become a <strong>Graphic Designer</strong>";
  } else if (occupation == 'psychologist') {
    return "Earn Your Degree and Become a <strong>Psychologist</strong>";
  } else if (occupation == 'accountant') {
    return "Earn Your Degree and Become an <strong>Accountant</strong>";
  } else if (occupation == 'bounty hunter') {
    return "Earn Your Degree and Become a <strong>Bounty Hunter</strong>";
  } else if (occupation == 'healthcare manager') {
    return "Earn Your Degree and Become a <strong>Health Care Manager</strong>";
  } else if (occupation == 'counselor') {
    return "Earn Your Degree and Become a <strong>Counselor</strong>";
  } else if (occupation == 'teacher') {
    return "Earn Your Degree and Become a <strong>Teacher</strong>";
  } else if (occupation == 'hr officer') {
    return "Earn Your Degree and Become a <strong>Human Resources Officer</strong>";
  } else if (occupation == 'patient advocate') {
    return "Earn Your Degree and Become a <strong>Patient Advocate</strong>";
  } else if (occupation == 'project manager') {
    return "Earn Your Degree and Become a <strong>Project Manager</strong>";
  } else if (occupation == 'paralegal') {
    return "Earn Your Degree and Become a <strong>Paralegal</strong>";
  } else if (occupation == 'network specialist') {
    return "Earn Your Degree and Become a <strong>Network Specialist</strong>";
  } else if (occupation == 'cpa') {
    return "Earn Your Degree and Become a <strong>CPA</strong>";
  } else if (occupation == 'police') {
    return "Earn Your Degree and Become a <strong>Police Officer</strong>";
  } else if (occupation == 'therapist') {
    return "Earn Your Degree and Become a <strong>Therapist</strong>";
  } else if (occupation == 'engineer') {
    return "Earn Your Degree and Become an <strong>Engineer</strong>";
  } else if (occupation == 'manager') {
    return "Earn Your Degree and Become a <strong>Manager</strong>";
  } else if (occupation == 'web designer') {
    return "Earn Your Degree and Become a <strong>Web Designer</strong>";
  } else if (occupation == 'medical billing specialist') {
    return "Earn Your Degree and Become a <strong>Medical Billing Specialist</strong>";
  } else if (occupation == 'pharmacy technician') {
    return "Earn Your Degree and Become a <strong>Pharmacy Technician</strong>";
  } else if (occupation == 'physician practice manager') {
    return "Earn Your Degree and Become a <strong>Physician Practice Manager</strong>";
  } else if (occupation == 'medical office manager') {
    return "Earn Your Degree and Become a <strong>Medical Office Manager</strong>";
  } else if (occupation == 'health data analyst') {
    return "Earn Your Degree and Become a <strong>Health Data Analyst</strong>";
  } else if (occupation == 'customer relations rep') {
    return "Earn Your Degree and Become a <strong>Customer Relations Rep</strong>";
  } else if (occupation == 'campaign manager') {
    return "Earn Your Degree and Become a <strong>Campaign Manager</strong>";
  } else if (occupation == 'editor') {
    return "Earn Your Degree and Become an <strong>Editor</strong>";
  } else {
    return "<strong>Earn Your Degree Now!</strong>";
  } 
}