I want to save the users text size choice that the user chooses from the script below as a cookie using javascript because they wont have to repeatdely pick it over and over again when they leave the web page or reload the web page. Can you please help me finish this script Thanks

<script type="text/javascript">
function f(n) {
document.getElementById('s').style.fontSize = n


<a href="#" onClick="f('8px')" value="8px">small</a>
<a href="#" onClick="f('12px')" value="12px">normal</a>
<a href="#" onClick="f('24px')" value="24px">larger</a>
<a href="#" onClick="f('32px')" value="32px">x-larger</a>

<div id="s">Adjustable Text Sizer For The Browser Impaired</div>