
function getListProfile(emailP, passwordP, dividP)
{
	httpReqP=GetXmlHttpObjectListProfile()
	if (httpReqP==null)
	{
	 alert ("Browser tidak support HTTP Request")
	 return
	} 
	
	var url="include/show-list-profile-in-action.php"
	url=url+"?email="+emailP
	url=url+"&password="+passwordP
	url=url+"&sid="+Math.random()
	httpReqP.onreadystatechange=function(){
		if(httpReqP.readyState != 4)
		{
		 document.getElementById(dividP).innerHTML = '<span class="textCilik"><br>Refreshing...</span>';
		}
		
		if (httpReqP.readyState==4 || httpReqP.readyState=="complete")
		{ 
		 document.getElementById(dividP).innerHTML=httpReqP.responseText;
		} 
	}
	httpReqP.open("GET",url,true)
	httpReqP.send(null)
}

function GetXmlHttpObjectListProfile()
{
var xmlHttpListProfile=null;
try
 {
 // Firefox, Opera 8.0+, Safari
 xmlHttpListProfile=new XMLHttpRequest();
 }
catch (e)
 {
 //Internet Explorer
 try
  {
  xmlHttpListProfile=new ActiveXObject("Msxml2.XMLHTTP");
  }
 catch (e)
  {
  xmlHttpListProfile=new ActiveXObject("Microsoft.XMLHTTP");
  }
 }
return xmlHttpListProfile;
}

