<!-- REMEMBER ME CHECKBOX -->

<script language="JavaScript" type="text/javascript">
<!-- Cookie script - Scott Andrew -->
<!-- Popup script, Copyright 2005, Sandeep Gangadharan --> 
<!-- For more free scripts go to http://www.sivamdesign.com/scripts/ -->
<!--
function newCookie(name,value,days) {
 var days = 365;   // the number at the left reflects the number of days for the cookie to last
                 // modify it according to your needs
 if (days) {
   var date = new Date();
   date.setTime(date.getTime()+(days*24*60*60*1000));
   var expires = "; expires="+date.toGMTString(); }
   else var expires = "";
   document.cookie = name+"="+value+expires+"; path=/"; }

function readCookie(name) {
   var nameSG = name + "=";
   var nuller = '';
  if (document.cookie.indexOf(nameSG) == -1)
    return nuller;

   var ca = document.cookie.split(';');
  for(var i=0; i<ca.length; i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
  if (c.indexOf(nameSG) == 0) return c.substring(nameSG.length,c.length); }
    return null; }

function eraseCookie(name) {
  newCookie(name,"",1); }

function toMem(a) {
    newCookie('theName', document.form.name.value);     // add a new cookie as shown at left for every
    newCookie('theCompany', document.form.company.value);   // field you wish to have the script remember
	newCookie('theAddress', document.form.address.value);
	newCookie('theCity', document.form.city.value);
	newCookie('theState', document.form.state.value);
	newCookie('theZip', document.form.zip.value);
	newCookie('theEmail', document.form.email.value);
	newCookie('thePhone', document.form.phone.value);
	newCookie('theFax', document.form.fax.value);
}

function delMem(a) {
  eraseCookie('theName');   // make sure to add the eraseCookie function for every field
  eraseCookie('theCompany');
  eraseCookie('theAddress');
  eraseCookie('theCity');
  eraseCookie('theState');
  eraseCookie('theZip');
  eraseCookie('theEmail');
  eraseCookie('thePhone');
  eraseCookie('theFax');

   document.form.name.value = '';   // add a line for every field
   document.form.company.value = '';
   document.form.address.value = ''; 
   document.form.city.value = ''; 
   document.form.state.value = ''; 
   document.form.zip.value = ''; 
   document.form.email.value = ''; 
   document.form.phone.value = ''; 
   document.form.fax.value = ''; 
   }
//-->
</script>
