function setcookie(name,value) { var cookiestr=name+"="+value+";"; var expires = ""; var cookieexp=60*60*1000; var d = new date(); d.settime( d.gettime() + cookieexp); expires = "expires=" + d.togmtstring()+";"; document.cookie = cookiestr+ expires; } function $(a) { return document.getelementbyid(a); } </script>