/***********************************************************doDelete is used to delete the from the serverThe user is first asked to confirm that this is what theywant to do. Giving them the chance to cancel the action.This works SIMPLY by changing the end of the URL from "?OpenDocument" to "?DeleteDocument"************************************************************/function doDelete() {	if ( confirm('Voulez vous vraiment supprimer ce document?') ){		location.search = "?DeleteDocument";	}}function textCounter(field, maxlimit) {if (field.value.length > maxlimit)field.value = field.value.substring(0, maxlimit);}function doLogin() { // Retrouve la partie apr\u00E8s le ? de l'URLs = document.location.search; //Check '#?logout' not already in URL!if (s.toLowerCase().indexOf("#?logout") != 	-1 )	{	s = location.pathname.split('/#?logout')[0] ;	}//Check '&Login' not already in URL!	if (s.toLowerCase().indexOf("&login") == 	-1 ) { 	//Check that there is a '?Open' part to append to	a = (s=="") ? "?Open&Login" : "&Login"; 	document.location.href += a; 	}}function opendbrelativeURL( url, target) {target = (target == null) ? window : target;path = location.pathname.split('.nsf')[0] + '.nsf/';target.location.href = path + url;}function openF4(url, fldRet, title){alert(url+'&fldRet='+fldRet);window.open("www.lotus.com", "","");}function returnF4(thisObj){	alert(thisObj);	alert($F(fldRet));	// put the values back in the underlying form in the right format	if(window.opener)	{       window.opener.document.forms[0][fldRet].value = $F(thisObj);	}	self.close();}function nodeValue(node, name) {    var childs = node.getElementsByTagName(name);    if (childs.length > 0 && childs.item(0).childNodes.length > 0)        return childs.item(0).childNodes.item(0).nodeValue;    return "";}function getInnerText (node) {  if (typeof node.textContent != 'undefined')  {    return node.textContent;  }  else if (typeof node.innerText != 'undefined')  {    return node.innerText;  }  else if (typeof node.text != 'undefined')  {    return node.text;  }  else  {    switch (node.nodeType)    {      case 3:      case 4:        return node.nodeValue;        break;      case 1:      case 11:        var innerText = '';        for (var i = 0; i < node.childNodes.length; i++)        {          innerText += getInnerText(node.childNodes[i]);        }        return innerText;        break;      default:        return '';    }  }}function setOptionValue(selectObj, newValue) {var listbox = $(selectObj);var elem = $A(listbox.getElementsByTagName('option'));var opt = elem.find(function(liste){	return (liste.value == newValue);});	opt.selected = true;}// set the radio button with the given value as being checked// do nothing if there are no radio buttons// if the given value does not exist, all the radio buttons// are reset to uncheckedfunction setCheckedValue(radioObj, newValue) {var elem = $A(document.getElementsByName(radioObj));elem.each(function (el) { if (el.value==newValue) { el.checked = true; }});}function montre(id) {		 for (var i = 1; i<=10; i++) {		 		mnu =document.getElementById('smenu'+i);		 		 if (mnu) {mnu.style.display='none';}		 }		d = $(id);		 if (d) d.style.display='block';}function initFld() {var lstInp = Form.getInputs(document.forms[0],'text');lstInp.each(function(inp) { inp.onfocus = function(){$(inp).addClassName('inpYellow');}inp.onblur = function(){$(inp).removeClassName('inpYellow');}});}