function MainSearch(strdb, strLang){	var custidin = document.forms[0].TxtSearchQuery.value;	if (custidin == "")	{		if (strLang == "Fr") alert ("Les mots \u00E0 rechercher sont vides.");		else alert ("The words to be searched are empty.");	}	else	{		var custidout = "";		for (var i = 0; i <custidin.length ; i++) 		{ 			if (custidin.substring(i, i + 1) == " ")			{   				custidout = custidout + "+";   			}   			else 			{				if (custidin.substring(i, i + 1) == "&")				{					custidout = custidout + "AND";				}				else				{					if (custidin.substring(i, i + 1) == "|")					{						custidout = custidout + "OR";					}					else					{						custidout = custidout + custidin.substring(i, i + 1);					}				}   			}		}		varUrl = "/" + strdb + "FullTextSearch?OpenAgent&Iddoc=&NumPage=1&SearchType=sp&Query=" + custidout + "&SearchOrder=1&SearchMax=0&SearchWV=TRUE&SearchThesaurus=FALSE&Categorie=All&Lang=" + strLang;		top.location.href = "#";	}}//==============================================================================function doNothing(){}//==============================================================================function AutomaticPosting(){	if (document.forms[0].TxtMappedDocumentUrl != null)	{		var urldoc = document.forms[0].TxtMappedDocumentUrl.value;		if (urldoc != "")		{			setTimeout("javascript:self.location='" + urldoc + "';",4000);		}	}}