function searchOnEnter(e,sLanguageId){
	//	event should be passed as an argument, since Firefox does not allow this object as a global.
	if(e.keyCode==13)
		performSearch(sLanguageId);
}

function performSearch(sLanguageId){
	if(sLanguageId=='en'){
		sFirstPathPart='/search/';
	}else sFirstPathPart='/zoek/';
	document.location.href=sFirstPathPart+escape(document.getElementById('searchfield').value);
}
