includes/clientside/static/functions.js
changeset 650 e45183014778
parent 628 ab6f55abb17e
child 651 ce9d78d7251d
equal deleted inserted replaced
649:74e03196fd43 650:e45183014778
   627 
   627 
   628 function unsetAjaxLoading()
   628 function unsetAjaxLoading()
   629 {
   629 {
   630   if ( document.getElementById('ajaxloadicon') )
   630   if ( document.getElementById('ajaxloadicon') )
   631   {
   631   {
   632     document.getElementById('ajaxloadicon').src=scriptPath + '/images/spacer.gif';
   632     document.getElementById('ajaxloadicon').src=cdnPath + '/images/spacer.gif';
   633   }
   633   }
   634 }
   634 }
   635 
   635 
   636 function readCookie(name) {var nameEQ = name + "=";var ca = document.cookie.split(';');for(var i=0;i < ca.length;i++){var c = ca[i];while (c.charAt(0)==' ') c = c.substring(1,c.length);if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);}return null;}
   636 function readCookie(name) {var nameEQ = name + "=";var ca = document.cookie.split(';');for(var i=0;i < ca.length;i++){var c = ca[i];while (c.charAt(0)==' ') c = c.substring(1,c.length);if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);}return null;}
   637 function createCookie(name,value,days){if (days){var date = new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires = "; expires="+date.toGMTString();}else var expires = "";document.cookie = name+"="+value+expires+"; path=/";}
   637 function createCookie(name,value,days){if (days){var date = new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires = "; expires="+date.toGMTString();}else var expires = "";document.cookie = name+"="+value+expires+"; path=/";}