	function grin(tag) {
		var myField = document.getElementById('comment');
		if (document.selection) {
			myField.focus();
			sel = document.selection.createRange();
			sel.text = ' ' + tag + ' ';
			myField.focus();
		}
		else if (myField.selectionStart || myField.selectionStart == '0') {
			var startPos = myField.selectionStart;
			var endPos = myField.selectionEnd;
			var cursorPos = endPos;
			myField.value = myField.value.substring(0, startPos)
						  + ' ' + tag + ' '
						  + myField.value.substring(endPos, myField.value.length);
			cursorPos += tag.length + 2;
			myField.focus();
			myField.selectionStart = cursorPos;
			myField.selectionEnd = cursorPos;
		}
		else {



			myField.value += tag;
			myField.focus();

		}
	}

	if(self!=top){
	top.location=self.location;
	}

	function toggle_posts(obj) {
		document.getElementById('related_posts').style.display = 'none';
		document.getElementById('most_30_posts').style.display = 'none';
		document.getElementById('most_all_posts').style.display = 'none';
		document.getElementById(obj).style.display = '';
		
		document.getElementById('related_posts_title').className = 'none';
		document.getElementById('most_30_posts_title').className = 'none';
		document.getElementById('most_all_posts_title').className = 'none';
		document.getElementById(obj+'_title').className = 'post_list_title';
	}