var xmlHttp;
var isalert;
function getspy(isUpdate){

	var url="ajax/getspy.php";
		if(window.XMLHttpRequest)
		{
			isalert =isUpdate;

			getspycon = new XMLHttpRequest();
		} 
		else if(window.ActiveXObject)
		{

			getspycon = new ActiveXObject("Microsoft.XMLHTTP");
		}
		getspycon.open("GET", url, true);
		getspycon.onreadystatechange = getspy1;
		getspycon.send(null);
	
}

function getspy1() 
{
	if(getspycon.readyState == 4)
	{
		if(getspycon.status == 200) 
			{
			response = getspycon.responseText;
				document.getElementById('webcrad12').style.display='none';
				document.getElementById("holder").innerHTML=response;
				spyRunning = 1;
				if(isalert==1){
				alert("Settings saved");
				}
						
			} 
			else 
			{
				//alert("There was a problem retrieving the data:\n" + getspycon.statusText);
			}
	}
}
