function ajaxFunction(str)
{
	var xmlHttp;
	try
	{
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		// Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			try
			{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e)
			{
				alert("Your browser does not support AJAX!");
				return false;
			}
		}
	}
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState==4)
		{
			document.getElementById("mycontent").innerHTML= xmlHttp.responseText;
		}
	}
	xmlHttp.open("GET","/showcomments.php?username="+str,true);
	xmlHttp.send(null);
}

function ajaxFunction2(str)
{
	var xmlHttp;
	var tmpVar;
	var tmpStr;
	try
	{
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
	}
	catch (e)
	{
		// Internet Explorer
		try
		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			try
			{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e)
			{
				alert("Your browser does not support AJAX!");
				return false;
			}
		}
	}
	xmlHttp.onreadystatechange=function()
	{
		if(xmlHttp.readyState==4)
		{
			document.getElementById("mycontent").innerHTML = xmlHttp.responseText;
			tmpStr = document.getElementById("votecollapse").getAttributeNode('onclick').nodeValue;
			tmpStr = tmpStr.replace("ajaxFunction2", "ajaxFunction3");
			document.getElementById("votecollapse").getAttributeNode('onclick').nodeValue = tmpStr;
			
		}
	}
	xmlHttp.open("GET","/showvotes.php?babeid="+str,true);
	xmlHttp.send(null);
}

function ajaxFunction3(str)
{
	var tmpStr;
	
	document.getElementById("mycontent").innerHTML = "";
	tmpStr = document.getElementById("votecollapse").getAttributeNode('onclick').nodeValue;
	tmpStr = tmpStr.replace("ajaxFunction3", "ajaxFunction2");
	document.getElementById("votecollapse").getAttributeNode('onclick').nodeValue = tmpStr;
}