//We did these data movements one at a time to keep things simple. Each
//function is called when there is a change in the contents of the text
//box followed by the viewer changing focus via mouse or tab key.
//See the first set of text boxes for the command that calls the function.
 
function move_addr1() {
  if(df.addr1.value == "") {
    df.addr1.value = df.prop_addr1.value;
    ppfd.viewer_addr1.value = df.addr1.value;
  }
  ppfd.prop_addr1.value = df.prop_addr1.value;
}
 
function move_addr2() {
  if(df.addr2.value == "") {
    df.addr2.value = df.prop_addr2.value;
    ppfd.viewer_addr2.value = df.addr2.value;
  }
  ppfd.prop_addr2.value = df.prop_addr2.value;
}
 
function move_city() {
  if(df.city.value == "") {
    df.city.value = df.prop_city.value;
    ppfd.viewer_city.value = df.city.value;
  }
  ppfd.prop_city.value = df.prop_city.value;
}

function move_state() {
  if(df.state.value == "") {
    df.state.value = df.prop_state.value;
    ppfd.viewer_state.value = df.state.value;
  }
  ppfd.prop_state.value = df.prop_state.value;
}

function move_zip() {
  if(df.zip.value == "") {
    df.zip.value = df.prop_zip.value;
    ppfd.viewer_zip.value = df.zip.value;
  }
  ppfd.prop_zip.value = df.prop_zip.value;
}
