function checkIfAnotherTimeHasBeenSelected()
{
  var oSelect = document.getElementsByName("time")[0];

  if(oSelect.value == -1)
  {
    var oTime = document.createElement("input");

    oTime.type = "text";
    oTime.className = "field";
    oTime.name = "otherTime";
    oTime.id   = "otherTime";

    var oContainer = document.createElement("div");
    oContainer.style.marginRight = "1em";
    oContainer.style.display = "inline";
    oContainer.id = "otherTimeContainer"

    oContainer.appendChild(oTime);
    document.getElementById("timeSelect").insertBefore(oContainer, oSelect);
  }
  else if(oSelect.value != "")
  {
    oContainer = document.getElementById("otherTimeContainer");

    if(oContainer)
    {
      document.getElementById("timeSelect").removeChild(oContainer);
    }
  }
}
