/**
 @.exists - checks to see if the specified cookie is set.   (true / false)
 @.create - creates a cookie on the clients browser.        (true / false)
 @.read   - returns the value of a cookie, if it is set.    (cookie.value / false)
 @.remove - removes a cookie from the browsers tray.        (true / false)
 */
function CookieHandle () {
	this.exists = function (c_name) {if (document.cookie.length > 0) { var c_start = document.cookie.indexOf(c_name + "="); if (c_start != -1) { return true; } else { return false; } } else { return false; }};
	this.create = function (c_name, c_value, c_exp) {if (c_exp != "") { var c_xdate = new Date(); c_xdate.setDate(c_xdate.getDate() + c_exp); c_exp = ";expires=" + c_xdate.toGMTString(); } document.cookie = c_name + "=" + escape(c_value) + c_exp + " path=/"; return this.exists(c_name);};
	this.read = function (c_name) {if (this.exists(c_name) == true) { var c_start = document.cookie.indexOf(c_name + "="); c_start = c_start + (c_name.length + 1); var c_end = document.cookie.indexOf(";", c_start); if (c_end == -1) { c_end = document.cookie.length; } return unescape(document.cookie.substring(c_start,c_end));} else {return false;}}
	this.remove = function (c_name) {if (this.exists(c_name) == true) {this.create(c_name, "", -100); return true;} else {return false;}};
} var cookie = new CookieHandle;