var http_request = null;
var http_thread = null;

function xmlHttp_thread() 
{
	if( window.XMLHttpRequest ) 
	{
		http_thread = new XMLHttpRequest();
		if( http_thread.overrideMimeType ) 
		{
			http_thread.overrideMimeType( 'text/xml' );
		}
	} else if( window.ActiveXObject ) {
		try 
		{
			http_thread = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				http_thread = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {}
        }
	}
	
	if( !http_thread ) 
	{
		window.alert( "initializtion xmlHttp example invalidation" );
		return false;
	}
}

function getRequest_thread( url, parm, method, asynchronism, charset, callback ) 
{
	xmlHttp_thread();
	http_thread.onreadystatechange = callback;
	http_thread.open( method, url, asynchronism );
	http_thread.setRequestHeader( "If-Modified-Since", "0" );
	http_thread.setRequestHeader( "Content-Type", "application/x-www-form-urlencoded" );
	http_thread.setRequestHeader( "Content-Type", charset );
	http_thread.send(null);
}