function toggledisplay(id) {
	var obj = document.getElementById(id);
	if(obj.style.display != 'none')
		obj.style.display = 'none';
	else
		obj.style.display = '';
}
function toggleboolean(id) {
	var obj = document.getElementById(id);
	if(obj.value == 'false')
		obj.value = 'true';
	else
		obj.value = 'false';
}
function rot( t, u, v ) {  return String.fromCharCode( ( ( t - u + v ) % ( v * 2 ) ) + u ); }  function rot13( s ) {  var b = [], c, i = s.length,   a = 'a'.charCodeAt(), z = a + 26,   A = 'A'.charCodeAt(), Z = A + 26;  while(i--) {   c = s.charCodeAt( i );   if( c>=a && c<z ) { b[i] = rot( c, a, 13 ); }   else if( c>=A && c<Z ) { b[i] = rot( c, A, 13 ); }   else { b[i] = s.charAt( i ); }  }  return rot13_br(b.join( '' )); }  function rot5( s ) {  var b = [], c, i = s.length,   a = '0'.charCodeAt(), z = a + 10;  while(i--) {   c = s.charCodeAt( i );   if( c>=a && c<z ) { b[i] = rot( c, a, 5 ); }   else { b[i] = s.charAt( i ); }  }  return b.join( '' ); }  function rot135( s ) {  return rot13( rot5( s ) ); }
function rot13_br(s) {
  // Fixes <br> elements malformed by ROT13
  return s.replace(/\<.*\>/gi,"<br \/>");
}

function submit_comment() {
	document.getElementById('comment_form').action = 'entry.php';
	document.getElementById('comment_form').submit();
}

function edit_comment() {
	document.getElementById('edit_comment_form').action = 'entry.php';
	document.getElementById('edit_comment_form').submit();
}