User:Lightdarkness/cookie.js

function setCookie(c_name,value,expiredays) { var exdate=new Date exdate.setTime(exdate.getTime+(expiredays*24*3600*1000)) document.cookie=c_name+ "=" +escape(value)+ ((expiredays==null) ? "" : "; expires="+exdate) }

function cookieTest { setCookie('software', 'ARV', '10'); }

addOnloadHook(cookieTest);