/**
 * Displays an confirmation box.
 * This function is called while clicking links
 *
 * @param   object   the link
 * @param   object   the sql query to
 *
 * @return  boolean  whether to run the query or not
 */
function confirmLink(theLink, theSqlQuery)
{
    // Confirmation is not required in the configuration file
/*    if (confirmMsg == '') {
        return true;
    }
*/
    var is_confirmed = confirm('Voulez-vous vraiment  ' + theSqlQuery + '\n');
    if (is_confirmed) {
        theLink.href += '&is_js_confirmed=1';
    }

    return is_confirmed;
} // end of the 'confirmLink()' function




function show_props(obj, objName) 
{
  var res ='';
  for (var i in obj)
  {
   res += objName + "." + i + " = " + obj[i] + '\n'
  }
   alert(res);
  return res
}

function noAutoComplete()
{
  var inputList = document.getElementsByTagName("input");
  for (var i=0; i < inputList.length;i++)
  {
    inputList[i].setAttribute("autocomplete","off");
  }
} 
