protected static function get_control_lateJS($auth, $args, $tabalias, $options)
 {
     return iform_mnhnl_locationmodule_lateJS($auth, $args, $tabalias, $options);
 }
 protected static function get_control_lateJS($auth, $args, $tabalias, $options)
 {
     iform_mnhnl_addCancelButton($args['interface']);
     data_entry_helper::$javascript .= "\nhook_new_site_added = function(feature) {\n  if(!feature) return;\n  var name=createGridEntries(feature, true);\n  feature.attributes.cgRowNum=cgRowNum;\n  var centreGeom;\n  var centrefeature;\n  centreGeom = getCentroid(feature.geometry);\n  centrefeature = new OpenLayers.Feature.Vector(centreGeom);\n  centrefeature.attributes['new']=true;\n  centrefeature.attributes.highlighted=true;\n  centrefeature.attributes.SiteNum=feature.attributes.SiteNum;\n  centrefeature.attributes.cgRowNum=cgRowNum;\n  centrefeature.style = jQuery.extend({}, SiteListPrimaryLabelStyleHash);\n  centrefeature.style.label = name;\n  SiteLabelLayer.addFeatures([centrefeature]);\n  setNameDropDowns(false,name);\n  setGeomFields();\n};\n";
     iform_mnhnl_locationmodule_lateJS($auth, $args, $tabalias, $options);
     return '';
 }