﻿function EffacerEcrireTexte(textbox,texteParDefaut){
	isIE = (document.all);
	isNN6 = (!isIE) && (document.getElementById);
		
	if (isIE) text_box = document.all[textbox];
	if (isNN6) text_box = document.getElementById(textbox);
		
	if (text_box.value == texteParDefaut){
		text_box.value = "";
	}
	else if (text_box.value == "") {
		text_box.value = texteParDefaut;
	}
}

function RechecheKeyDown(event, strUrl)
{
	if (IsKeyDownSubmit(event))
	{
		window.location=strUrl;
		return false;
	}
	return true;
}

function EnvoyerLaRecherche(MotCle)
{
	if (MotCle != 'Rechercher ...')
	{
		window.location="/searchcenter/results.aspx?k="+MotCle;
	}
	else{
		alert('Entrez un ou plusieurs mots dans la zone de recherche.');
	}
}

function EnvoyerLaRechercheEn(MotCle)
{
	if (MotCle != 'Search ...')
	{
		window.location="/sites/an/search/results.aspx?s=scope_an&k="+MotCle;
	}
	else{
		alert('Entrez un ou plusieurs mots dans la zone de recherche.');
	}
}


