
function AjaxRequest(pars, div, callback) {
  jQuery.ajax({
    type: "POST",
    url: "?",
    data: pars,
    success: callback
  });
}

function validateEmail(elementValue) {
  var emailPattern = /^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-Z])+/;
  return emailPattern.test(elementValue);
}

function inputFocused(inp, txt) {
  if (inp.value == txt) {
    inp.value = "";
    inp.style.color = "#000000";
  }
}

function inputBlurred(inp, txt) {
  if (inp.value.length == 0) {
    inp.value = txt;
    inp.style.color = "#333333";
  }
}
