function replace(str:String,find:String,replace:String):String
{
	var index:Number;
	while(str.indexOf(find)!=-1)
	{
		index= str.indexOf(find);
		str = str.substr(0,index) + replace + str.substr(index + find.length);
	}
	return str;
}