var xmlHttp

function update(gid,mid)
{
//alert(mid);
//alert(gid);
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
} 

var url = "../AjaxPhpFiles/update_status.php"; // The server-side script
url=url+"?fid="+mid+"&gid="+gid
//alert(url);
xmlHttp.onreadystatechange=proFriChangeupdatestatus55
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
} 


function proFriChangeupdatestatus55() 
{ 
 	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
	     document.getElementById("updatestatus1").innerHTML="";
		document.getElementById("updatestatus").innerHTML=xmlHttp.responseText
	} 
} 



function update1(gid,mid)
{
//alert(mid);
//alert(gid);
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
} 

var url = "../AjaxPhpFiles/update_status1.php"; // The server-side script
url=url+"?fid="+mid+"&gid="+gid
//alert(url);
xmlHttp.onreadystatechange=proFriChangeupdate33
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
} 


function proFriChangeupdate33() 
{ 
 	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
	    document.getElementById("updatestatus").innerHTML="";
		document.getElementById("updatestatus1").innerHTML=xmlHttp.responseText
	} 
} 

function GetXmlHttpObject()
{ 
var objXMLHttp=null
if (window.XMLHttpRequest)
{
objXMLHttp=new XMLHttpRequest()
}
else if (window.ActiveXObject)
{
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
}
return objXMLHttp
}
