

  function toggle_it(itemID){
      // Toggle visibility between none and inline
      if ((document.getElementById(itemID).style.display == 'none'))
      {
        document.getElementById(itemID).style.display = 'inline';
      } else {
        document.getElementById(itemID).style.display = 'none';
      }
  }


	function displayRow(){
		var row = document.getElementById("captionRow");
		if (row.style.display == '') row.style.display = 'none';
		else row.style.display = '';
	}
	
	



function getXMLHttp()
{
  var xmlHttp

  try
  {
    //Firefox, Opera 8.0+, Safari
    xmlHttp = new XMLHttpRequest();
  }
  catch(e)
  {
    //Internet Explorer
    try
    {
      xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
    }
    catch(e)
    {
      try
      {
        xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
      }
      catch(e)
      {
        alert("Your browser does not support AJAX!")
        return false;
      }
    }
  }
  return xmlHttp;
}

//Element.hide(`divLoad´);


function startLoading() {
  // First we want to show the loading window then hide the content are we are loading into.
  //	alert ("hejejej");
document.getElementById('employ_data').innerHTML= '<div style="width:100%; text-align:center;"><br/><br/><br/>Laddar<br/><img src="../graphic/load.gif"></div>'; 
  //Element.hide(‘mainAreaInternal’);
}




function display_data(id){

  startLoading();

  var xmlHttp = getXMLHttp();

    var url="ajax.php";
    url=url+"?employ_id="+id;
	/*alert (url);*/
	
	    xmlHttp.onreadystatechange = function() {
        if (xmlHttp.readyState == 4) {
            document.getElementById('employ_data').innerHTML=xmlHttp.responseText;
			/*alert ("bajs");*/
        }
    }
    xmlHttp.open("GET",url,true);
    xmlHttp.send(null);

}
