// JavaScript Document
function DoCallback(data)
{   // branch for native XMLHttpRequest object    
	if(window.XMLHttpRequest) 
	  { req = new XMLHttpRequest();        
		req.onreadystatechange = processReqChange;        
		req.open('POST', url, true);        
		req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');        
		req.send(data);    
		// branch for IE/Windows ActiveX version    
	  } 
	else if (window.ActiveXObject) 
	  { req = new ActiveXObject('Microsoft.XMLHTTP')       
		if(req) 
		  { req.onreadystatechange = processReqChange;            
			req.open('POST', url, true);            
			req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');            
			req.send(data);        
		  }    
	   }
}


function processReqChange() 
{   // only if req shows 'loaded'    
	if(req.readyState == 4) 
	  { // only if 'OK'        
	    if(req.status == 200)
		  { eval(what); }
		else
		  { //alert('There was a problem retrieving the XML data: ' + req.responseText); 
		    DoCallback(strCallBack)
		  }    
	  }
}

// JavaScript Document
function DoCallback2(data)
{   // branch for native XMLHttpRequest object    
	if(window.XMLHttpRequest) 
	  { req2 = new XMLHttpRequest();        
		req2.onreadystatechange = processReqChange2;        
		req2.open('POST', url2, true);        
		req2.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');        
		req2.send(data);    
		// branch for IE/Windows ActiveX version    
	  } 
	else if (window.ActiveXObject) 
	  { req2 = new ActiveXObject('Microsoft.XMLHTTP')       
		if(req2) 
		  { req2.onreadystatechange = processReqChange2;            
			req2.open('POST', url2, true);            
			req2.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');            
			req2.send(data);        
		  }    
	   }
}


function processReqChange2() 
{   // only if req shows 'loaded'    
	if(req2.readyState == 4) 
	  { // only if 'OK'        
	    if(req2.status == 200)
		  { eval(what2); }
		else
		  {
		    DoCallback2(strCallBack2);
		  }    
	  }
}

function DoCallback3(data)
{   // branch for native XMLHttpRequest object    
	if(window.XMLHttpRequest) 
	  { req3 = new XMLHttpRequest();        
		req3.onreadystatechange = processReqChange3;        
		req3.open('POST', url3, true);        
		req3.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');        
		req3.send(data);    
		// branch for IE/Windows ActiveX version    
	  } 
	else if (window.ActiveXObject) 
	  { req3 = new ActiveXObject('Microsoft.XMLHTTP')       
		if(req3) 
		  { req3.onreadystatechange = processReqChange3;            
			req3.open('POST', url3, true);            
			req3.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');            
			req3.send(data);        
		  }    
	   }
}


function processReqChange3() 
{   // only if req shows 'loaded'    
	if(req3.readyState == 4) 
	  { // only if 'OK'        
	    if(req3.status == 200)
		  { eval(what3); }
		else
		  {
		    DoCallback3(strCallBack3);
		  }    
	  }
}