/*
* This module contains io - ajax functions for forms
*/

/*
* This function sends a form
* parameters : 
* section : The section the form wants to operate with
* action_id: The actions which has to be performed
* form_id: the id of the form in the document
* result_obj: the id of the object which has to display the received data
*/
function snd_form(section,action_id,form_id,result_obj){
	querystring="action_id="+action_id+"&section="+section+"&";
 for(i=0; i<$("#"+form_id).get(0).elements.length; i++)
  {
   ElementValue=$("#"+form_id).get(0).elements[i].value;
   ElementName=$("#"+form_id).get(0).elements[i].name;
   querystring=querystring + escape(ElementName) + "=" + escape(ElementValue);
   if(i<$("#"+form_id).get(0).elements.length-1){
   querystring=querystring+"&";
   }
  }
 snd_req(querystring,"Conn/ajaxconnector.php","bodydiv");
}