<style>
.drag{position:relative;cursor:hand}
</style>
<script language="JavaScript">
function GetCookie (name) {
  var arg = name + "=";
  var alen = arg.length;
  var clen = document.cookie.length;
  var i = 0;
  while (i < clen) {
    var j = i + alen;
    if (document.cookie.substring(i, j) == arg)
      return getCookieVal (j);
    i = document.cookie.indexOf(" ", i) + 1;
    if (i == 0) break; 
  }
  return null;
}
function getCookieVal (offset) {
  var endstr = document.cookie.indexOf (";", offset);
  if (endstr == -1)
    endstr = document.cookie.length;
  return unescape(document.cookie.substring(offset, endstr));
}
function SetCookie (name, value) {
  document.cookie = name + "=" + escape (value)
}
function mysubmit()
{
for(i=0;i<document.all.tags("input").length;i++)
if(document.all.tags("input")[i].id.substring(0,8)=="remember")
SetCookie(eval("'input"+i+"'"),document.all.tags("input")[i].value);
}
function myset()
{
for(i=0;i<document.all.tags("input").length;i++)
if(document.all.tags("input")[i].id.substring(0,8)=="remember")
if(GetCookie(eval("'input"+i+"'"))!=null)
document.all.tags("input")[i].value=GetCookie(eval("'input"+i+"'"));
else
document.all.tags("input")[i].value="";
}
</script>
<body onload="myset()">
name<input type=text name=username id=remember1>
pass<input type=text name=password id=no>
work<input type=text name=work id=remember2>
<input type=button onclick=mysubmit()>