str += tagFix + tag;  } return str+cont; 
); 
	function adjustHtmlPaths(htmlUrl, cont){		// TODO: clean up this mess!		// use dojox string builder to achive more speed on slow string merging env.		// attributepaths one tag can have multiple paths example:		// <input src="..." style="url(..)"/> or <a style="url(..)" href="..">		// strip out the tag and run fix on that.		// this guarantees that we won't run replace on another tag's attribute + it was easier do		var regexFindTag = /<[a-z][a-z0-9]*[^>]*\s(?:(?:src|href|style)=[^>])+[^>]*>/i;		// FIXME: get the url regex part from dojo.regex instead		var regexFindAttr = /\s(src|href|style)=(['"]?)([\w()\[\]\/.,\\'"-:;#=&?\s@]+?)\2/i;		// these are the supported protocols, all other is considered relative		var regexProtocols = /^(?:[#]|(?:(?:https?|ftps?|file|javascript|mailto|news):))/;		var url = htmlUrl || "./";		var str = "", tag, tagFix = '', attr, path, origPath;		while(tag = regexFindTag.exec(cont)){			str += cont.substring(0, tag.index);			cont = cont.substring((tag.index + tag[0].length), cont.length);			tag = tag[0];			// loop through attributes			tagFix = '';			while(attr = regexFindAttr.exec(tag)){				path = ""; origPath = attr[3];				switch(attr[1].toLowerCase()){					case "src":// falltrough					case "href":						if(regexProtocols.exec(origPath)){							path = origPath;						} else {							path = (new dojo._Url(url, origPath).toString());						}						break;					case "style":// style						path = adjustCssPaths(url, origPath);						attr[2] = '"';						break;					default:						path = origPath;				}				fix = " " + attr[1] + '=' + attr[2] + path + attr[2];				// slices up tag before next attribute check				tagFix += tag.substring(0, attr.index) + fix;				tag = tag.substring((attr.index + attr[0].length), tag.length);			}			str += tagFix + tag; 			//console.debug(tagFix + tag);		}		return str+cont;	}
5168	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5168/3c9b3c65a235c4134dceb120b2a28c62017baf1b/ContentPane.js/clean/layout/ContentPane.js