/*
 * Cookie utility script, this script helps with the creation and reading of cookies. To reset a cookie set the expiredays to -1.
 * Revision History:
 *      Morne J/v Rensburg 2008/11/15 - Script created.
 *      Morne J/v Rensburg 2008/11/25 - Remove all unwanted white spaces.
 */
// Set a cookie's value, if the cookie exist the value is over written if
function setCookie(cookieName, value, expiredays) {var exdate = new Date();exdate.setDate(exdate.getDate() + expiredays);document.cookie = cookieName + "=" + encodeURI(value) + ((expiredays == null) ? "" : ";expires=" + exdate.toGMTString());};
function getCookie(cookieName) {if (document.cookie.length > 0){var c_start = document.cookie.indexOf(cookieName + "=");if (c_start != -1){c_start = c_start + cookieName.length + 1;var c_end = document.cookie.indexOf(";", c_start);if (c_end == -1) c_end = document.cookie.length;return decodeURI(document.cookie.substring(c_start, c_end));}}return "";};
