/*********************************************************************************
  xmlFunctions.js - General functions for read RSS Feed in XML format

**********************************************************************************/

var xmlhttp

function loadXMLDoc(url) 
{
	xmlhttp=null
	// code for Mozilla, etc.
	if (window.XMLHttpRequest)
	{
		xmlhttp=new XMLHttpRequest()
	}
	else if (window.ActiveXObject)
	{
		// code for IE
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
	}

	if (xmlhttp!=null)
	{
		/* xmlhttp.onreadystatechange=onResponse; */
		xmlhttp.onreadystatechange=ImpostaPaginazioneNews;
		xmlhttp.open("GET",url,true);
		xmlhttp.send(null);
	}
	else
	{
		alert("Your browser does not support XMLHTTP.")
	}
}

function checkReadyState(obj)
{
	if(obj.readyState == 4)
	{
		if(obj.status == 200 || obj.status == 302)
		{
			return true;
		}
		else
		{
		}
	}
}


