How can I make the div reappear again, after the person chose to hide the div? (javascript-related)
<p>So I am javascript illiterate, but I did find this useful code online:</p>

<pre><code>&lt;script type="text/javascript"&gt;
function readCookie( cName )
{
  var v;

  return decodeURIComponent( ( v = ( document.cookie || "" ).match( "(^|\\s)" + cName + "=([^;$]+)" ) ) ? v[ 2 ] : "" );
}

function setCookie( cName, cValue, life, cPath, cDomain, cSecure )
{
 var dt = new Date(), 
     expSecs = ( expSecs = life.toString().match( /\bsecs\s*=\s*(\d+)/i ) ) ? Number( expSecs[ 1 ] ) : 0,
     params = ( life ? ( ";expires=" + new Date( expSecs ? ( dt.setTime( dt.getTime() + expSecs * 1000 ) )                                                          : ( dt.setDate( dt.getDate() + life) ) ).toUTCString() ) : "" )
            + ( cPath ? (";path=" + cPath) : "" )
            + ( cDomain ? ";domain=" + cDomain : "" )
            + ( cSecure ? ";secure" : "" );

 document.cookie = cName + "=" + encodeURIComponent( cValue ) + params;

 return readCookie( cName );
}

if( readCookie( "close" ) )
{
  document.getElementById("thing").style.display="none";
}

function close_thing()
{
  document.getElementById("thing").style.display="none";
  setCookie( "close", "true", 20 );
}
&lt;/script&gt;
</code></pre>

<p>It works with this div</p>

<pre><code>&lt;div id="thing"&gt;
&lt;div id="close_stuff" onclick="close_thing();"&gt;&lt;a href="#"&gt;Close this&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>My problem is, if I want my div to contain content, which the user can close if he/she wishes. However, I want the div to reappear, when I put new content into the div.</p>

<p>Is there a way I could do this manually? Like rename all the "close_thing" to "klose_thing", or something?</p>

<p>Thanks!</p>
