function applyHandler(o, e, f) {
  e = (e instanceof Array) ? (arguments.callee(o, e[1], f), e[0]) : e;
  return (o.attachEvent) ? o.attachEvent(e, f) : (o.addEventListener) ?
    o.addEventListener(e.substr(2), f, false) : false;
}

function returnCheck(e)
{
  var code = window.event ? e.keyCode : e.which;
  return (code != 13);
}

function digitCheck(e)
{
  return /\d/.test(String.fromCharCode(window.event ? e.keyCode : e.which));
}

function FocusOn(id)
{
  document.getElementById(id).focus();
}

function showAddress(latitude, longitude, address)
{
  map_obj.style.width = '500px';
  map_obj.style.height = '300px';

  var map = new GMap2(map_obj);
  var point = new GLatLng(latitude, longitude);

  map.setCenter(point, 16);

  var marker_desc = function()
  {
    marker.openInfoWindowHtml(address);
  }

  var marker = new GMarker(point);
  GEvent.addListener(
    marker,
    "click",
    marker_desc
  );

  map.addOverlay(marker);
  marker_desc();
}