// AJAX FILE has been used display various WEBPAGES within WEB CONTENTS (such as DIV) and for validating

var http = getHTTPObject();

function handleHttpResponse() 
	{    
	if (http.readyState == 4) 
		{ 
		if(http.status==200) 
			{ 
			var results=http.responseText;
			document.getElementById('news_list1').innerHTML = results; 		
			} 
		} 
	} 

function getHTTPObject() 
	{ 
	var xmlhttp; 

	if(window.XMLHttpRequest)
		{ 
		xmlhttp = new XMLHttpRequest(); 
		} 
	else if (window.ActiveXObject)
		{ 
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); 
		
		if (!xmlhttp)
			{ 
			xmlhttp=new ActiveXObject("Msxml2.XMLHTTP"); 
			} 
		} 
		
	return xmlhttp; 										  
	}
	
function changeDiv()
	{	
	//alert("dfsgds");
	http.open("GET","./?cat=1", true); 
	http.onreadystatechange = handleHttpResponse; 
	http.send(null);
	}
