@hyperionXSMar 09.2012 — #Maybe reading like this will be easier [CODE] var c_value = escape(value)+ ( (exdays==null) ? "" : // if exdays is not set, then add nothing "; expires="+exdate.toUTCString() // else add expire date ); [/CODE] I guess you are trying to work with cookies.