if (canComment())
{
	document.write('<script type="text/javascript" src="http://www.virtualparcels.com/wmst/http?request=getcomments&app=vp">');
	document.write('</script>');
}

function canComment()
{
	if (location.pathname.indexOf("page.cfm") != -1)
	{
		if (document.title == "Related Websites") return false;
		return true;
	}
	if (location.pathname.indexOf("article.cfm") != -1) return true;
	if (location.pathname == "") return true;
	if (location.pathname == "/") return true;
	return false;
}

function keyPressed(event)
{
	if (event.ctrlKey == false) return;
	if (event.keyCode != 10 && event.keyCode != 13) return;
	sendComment(event);
}     

function sendComment(event)
{
	var comment = document.getElementById("commentArea").value;
	comment = encodeURI(comment);
	var author = document.getElementById("authorField").value;
	author = encodeURI(author);
	document.getElementById("author").value = author;
	document.getElementById("comment").value = comment;
	document.getElementById("commentForm").action = "http://www.virtualparcels.com/wmst/http?request=sendcomment&app=vp";
	document.getElementById("submitButton").click();
}
