// JavaScript Document
var xmlhttp = false;

//Chech if IE
try {
	//If greater than 5.
	xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (exception1) {
	//If not newer then 5.
	try {
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	} catch (exception2) {
		//Else non-IE.
		xmlhttp = false;
	}
}
//If non-IE.
if(!xmlhttp && typeof XMLHttpRequest != 'undefined'){
	xmlhttp = new XMLHttpRequest();
}

function getSetting()
{
	if(xmlhttp) {
		var obj = document.getElementById("admin_table");
		var setting = document.getElementById("setting").value;
		var phppage = "getsetting.php?s="+setting;
		xmlhttp.open("GET", phppage);
		
		xmlhttp.onreadystatechange = function()
		{
			if(xmlhttp.readyState == 4 && xmlhttp.status == 200) {
				obj.innerHTML = xmlhttp.responseText;
			}
		}
		xmlhttp.send(null);
		
	}
}
