			
/*--------------------------------------------------------------------------------------------------------------*/
			
function newAjax() 
	{
	var query;
	try 	{	query = new XMLHttpRequest();	} 
	catch (trymicrosoft) 
		{
		try 	{	query = new ActiveXObject("Msxml2.XMLHTTP");	} 
		catch (othermicrosoft) 
			{
			try 						{	query = new ActiveXObject("Microsoft.XMLHTTP");	} 
			catch (failed) 		{	query = false;	}
			}
		}

	if (!query)		alert("Error initializing XMLHttpRequest!");
	return(query);
	}

/*--------------------------------------------------------------------------------------------------------------*/

function check_var(variable)
	{
	if  (variable == null) return(false);
	if  (variable == "") return(false);
	if  (variable == 0) return(false);
	
	return(true);
	}

/*--------------------------------------------------------------------------------------------------------------*/
