function setCookie(arg_CookieName,arg_CookieValue,arg_CookieExpireDays){ var todayDate=new Date(); todayDate.setDate(todayDate.getDate()+arg_CookieExpireDays); document.cookie=arg_CookieName+"="+arg_CookieValue+";path=/;expires="+todayDate.toGMTString()+";";
} function getCookie(arg_CookieName){ var Found=false; var start,end; var i=0; while(i <=document.cookie.length){ start=i;end=start+arg_CookieName.length; if(document.cookie.substring(start,end)==arg_CookieName){ Found=true;break; } i++; }