function xmlhttpPost(URL)
{
	var xmlHttpReq = false;
	var self = this;
	
	// There are many browsers, and many ways to perform AJAX; Try them all
	try { self.xmlHttpReq = new XMLHttpRequest(); } catch(e) {}
	try { self.xmlHttpReq = new ActiveXObject("Msxml2.XMLHTTP.6.0"); } catch(e) {}
	try { self.xmlHttpReq = new ActiveXObject("Msxml2.XMLHTTP.3.0"); } catch(e) {}
	try { self.xmlHttpReq = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) {}
	try { self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) {}
	if (!self.xmlHttpReq) { throw new Error( "This browser does not support XMLHttpRequest." ); }
	
	self.xmlHttpReq.open("POST", URL, true);
	self.xmlHttpReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
	self.xmlHttpReq.onreadystatechange = function() {
		if (self.xmlHttpReq.readyState == 4) {
			updatepage(self.xmlHttpReq.responseText);
		}
	}
	self.xmlHttpReq.send(getquerystring());
}

function getquerystring()
{
	var form = document.forms['commenting'];
	var comment = form.comment.value;
	var video_id = form.video_id.value;
	
	// NOTE: No "?" before this query string
	q_str = "comment=" + escape(comment) + "&video_id=" + escape(video_id);
	
	form.comment.value = ""; // Clear
	
	return q_str;
}

function updatepage(str)
{
	document.getElementById("comment-post-result").innerHTML = str;
}
