function insertComment(){
      new Ajax.Updater("result", "http://www.oltoztesdfelahutod.hu/modules/ajaxbridge.php" , 
      {
        asynchronous:true, 
        evalScripts:true, 
        parameters:Form.serialize(document.getElementById('comments'))
      }); 
      return false;
	  };
	  
function insertUser(){
      new Ajax.Updater("result", "http://www.oltoztesdfelahutod.hu/modules/ajaxbridge.php" , 
      {
        asynchronous:true, 
        evalScripts:true, 
        parameters:Form.serialize(document.getElementById('adduser'))
      }); 
      return false;
	  };


function downloadFile(task,item,div) {
   var url = 'http://www.oltoztesdfelahutod.hu/modules/ajax/downloadfile.php';
   var params = 'task=' + task + '&user=' + item;
   var ajax = new Ajax.Updater(
	          {success: div},
              url,
              {method: 'get', parameters: params});
}


function filterByName(strname){
 var params = new Hash();
 document.getElementById('namelist').style.display='block';
 params.set('namestring',document.getElementById('searchfield').value);
 params.set('actionval','getSelect');
 params.set('namestring',document.getElementById('searchfield').value);
 params.set('dbtable',document.getElementById('ConfigSearchTable').value);
 params.set('dbcol',document.getElementById('ConfigSearchField').value);
 params.set('dborder',document.getElementById('ConfigSearchOrder').value);
 new Ajax.Updater('namelist','http://www.oltoztesdfelahutod.hu/modules/ajax/searchfield.php',{parameters:params,method:'get'});
}

