// Clear/Replace Fields
function clearText(thefield) {
  if (thefield.defaultValue==thefield.value) { thefield.value = "" }
}

function replaceText(thefield) {
  if (thefield.value=="") { thefield.value = thefield.defaultValue }
}

function clearBeforeSubmit() {
    var stateElement = document.getElementById("txtState");
    var zipElement = document.getElementById("txtZip");

    if (stateElement.value == "State") clearText(stateElement);
    if (zipElement.value == "Zip Code") clearText(zipElement);
}
