/*************************************
*** ©°©¬©¬©¬©¬©¬©¬©¬©¬©¬©¬©¬©¬©¬©´ ***
*** ©®  Powered By Ma.Hong.Tao  ©® ***
*** ©®  Last Modify 2008-12-17  ©® ***
*** ©¸©¬©¬©¬©¬©¬©¬©¬©¬©¬©¬©¬©¬©¬©¼ ***
*** ©°©¬©¬©¬©¬©¬©¬©¬©¬©¬©¬©¬©¬©¬©´ ***
*** ©®mahongtao_2000@hotmail.com©® ***
*** ©¸©¬©¬©¬©¬©¬©¬©¬©¬©¬©¬©¬©¬©¬©¼ ***
*************************************/

function createXmlHttp()
{
	var xmlHttp=false;
	try 
	{
		xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
	} 
	catch (e)
	{
		try
		{
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch(e2)
		{
			xmlHttp = false;
		}
	}
	if (!xmlHttp && typeof XMLHttpRequest != 'undefined')
	{
		xmlHttp = new XMLHttpRequest();
	}
	return xmlHttp;
}

function runAJAX(strURL,returnObj)
{
	if(strURL.indexOf('?')>0)
		strURL+='&Temp='+(new Date()).getTime();
	else
		strURL+='?Temp='+(new Date()).getTime();
			
			
	var xmlHttp=createXmlHttp();
	
	xmlHttp.open("Get",strURL,true);
	
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState==4)
		{
			if(returnObj)
				returnObj.innerHTML=xmlHttp.responseText;
		}
	}
	
	xmlHttp.send(null);
}

// profile comment : get ,add , delete
function runProfileCommentAJAX(strURL,returnObj)
{
	if(strURL.indexOf('?')>0)
		strURL+='&Temp='+(new Date()).getTime();
	else
		strURL+='?Temp='+(new Date()).getTime();
			
			
	var xmlHttp=createXmlHttp();
	
	xmlHttp.open("Get",strURL,true);
	
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState==4)
		{
			if(returnObj)
			{
				returnObj.innerHTML=xmlHttp.responseText;
				PassValue();
		    }
		}
	}
	
	xmlHttp.send(null);
}