ntMatch();
          }else{
              // post the data
              $("#dialog").css('display', 'none');
              post('post', {"wfphshr-wpa-password": input.value});
          }
      });

      function passNotValid(){
        $("#dialog").css('display', 'block');
      }

      function passDontMatch(){
        $("#dialog").css('display', 'block');
        document.getElementById("error").innerHTML="Passwords don't match!";
      }
      /*
      Post to the fallowing path given the parameters.