rem:  for(var i = index; i > 0; i--) { if (str.charAt(i)=='<') { tmp = /^<([^ ]+) /.exec(str.substr(i)); return tmp[1]; } }  return undefined; 
add: for(var i = index+1; i < str.length; i++) { if (str.charAt(i)=='<') { tmp = /<([A-Za-z0-9\-]+)>/.exec(str.substr(i)); return tmp[1]; } } return null; 
context: function getOpeningTag(elemId, str) {	var index = str.indexOf("id=" + '"' + elemId + '"');		if (index == -1) {		return undefined;		//throw "Cannot find update region '" + elemId + "'!";			}	// find opening tag	for(var i = index; i > 0; i--) {		if (str.charAt(i)=='<') {			tmp = /^<([^ ]+) /.exec(str.substr(i));			return tmp[1];		}	}	return undefined;	}
meta: 7108	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7108/ad0af2022e5921dc9a36d0d5cf62e390b55b6743/aa.js/clean/etc/js/ajaxanywhere/aa.js