function noaccent(chaine) {
  temp = chaine.replace(/[àâä]/gi,"a")
  temp = temp.replace(/[éèêë]/gi,"e")
  temp = temp.replace(/[îï]/gi,"i")
  temp = temp.replace(/[ôö]/gi,"o")
  temp = temp.replace(/[ùûü]/gi,"u")
  return temp
}

function wsquery(mode,word)
{
switch (mode) {
	case 0:
		object = noaccent(document.getElementById('object').value);
	break;
	case 1:
		object = word;
	break;
}

queryResult = xmldata('Result',core + 'extend/ext_wsquery.php?swtype=emptri&val=' + object + '&mode=' + mode );
}

