 
 function coveoSubmit()
 {
	//////////////////////////////////////////////////////////////////////////////
	var coveoSearchAddress = "/pages/recherche.aspx";
	//////////////////////////////////////////////////////////////////////////////
	
	
	// LANGUE
	var coveoLocation = coveoSearchAddress + "?LANG=FR-CA"
	
	// QUERY
	if (document.forms[0].query.value == "" || document.forms[0].query.value == "mot(s) clé(s)")
		coveoLocation += "&q=@uri";
	else	
		coveoLocation += "&q=" + document.forms[0].query.value;
		
	// REDIRECTION
	window.location.href=coveoLocation;
 }
 
function noenter(key_event) 
{
  checkCoveoSubmit(key_event);
  if (document.all) {
    //Probably Internet Explorer 4 and later
    return !(window.event && window.event.keyCode == 13); 
  }else{ 
	// Probably Netscape 6 and later
	return !(key_event.which && key_event.which == 13);
  }
}

function checkCoveoSubmit(key_event)
{
	if (document.all) {
        //Probably Internet Explorer 4 and later
        if (event && event.keyCode == 13)
			coveoSubmit();
		else
			return true;
    }
    else { 
        // Probably Netscape 6 and later
        if (key_event.which == 13)
			coveoSubmit();
		else
			return true;
    }
}
