hits=getCookie("sanjim") if (hits == "") { hits=1; } hits++; setCookie("sanjim", hits); function getCookie(key){ tmp=document.cookie+";"; tmp1=tmp.indexOf(key, 0); if(tmp1!=-1){ tmp=tmp.substring(tmp1, tmp.length); first=tmp.indexOf("=",0)+1; end=tmp.indexOf(";",first); return(unescape(tmp.substring(first,end))); } return(""); } function setCookie(key, val) { tmp=key+"="+escape(val)+";"; setdays = new Date(); setdays.setTime(setdays.getTime()+(24*60*60*1000)); tmp+="expires="+setdays.toGMTString(); document.cookie=tmp; }