// JavaScript Document
function addPublicComment(){
		var topic = document.getElementById('TOPIC').value;
		var name = document.getElementById('NAME').value;
		var title = document.getElementById('TITLE').value;
		var comment = escape(document.getElementById('COMMENT').value);
		var parent = document.getElementById('PARENT').value;
		var thePath = "ajax/publicComments.php?ajax=publicComment&topic="+topic+"&name="+name+"&title="+title+"&comment="+comment+"&parent="+parent;
		ajaxGetContents('javascript',thePath, 'none');	
	}
	
function refreshComments(topic){
	var thePath = "ajax/publicComments.php?ajax=refresh&topic="+topic;
	ajaxGetContents('innerHTML',thePath, 'publicComments');	
	hideLayer('popup');
}