Looking over the documentation it seems that he would be correct in assuming that the results of getElementById should work for the constructor. I've never personally used this method for OpenLayers and the work around seems easy enough in that you can simply pass the id of the element in question.<div>
<br></div><div><a href="http://dev.openlayers.org/releases/OpenLayers-2.10/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.OpenLayers.Map">http://dev.openlayers.org/releases/OpenLayers-2.10/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.OpenLayers.Map</a><br clear="all">
--<br>Nathan Gerber<br>
<br><br><div class="gmail_quote">On Wed, Jun 1, 2011 at 6:04 PM, Ricardo Bayley <span dir="ltr"><<a href="mailto:ricardo.bayley@gmail.com">ricardo.bayley@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi<div><br></div><div>My understanding is that the getElementById returns the actual Element, not its ID.</div><div><br></div><div><br><br><div class="gmail_quote">2011/6/1 Samuel M. Smith <span dir="ltr"><<a href="mailto:smithsm@samuelsmith.org" target="_blank">smithsm@samuelsmith.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>document.getElementById("map")</div></blockquote></div><br></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
<br></blockquote></div><br></div>