function search_focus() {	if($F('qsearch')== searchForText)		$('qsearch').value="";}function search_blur() {	if($F('qsearch')=="")		$('qsearch').value = searchForText;}function search_submit() {	if($F('qsearch') != searchForText)		document.search_engine.submit();}function printSearch() {	if (nav['Name'] == "Safari") {		document.writeln('<input onfocus="search_focus()" onblur="search_blur()" type="search" id="qsearch" name="qsearch" name="search" style="width:150px" value="'+ searchForText +'"/>');	}	else {		document.writeln('<table width=150 height=26 cellpadding=0 cellspacing=0 style="padding-top: 0px;background:url(\'/img/bg_search.gif\'); background-repeat:no-repeat;">');		document.writeln('<tr>');		document.writeln('	<td><img src="/img/spacer.gif" width=26 height=26 onClick="search_submit()" style="cursor:pointer" /></td>');		document.writeln('	<td><input onfocus="search_focus()" style="border:0; width:115px" onblur="search_blur()" id="qsearch" name="qsearch" class=enterkeywords value="'+ searchForText +'" style="font-size:11px" /></td>');		document.writeln('</tr>');		document.writeln('</table>');	}}search_val = "";function ac_return(field, item) {	//var res = $(item).innerText;	var res = $(item).innerHTML;	//alert(res);	//var res = item.innerText;	//alert(typeof(res));		var stripped = res.replace(/(<([^>]+)>)/ig,"");	stripped=stripped.replace("\n", "");	stripped=stripped.replace("\r", "");	stripped=stripped.replace(/^\s+/g,'');	stripped=stripped.replace(/\s+$/g,'');	/*var reg=new RegExp("[|]+", "g");	var tableau=res.split(reg);*/	if(stripped=='Medias' || stripped=='Keywords' || stripped=='View Results &gt;&gt;' || stripped=='View Results >>')		stripped="";		$('qsearch').value = stripped;	if(stripped!="")		document.search_engine.submit();	else		$('qsearch').value=search_val;}function ac_initialize() {// Initialisation de l'autocompleter	new Ajax.Autocompleter ('qsearch',							'search_update',							'/inc/autocomplete.inc.php',							{								method: 'post',								paramName: 'qsearch',								afterUpdateElement: ac_return							});	/*new Ajax.Autocompleter ('qsearch',							'search_update',							'/inc/autocomplete.inc.php',							{								method: 'post',								paramName: 'qsearch',								afterUpdateElement: ac_return							});*/}