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;
}

function MakeRequest(number,taal)
{
 var xmlHttp = getXMLHttp();
  
  xmlHttp.onreadystatechange = function()
  {
    if(xmlHttp.readyState == 4)
    {
      HandleResponse(xmlHttp.responseText);
    }
  }
  xmlHttp.open("GET", "getReferentie.php?sub="+number+"&lang="+taal, true); 
  xmlHttp.send(null);
}

function HandleResponse(response)
{
  document.getElementById('ResponseDiv').innerHTML = response;
  	sIFR.activate(scalasansbold);
	sIFR.replace(scalasansbold, {
		selector: '#submenu h1',  wmode: 'transparent', css: [
		  '.sIFR-root { color:#cccccc; font-size:30px; line-height:30px; }'
		]
	});
	
	sIFR.activate(scalasansbold);
	sIFR.replace(scalasansbold, {
		selector: '#content h1',  wmode: 'transparent', css: [
		  '.sIFR-root { color:#003366; font-size:30px; }'
		]
	});
	
	sIFR.activate(scalasansbold);
	sIFR.replace(scalasansbold, {
		selector: '.tussen_kopje',  wmode: 'transparent', css: [
		  '.sIFR-root { color:#003366; font-size:18px; }'
		]
	});
	
	sIFR.activate(scalasansbold);
	sIFR.replace(scalasansbold, {
		selector: '.tussen_kopje_news',  wmode: 'transparent', css: [
		  '.sIFR-root { color:#003366; font-size:18px; }'
		]
	});
	
	sIFR.activate(scalasansbold);
	sIFR.replace(scalasansbold, {
		selector: '.hoofdmenuTitels',  wmode: 'transparent', css: [
		  '.sIFR-root { color:#003366; font-size:18px; }'
		  ,'a { text-decoration:none; color:#003366; }' 
		  ,'a:hover { text-decoration:underline; color:#003366; }' 
		]
	});
	
}

