function countdown(){
  var myTime = new Date();
  var end = new Date(2015, 6, 27);
  var count = end - myTime;
  var timeleft = new Date(count);
  var days = timeleft.getDate();
  var hours = timeleft.getUTCHours();
  var min = timeleft.getMinutes();
  var sec = timeleft.getSeconds();
  var myText = [days, hours, min, sec].join(":");
  document.getElementById('timer').innerHTML = myText;
};

function count(){
  setInterval(function() {
    var myTime = new Date();
    var end = new Date(2015, 6, 27, 9);
    var count = end - myTime;
    var timeleft = new Date(count);
    var days = paddnum(timeleft.getDate());
    var hours = paddnum(timeleft.getUTCHours());
    var min = paddnum(timeleft.getMinutes());
    var sec = paddnum(timeleft.getSeconds());
    var myText = [days, hours, min, sec].join(":");
    var my_sentence = ["Countdown to Onsite ", myText].join("- ")
    document.getElementById('timer').innerHTML = my_sentence;
  }, 1000);
};
function paddnum(num){

  if (num < 9){
    num = ["0", num].join('');
  }
  return num;
};

function countdown(){
  var myTime = new Date();
  var end = new Date(2015, 6, 27 9);
  var count = end - myTime;
  var timeleft = new Date(count);
  var days = timeleft.getDate();
  var hours = timeleft.getUTCHours();
  var min = timeleft.getMinutes();
  var sec = timeleft.getSeconds();
  var myText = [days, hours, min, sec].join(":");
  document.getElementById('timer').innerHTML = myText;
};

function count(){
  setInterval(function() {
    var myTime = new Date();
    var end = new Date(2015, 6, 27, 9);
    var count = end - myTime;
    var timeleft = new Date(count);
    var days = paddnum(timeleft.getDate());
    var hours = paddnum(timeleft.getUTCHours());
    var min = paddnum(timeleft.getMinutes());
    var sec = paddnum(timeleft.getSeconds());
    var myText = [days, hours, min, sec].join(":");
    var my_sentence = ["Countdown to Onsite ", myText].join("- ")
    document.getElementById('timer').innerHTML = my_sentence;
  }, 1000);
};
function paddnum(num){

  if (num < 9){
    num = ["0", num].join('');
  }
  return num;
};

change countdown timer