// THIS FILE IS DEPRECATED IN FAVOR OF async_1_0.js AS OF DLESE SHARED v2.2 (DSV v1.0.4)

// ----------------------------------- Asynchronous Navigation -----------------------------------
// This script provides a cross-browser API for dealing with asynchronous requests.  This is
// *not* necessarily "AJAX," as the response is not assumed to be XML.
// $Id: async.js,v 1.4 2006/09/25 23:01:57 ryandear Exp $ 

var dlese_xmlHttp = null;	// asynchronous request object

// Cross-browser asynchronous HTTP request:
function dlese_getXMLHTTP() {    
	var A = null;    
	try { 
		A = new ActiveXObject( "Msxml2.XMLHTTP" ); 
	}    
	catch ( e ) {
		try { 
			A = new ActiveXObject( "Microsoft.XMLHTTP" );
		} catch( oc ) { 
			A = null; 
		}    
	}    
	if ( !A && ( typeof XMLHttpRequest != "undefined" ) ) { 
		A = new XMLHttpRequest();    
	}    
	return A; 
} 

// Start an asynchronous request of the given URL.  This function should not be invoked 
// a second time until the callback function has been called!
// 		url - address of the request for info. (not an entire page!)
// 		callback - function that is invoked when the response is ready for processing 
//			(where you use it to update the DOM)
function dlese_asyncRequest( url, callback ) {  
	dlese_xmlHttp = dlese_getXMLHTTP();    
	dlese_xmlHttp.open( "GET", url, true );     
	dlese_xmlHttp.onreadystatechange = callback;    
	dlese_xmlHttp.send( null ); 
} 

