window.onload = function() {
 if(window.location.href.indexOf("submitted=true")!=-1)
   alert("Thank you for your submission.\nWe will get back to you shortly.");
};

function validateForm(selector) {
 var ok = true;
 $(selector + " input[type='text'],textarea,select").each(function() {
    if($.trim($(this).val())=="") ok = false;
  });
  if(!ok) alert("Please fill in all fields!");
  return ok;
 }