	function snarfScripts(cont, byRef){		// summary		//		strips out script tags from cont		// invoke with 		//	byRef = {errBack:function(){/*add your download error code here*/, downloadRemote: true(default false)}}		//	byRef will have {code:}		byRef.code = "";		var regex = /<script([^>]*)>([\s\S]*?)<\/script>/i;		var regexSrc = /src=(['"])([^'"]*)\1/, regexExcl = /type=['"]dojo\/method/i;		var tag, match, attr, src, s = "";		while(tag = cont.match(regex)){			s = cont.substring(0, tag.index);			cont = cont.substr(tag.index + tag[0].length);			if(byRef.downloadRemote && tag[1].length				&& (src = tag[1].match(regexSrc))			){				dojo.xhrGet({					url: src[2],					sync: true,					load: function(code){						byRef.code += code+";";					},					error: byRef.errBack				});			}else if(!regexExcl.test(tag[1])){				byRef.code += tag[2] + ";";			}		}		return s + cont; // String	}
5168	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5168/3c9b3c65a235c4134dceb120b2a28c62017baf1b/ContentPane.js/clean/layout/ContentPane.js