function toggleComments(el, hide) {
	var styleObj = getStyleObject('comments-' + el);
	var obj = getObject('link-' + el);
	if (obj) {
		var str = obj.innerHTML;
		var index = str.indexOf('(');
		if (styleObj) {
			if ((!styleObj.display && hide == '0') || styleObj.display == 'none') {
				styleObj.display = 'block';

				obj.innerHTML = 'hide comments ';
				if (index != -1)
					obj.innerHTML += str.substring(index);
			}else  {
				styleObj.display = 'none';

				obj.innerHTML = 'leave a comment ';
				if (index != -1)
					obj.innerHTML += str.substring(index);
			}
		}
	}
}
function commentOn(comment, idn) {
	var form = getObject(comment);
	if (form) {
		if (idn == 0) {
			if (form.msg.value == ' type comment ')
				form.msg.value = '';
		}else if (idn == 1) {
			if (form.name.value == ' type name ')
				form.name.value = '';
		}
	}
}
function commentOff(comment, idn) {
	var form = getObject(comment);
	if (form) {
		if (idn == 0) {
			if (form.msg.value == '')
				form.msg.value = ' type comment ';
		}else if (idn == 1) {
			if (form.name.value == '')
				form.name.value = ' type name ';
		}
	}
}
