var xmlhttp=null;
    
function loadPage(page,parameter,divid){    

        
		  	try { 
		
		if (window.XMLHttpRequest)  xmlhttp = new XMLHttpRequest();  
           else if (window.ActiveXObject)         
                    xmlhttp = new ActiveXObject((navigator.userAgent.toLowerCase().indexOf('msie 5') != -1) ? "Microsoft.XMLHTTP" : "Msxml2.XMLHTTP");    
                        
         }catch(e){xmlhttp=null;}
		   param="?"+parameter;
		//alert("bappa :"+param);
		   xmlhttp.open('GET',page+param,true);
		   xmlhttp.onreadystatechange=function (){
		                                           if((xmlhttp.readyState == 4)&&(xmlhttp.status == 200)){
                                                     var response = xmlhttp.responseText;
												//alert('sssssssssssssssssssss'+divid);
												//alert("return data="+response+divid);
													//alert(response);
														//if(response=="redirect")
														   //location.href="./homepage.php"; 
														  // else
                                                       document.getElementById(divid).innerHTML = response;
		                                                  }
												}//inner function
												
		try {			  
	       xmlhttp.send(null);
		    }catch(e) {alert("not working");}
		}//loadfunction
	