var rs = new rsClient(rootpath +'/rubriques/replace.php');

function populateVille()
{
	var oVilles = document.getElementById('selectVilles');

	opts = new Array();
	eval(rs.query_text('replace', 'codePostal', document.getElementById('codePostal').value));
	
	oVilles.options.length = 0;
	for (var j = 0; j < opts.length; j++)
	{
		var opt = new Option(opts[j][0], opts[j][0]);
		oVilles.options[j] = opt;
	}
}