
var IE = document.all?true:false;


function agenda(file,idnr)
{
 	var xmlObj=false;
	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
	// JScript gives us Conditional compilation, we can cope with old IE versions.
	// and security blocked creation of the objects.
	 try {
	  xmlObj = new ActiveXObject("Msxml2.XMLHTTP");
	 } catch (e) {
	  try {
	   xmlObj = new ActiveXObject("Microsoft.XMLHTTP");
	  } catch (E) {
	   xmlObj = false;
	  }
	 }
	@end @*/
	if (!xmlObj && typeof XMLHttpRequest!='undefined') 
	{
  	xmlObj = new XMLHttpRequest();
	}

 	xmlObj.onreadystatechange = function()
 	{
  	if(xmlObj.readyState == 4)
  	{
    	handleXMLag(xmlObj,idnr);
    }
  }

  xmlObj.open ('GET', file, true);
  xmlObj.send ('');
}
 
function handleXMLag(xmlObj,idnr)
 	{
		  var agenda=xmlObj.responseText;
		  elm=document.getElementById ('ajax_agenda');
		  elm.innerHTML = agenda;
			
		  if(idnr==1)
		  {
		  elm2=document.getElementById ('1');
		  elm2.style.borderTopWidth = "1px";
		  elm2.style.borderTopStyle = "dashed";
		  elm2.style.borderTopColor = "#990000";
		  elm2.style.backgroundColor = "#FFFF99";
		  elm2=document.getElementById ('2');
		  elm2.style.borderTopWidth = "0px";
		  elm2.style.backgroundColor = "#FFFFFF";
          }
		  if(idnr==2)
		  {
		  elm2=document.getElementById ('2');
		  elm2.style.borderTopWidth = "1px";
		  elm2.style.borderTopStyle = "dashed";
		  elm2.style.borderTopColor = "#990000";
		  elm2.style.backgroundColor = "#FFFF99";
		  elm2=document.getElementById ('1');
		  elm2.style.borderTopWidth = "0px";
		  elm2.style.backgroundColor = "#FFFFFF";
          }

			
		  
		  
 	}



function divClose()
{
	document.getElementById('member_pic_block').style.display="none";
}