function Replace(str_in, str_find, str_replace) {

    var nom_pos = 0, len_str_find = str_find.length, len_str_replace = str_replace.length

	while ( str_in.length > nom_pos ) {

		  if ( str_in.substring(nom_pos, nom_pos + len_str_find) == str_find ) {

			   str_in  = str_in.substring(0, nom_pos) + str_replace + str_in.substring(nom_pos + len_str_find, str_in.length)

			   nom_pos = nom_pos - len_str_find + len_str_replace
		  }	 
		  nom_pos++
	}
	
	return str_in
}

