/*
* This function clears the <div> - fields
* which can contain some content.
* The Parameter contains the id of an element inside the actual document
*/
function clearFields(DocObj)
 {
  document.getElementById(DocObj).innerHTML="";
 }



function show_autocompleter(DocObj)
 {
  dobj = document.getElementById(DocObj);
  //dobj.style.left=PosX +"px";
  //dobj.style.top=PosY +"px";
  dobj.style.visibility="visible";
  //document.getElementById(DocObj).visibility="visible";
 }

function hide_autocompleter(DocObj)
 {
  dobj = document.getElementById(DocObj);
  //dobj.style.left=PosX +"px";
  //dobj.style.top=PosY +"px";
  dobj.style.visibility="hidden";
  //document.getElementById(DocObj).visibility="visible";
 }



function show_search_services()
 {
  Param=document.getElementById("person_search_field").value;
  SendParam="Search;" + Param;
  show_autocompleter("person_is_searching_autocompleter");
  sndReq("2",SendParam,"Conn/Connector.php","person_is_searching_autocompleter");
 }
 
function show_offer_services()
 {
  Param=document.getElementById("person_offer_field").value;
  SendParam="Offer;" + Param;
  show_autocompleter("person_is_offering_autocompleter");
  sndReq("2",SendParam,"Conn/Connector.php","person_is_offering_autocompleter");
 }

 
 function set_value(Field,Value)
  {
   document.getElementById(Field).value=Value;
   hide_autocompleter('person_is_offering_autocompleter');
   hide_autocompleter('person_is_searching_autocompleter');
   
  }


