var request = false;
var flashCount = 0;
var flashFormTime;
try {
	request = new XMLHttpRequest();
} catch (trymicrosoft) {
	try {
		request = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (othermicrosoft) {
		try {
			request = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (failed) {
			request = false;
		}
	}
}




function callFaqListServer() {
	//function callSendFaxListServer(url) {

	//alert (type);

	

	var url = 'total.php';

	// Open a connection to the server
	request.open("GET", url, true);

	// Setup a function for the server to run when it's done
	request.onreadystatechange = updateFaqListPage;

	// Send the request
	request.send(null);
}

function daily_count(p) {
	//function callSendFaxListServer(url) {

	//alert (type);

	

	var url = 'p_update.php?p=' + p;
	//alert(url);
	// Open a connection to the server
	request.open("GET", url, true);

	// Setup a function for the server to run when it's done
	request.onreadystatechange = updateFaqListPage;

	// Send the request
	request.send(null);
}

function updateFaqListPage(){
	//alert(request.readyState);
	if (request.readyState == 4) {
		//alert(request.status);
		if (request.status == 200) {
			var response = request.responseText;
			//alert (response);
			//$I('faqlist',response);
		}
		
	}
}