var xmlHttp;


function first()
{

//Zürich
var strURL = "http://polizei-mashup.marc-i.net/include/re.php?url=www.polizeinews.ch&adr=/rss/feed/zuerich/&wat=zurich";
getXML(strURL);

//Ostschweiz
var strURL = "http://polizei-mashup.marc-i.net/include/re.php?url=www.polizeinews.ch&adr=/rss/feed/ostschweiz/&wat=ost";
getXML(strURL);


//Nordwestschweiz
var strURL = "http://polizei-mashup.marc-i.net/include/re.php?url=www.polizeinews.ch&adr=/rss/feed/nordwestschweiz/&wat=nordwest";
getXML(strURL);


//Zentralschweiz
var strURL = "http://polizei-mashup.marc-i.net/include/re.php?url=www.polizeinews.ch&adr=/rss/feed/zentralschweiz/&wat=zentral";
getXML(strURL);


//Mittelland
var strURL = "http://polizei-mashup.marc-i.net/include/re.php?url=www.polizeinews.ch&adr=/rss/feed/espace_mittelland/&wat=mittel";
getXML(strURL);


//News
var strURL = "http://polizei-mashup.marc-i.net/include/re.php?url=www.polizeinews.ch&adr=/rss/feed/&wat=news";
getXML(strURL);


//vermisste
var strURL = "http://polizei-mashup.marc-i.net/include/re.php?url=www.polizeinews.ch&adr=/rss/feed/vermisstfaelle/&wat=vermisste";
getXML(strURL);


//Kapo Graubunden
var strURL = "http://polizei-mashup.marc-i.net/include/re.php?url=www.kapo.ch&adr=/kapomeldungen.xml&wat=graubunden";
getXML(strURL);


load();
}




function getXML(strURL)
{ 

xmlHttp=GetXmlHttpObject();

if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }


xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",strURL,true);
xmlHttp.send(null);


}

function stateChanged() 
{ 
	if (xmlHttp.readyState==4)
	{

		//alert(xmlHttp.responseText);


	}
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  //alert("fire");
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    //alert("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    //alert("Microsoft.XMLHTTP");

    }
  }
return xmlHttp;
}

