$(document).ready(function () {
    $('#postalCode1').keyup(function () {
        if (this.value.length == 3) {
            document.getElementById('postalCode2').focus();
        }
    });

    $('#postalCode2').keyup(function () {
        if (this.value.length == 3) {
            document.getElementById('submitLocator').focus();
        }
    });

    $('#name').live('focus', function() {//clear the name field when a user clicks it
        if (this.value == this.defaultValue) this.value = '';
    });
/*
 * this same effect below is being done by php
 * @SEE : /Allstate/Form/TeenDrivingForm.php
 *
    $("#submit").submit(function() {
          processDetails();
          return false;
         });
*/
});
