var xmlHttpS2

function loadScript2(start) {
	xmlHttpS2=GetXmlHttpObjectS2();
	if (xmlHttpS2==null) {
		alert ("Your browser does not support AJAX!");
		return;
	}
				var bounds = map.getBounds();
				var southWest = bounds.getSouthWest();
				var northEast = bounds.getNorthEast();
				var north = northEast.lat();
				var south = southWest.lat();
				var east = northEast.lng();
				var west = southWest.lng();

	var url="script2.php?";
	url=url+"n="+north+"&e="+east+"&s="+south+"&w="+west+"&start="+start;
	url=url+"&sid="+Math.random();
	xmlHttpS2.onreadystatechange=stateChangedScript2;
	xmlHttpS2.open("GET",url,true);
	xmlHttpS2.send(null);
}

function stateChangedScript2() {
	if (xmlHttpS2.readyState==4) {
		eval(xmlHttpS2.responseText);
		//document.getElementById("script2").innerHTML=xmlHttpS2.responseText;

	}
}

function GetXmlHttpObjectS2() {
	var xmlHttpS2=null;
	try {
		// Firefox, Opera 8.0+, Safari
		xmlHttpS2=new XMLHttpRequest();
	}
	catch (E) {
	// Internet Explorer
		try {
			xmlHttpS2=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (E) {
			xmlHttpS2=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttpS2;
}

