function fromFocus(textbox) {
  if (textbox.hasCleared != true) {
    textbox.value = "";
    textbox.style.color = "black";
    textbox.hasCleared = true;
  }
}

function fromBlur(textbox) {
  if (textbox.value.length == 0) {
    textbox.value = "From (e.g. 1 Example St Strathpine)";
    textbox.style.color = "#777777";
    textbox.hasCleared = false;
  }
}

function checkDirections(_form) {
  if (_form.saddr.value.length==0 || _form.saddr.value=="From (e.g. 1 Example St Strathpine)") {
    document.getElementById("fromtext").focus();
    return false;
  }
  return true;
}



function fromFocus2(textbox) {
  if (textbox.hasCleared != true) {
    textbox.value = "";
    textbox.style.color = "black";
    textbox.hasCleared = true;
  }
}

function fromBlur2(textbox) {
  if (textbox.value.length == 0) {
    textbox.value = "From (e.g. 1 Example St Salisbury)";
    textbox.style.color = "#777777";
    textbox.hasCleared = false;
  }
}

function checkDirections2(_form) {
  if (_form.saddr.value.length==0 || _form.saddr.value=="From (e.g. 1 Example St Salisbury)") {
    document.getElementById("fromtext2").focus();
    return false;
  }
  return true;
}
