		

function GetData(pageIndex,topicid,divName,boardid)
{ 
	var xmlHttp
	var url="repliesListData.aspx?page="+pageIndex+"&topicid="+topicid+"&boardid="+boardid
	xmlHttp=GetXmlHttpObject()
	xmlHttp.onreadystatechange = function()
	{
		if (xmlHttp.readyState==4 || xmlHttp.readyState=='complete')
		{ 
			document.getElementById(divName).innerHTML = xmlHttp.responseText
		} 
	} 

	xmlHttp.open("GET", url , true)
	xmlHttp.send(null)
} 
function GetXmlHttpObject()
{ 
	var xmlHttp;
	if(window.XMLHttpRequest)
	{
		xmlHttp = new XMLHttpRequest();
		return xmlHttp;
	}
	try
	{
		xmlHttp = new ActiveXObject('MSXML2.XMLHTTP.4.0');
		return xmlHttp;
	}
	catch(e)
	{
		try
		{
			xmlHttp = new ActiveXObject('MSXML2.XMLHTTP.3.0');
			return xmlHttp;
		}
		catch(e)
		{
			try
			{
				xmlHttp = new ActiveXObject('MSXML2.XMLHTTP.2.6');
				return xmlHttp;
			}
			catch(e)
			{
				try
				{
					xmlHttp = new ActiveXObject('MSXML2.XMLHTTP');
					return xmlHttp;
				}
				catch(e)
				{
					try
					{
						xmlHttp = new ActiveXObject('Microsoft.XMLHTTP');
						return xmlHttp;
					}
					catch(e)
					{
						alert("Your browser does not support AJAX!");        
						return null;
					}
				}
			}
		}
	}
}
function showreplieslist(repliestag,topicid,divName,boardid)
{
	if(document.all[repliestag].style.display==""||document.all[repliestag].style.display=="undefined")
	{
		document.all[repliestag].style.display = "none";
		document.all["img"+repliestag].src="skins/Default/plus.gif";
	}
	else
	{
		document.all[repliestag].style.display = "";
		document.all["img"+repliestag].src="skins/Default/nofollow.gif";
		GetData(1,topicid,divName,boardid);
	}
}

