dojo.connect(map, "onLoad", function(theMap) {
var scalebar = new esri.dijit.Scalebar({ map: map,
attachTo: "bottom-left",scalebarUnit: "english" },dojo.byId("scalebar"));//divID
});
dojo.connect(map, "onLoad", function(theMap) {
var scalebar = new esri.dijit.Scalebar({ map: map,
attachTo: "bottom-left",scalebarUnit: "english" },dojo.byId("scalebar"));//divID
});