function ShowAjaxData(fromUrl,toId,getParam) {
  $('#'+toId).load("/ajax/" + fromUrl + getParam);
  return false;
}

function AreYouSure() {
  return confirm("Biztos benne?");
}

function srchBDown () {
  $("#search-button").css("background-image",'url(/images/button_kereses_down.jpg)');
}
function srchBUp () {
  $("#search-button").css("background-image",'url(/images/button_kereses.jpg)');
}

function showMap(id,geoX,geoY,geoZoom) {
  $("#gmaphatter").remove();
  $("#gmapwin").remove();
  if (!geoZoom) {
    geoZoom = 15;
  }
  var myLatlng = new google.maps.LatLng(geoY,geoX);
  var myOptions = {
    zoom: geoZoom,
    center: myLatlng,
    mapTypeId: google.maps.MapTypeId.ROADMAP
  };
  var pos = $("#res_title_"+id).offset();
  var w = $("#res_title_"+id).width();
  $("body").append("<div id='gmaphatter' style='width:"+$(document).width()+"px;height:"+$(document).height()+"px;position:absolute;top:0;left:0;'></div>");
  $("body").append("<div id='gmapwin' style='width:"+(w-24)+"px;height:420px;position:absolute;top:"+(pos.top+40)+"px;left:"+(pos.left+24)+"px;background-color:#ffffff;border: 1px solid #257fb5;'><div id='gmap_"+id+"_title' style='cursor:pointer;background-color:#ffffff;font-weight:bold;text-align:right;color:#1A5A86;width:auto;height:20px;'>Bezár</div><div id='gmap_"+id+"' style='width:auto;height:390px;margin:4px'></div></div>");
  $("#gmap_"+id+"_title").click(function(){
    $("#gmaphatter").remove();
    $("#gmapwin").remove();
  });
  $("#gmaphatter").click(function(){
    $("#gmaphatter").remove();
    $("#gmapwin").remove();
  });
  var map = new google.maps.Map(document.getElementById("gmap_"+id), myOptions);
  var marker = new google.maps.Marker({
        position: myLatlng, 
        map: map 
  });
}

