/* */

function clearPhoneExtension(state){
  the_form = document.the_form;
  if(state){
    the_form.phone_4.value = "";
  }
  else{
    if(!the_form.phone_4.value){
      the_form.phone_4.value = "ext";
    }
  }
}

function phone(field){
  the_form = document.the_form;
  switch(field){
    case 1:
      if(the_form.phone_1.value.length==3){
        the_form.phone_2.focus();
      }
      break;
    case 2:
      if(the_form.phone_2.value.length==3){
        the_form.phone_3.focus();
      }
      break;
    case 3:
      if(the_form.phone_3.value.length==4){
        the_form.phone_4.focus();
      }
      break;
  }
}

function launchReservations(){
  if(screen){
    leftPos=screen.width-325
    leftPos=(leftPos/2)-5
    topPos=screen.height-428
    topPos=(topPos/2)-30
  }
  url = "/reservations/reservations.php?r=" + Math.random();
  reservationsWin = window.open(url, "reservationsWin", "width=325,height=428,left="+leftPos+",top="+topPos);
}