	var isWorking=false;

	function handleCommentsHttpResponse() {
		var fpath=new Array();
		var iNewsID;
		if (http.readyState == 4)
		{
			var comments = http.responseText.split("\n");
			var theShow = document.getElementById('comments'+escape(comments[0]));
			for (var i = 1; i<comments.length;i++)
			{
				// Split the comma delimited response into an array
				//results = http.responseText.split("	");
				//imgs = results[0].split(",");
			
				theShow.innerHTML = theShow.innerHTML + "\n" + comments[i];
				//alert(theShow.innerHTML.value);
				isWorking = false;
			}
			theShow.innerHTML = "<div class='quickCommentBox'>"+theShow.innerHTML+"</div>";
		}
	}

	function ajaxComments(newsID) {
		//alert("t"+newsID);

		var url="comments.php?newsID=";
		var theShow = document.getElementById('comments'+newsID);
		if (theShow.innerHTML.length > 0)
		{
			theShow.innerHTML = '';
		}
		else if (!isWorking)
		{
		//	alert(newsID);
			http.abort();
			http.open("GET", url + escape(newsID), true);
			http.onreadystatechange = handleCommentsHttpResponse;
			isWorking = true;
			http.send(null);
		}
	}
	function getHTTPObject()
	{
		var xmlhttp;
		if (navigator.appName == 'Microsoft Internet Explorer')
		{
			try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); }
			catch (e) { xmlhttp = false; }
		}
		else
		{
			try { xmlhttp = new XMLHttpRequest(); }
			catch (e) { xmlhttp = false; }
		}
		return xmlhttp;
	}
	var http = getHTTPObject(); // We create the HTTP Object