function ajaxFunction(){

 var xmlHttp;
  try
    {    // Firefox, Opera 8.0+, Safari 
 	xmlHttp=new XMLHttpRequest();  
  }
  catch (e)
    {    // Internet Explorer 
  try
      {   
 	 xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); 
      }
    catch (e)
      {   
  	try
        	{   
     		xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); 
      	}
     	 catch (e)
        	{     
 		alert("Your browser does not support AJAX!");    
    		return false;
	}

      }  
 }	

	return xmlHttp;
	
}
function cbaUpdateElement(element,url,img){
	xmlHttp=ajaxFunction();
			
	xmlHttp.onreadystatechange=function(){
	
		if(xmlHttp.readyState==0){
		
			alert("Not Intialised");
			
		}
		if(xmlHttp.readyState==1){
		
			document.getElementById(""+element+"").innerHTML=img;
			
		}

		if(xmlHttp.readyState==2){
		
		//alert("Has been sent");
		
		}
		if(xmlHttp.readyState==3){
		
		//alert("In process....");
		
		}

		if(xmlHttp.readyState==4){
		
			document.getElementById(""+element+"").innerHTML=xmlHttp.responseText;
			
		}
	}	
	
      	var url=url;
      	xmlHttp.open("GET",url,true);
    	xmlHttp.send(null);
    
}