function NewXmlHttp()
{
	var xmlHttp;
	if(window.XMLHttpRequest){ // FF, Opera, Safari
		try
		{
			xmlHttp	= new XMLHttpRequest ();
		}
		catch(e)
		{
			xmlHttp	= null;
		}

	}
	else if(window.ActiveXObject){ // IE..
		var xmlHttpVersion = new Array ("MSXML2.XMLHTTP.6.0",
			"MSXML2.XMLHTTP.5.0",
			"MSXML2.XMLHTTP.4.0",
			"MSXML2.XMLHTTP.3.0",
			"MSXML2.XMLHTTP",
			"Microsoft.XMLHTTP");
			for(var i=0; i<xmlHttpVersion.length; i++){
				try
				{
					xmlHttp	= new ActiveXObject(xmlHttpVersion[i]);
				}
				catch(e){
					xmlHttp = null;
				}
			}
	}

		if(!xmlHttp){
			alert ("Błąd podczas tworzenia obiektu xmlHttp");
		}
		else{
			return xmlHttp;

		}

}

function Confirm(text,location) {
	if (confirm(text)) {
		parent.location.href=location;
		return true;
	} else {}
}
