This version returns resources of the active Resx or DB Resource Provider and includes no controls and creates a variable named "globalRes" and uses the page's current UI culture
public static void RegisterJavaScriptGlobalResources(Control control, string varName, string resourceSet);
varName
resourceSet