function xreplace(stringToSearch,find,replace){
	try{
	
		var temp = stringToSearch;
		var i = temp.indexOf(find);
		while(i > -1){
			temp = temp.replace(find, replace);
			i = temp.indexOf(find);
		}
	
		return temp;
	
	}catch(e){errorReporter(e, errorLocation, "<b>file:</b> xreplace.js - <b>function:</b> xreplace()");}
	
} 
