//global variables used to store object;
var req;
var setobj;
var falgchk=0;


//Create xmlhttp object.
function createXMLHttpRequest() {    
	var ua;
	
	if(window.XMLHttpRequest) {    
		try {     
			ua = new XMLHttpRequest();    
		} catch(e) {     
			ua = false;    
		}    
	} else if(window.ActiveXObject) {     
		try {       
			ua = new ActiveXObject("Microsoft.XMLHTTP");     
		} catch(e) {       
			ua = false;     
		}    
	}   return ua;   
}     


//Request file to get output.
function sendRequest(file) { 
	var str = "";  
	req.open('GET', file); 
	req.setRequestHeader("Cache-Control", "no-cache");    
	req.onreadystatechange = handleResponse;    
	req.send(null);   
	return false;  
}   


// REQUEST FILE WITH METHOD POST
function sendRequest_POST(file,params) {  
	var str = "";    

	req.open('POST', file, true);    

	//Send the proper header information along with the request
	req.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	req.setRequestHeader("Content-length", params.length);
	req.setRequestHeader("Connection", "close");

	req.onreadystatechange = handleResponse;    
	req.send(params);   
	return false;  
}


//Get response for div poppulation.
function handleResponse() {   
	if(req.readyState == 4){    
		var response = req.responseText;
		
		setobj.innerHTML = response;

		if(prev_html!="") {
	        //opacity('news_lett',100,0,5000);
			setTimeout("restore_html();",5000);
		//	opacity('news_lett',0,100,1000);
		}
			

		
		
	}  
}


function restore_html() {
	
	//opacity('news_lett',0,100,500);
	document.getElementById("news_lett").className ="footer_white";

	document.getElementById("news_lett").innerHTML=prev_html;

}


//function to show a div.
function showdiv(divobj)
{
	//if(window.parent.sel_search != "undefined")
	//	window.parent.sel_search.style.visibility = "hidden";
	divobj.style.visibility="visible";
}


//function to hide a div.
function hidediv(divobj)
{
	//if(window.parent.sel_search != "undefined")
	//	window.parent.sel_search.style.visibility = "visible";
	divobj.style.visibility="hidden";
}



function stateChanged() 
 { 
//	 alert("showRSS")

 if (req.readyState==4 || req.readyState=="complete")
  { 

if(req.responseText !="")
{
//document.write(req.responseText);
if (document.getElementById("about_left") !=null)
  document.getElementById("about_left").innerHTML=req.responseText ;
}
	  	 
  } 
 }

