
function getDealers(pcode) {
$.ajax({
   type: "GET",
   url: "ajax.php",
   data: "dealer=1&postcode="+pcode,
   success: function(msg){
alert(msg);
   }
 });
}