whole_func_string: function create_script_load_listener(elem,registry_item,flag,onload) {
  		elem.onload = elem.onreadystatechange = function() {
  			if ((elem.readyState && elem.readyState != "complete" && elem.readyState != "loaded") || registry_item[flag]) return;
  			elem.onload = elem.onreadystatechange = null;
  			onload();
  		};
  	}
func_code_string: function create_script_load_listener(elem,registry_item,flag,onload) {
  		elem.onload = elem.onreadystatechange = function() {
  			if ((elem.readyState && elem.readyState != "complete" && elem.readyState != "loaded") || registry_item[flag]) return;
  			elem.onload = elem.onreadystatechange = null;
  			onload();
  		};
  	}
func_documentation_string: creates a script load listener