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>