
var xmlhttpA;
var xmlhttpB;

	
function loadMenu(urlA,urlB)
{
	xmlhttpA=null;
	xmlhttpB=null;
	
	if (window.XMLHttpRequest)
	  {// code for all new browsers
	  xmlhttpA=new XMLHttpRequest();
	  xmlhttpB=new XMLHttpRequest();
	  }
	else if (window.ActiveXObject)
	  {// code for IE5 and IE6
	  xmlhttpA=new ActiveXObject("Microsoft.XMLHTTP");
	  xmlhttpB=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	if (xmlhttpA!=null && xmlhttpB!=null)
	  {
			xmlhttpA.onreadystatechange=state_ChangeA;  
	  		xmlhttpA.open("GET",urlA,true);
	  		xmlhttpA.send(null);
			
			xmlhttpB.onreadystatechange=state_ChangeB;  
	  		xmlhttpB.open("GET",urlB,true);
	  		xmlhttpB.send(null);
	  }
	  
 
	else
	  {
	  alert("Your browser does not support XMLHTTP.");
	  }
}


function state_ChangeA()
{
	if (xmlhttpA.readyState==4)
  	{// 4 = "loaded"
  		if (xmlhttpA.status==200)
    	{// 200 = OK
		
			document.getElementById('SMENU').innerHTML=xmlhttpA.responseText;
		
		}
		
	} // ready state 4
 }

function state_ChangeB()
{
	if (xmlhttpB.readyState==4)
  	{// 4 = "loaded"
  		if (xmlhttpB.status==200)
    	{// 200 = OK
		
			document.getElementById('TMENU').innerHTML=xmlhttpB.responseText;
		
		}
		
	} // ready state 4
 }





