//<script language="JavaScript">// 9-18-4/////////////////////////////////////////////////////////function Cookie (){}Cookie.prototype = new Cookie;// ///////////////////////////////////////////////Cookie.prototype.conf = function(doc,name,hrs,path,domain,secure){	this.$document = doc;	this.$name = name;		if (hrs)	{		this.$expiration = new Date((new Date()).getTime() + hrs*3600000);	}	else	{		this.$expiration = null;	}		this.$path = path || null;	this.$domain = domain || null;	this.$secure = (secure)? true: false;}// ///////////////////////////////////////////////// storeCookie.prototype.save = function(){	var data = '';	for(var prop in this)	{		if ((prop.charAt(0) == '$') || ((typeof this[prop]) == 'function')) continue;		if (data != '') data += '&';		data += prop + ':' + escape(this[prop]);	}		var cookie = this.$name + '=' + data + this.assign();	if (this.$expiration) cookie += '; expires=' + this.$expiration.toGMTString();		if (this.$secure) cookie += '; secure';		this.$document.cookie = cookie;}// ///////////////////////////////////////////////Cookie.prototype.assign = function(){	// var data = this.$name + '=' + data;	var data = '';	if (this.$path) data += '; path=' + this.$path;	if (this.$domain) data += '; domain=' + this.$domain;	return data;}// ///////////////////////////////////////////////Cookie.prototype.read = function(){	// document.write('<P>doc = ' + this.$document);		var all = this.$document.cookie;		if (all == '') return false;		var start = all.indexOf(this.$name + '=');	if (start == -1) return false;	start += this.$name.length+1;	var end = all.indexOf(';', start);	if (end == -1) end = all.length;	var data = all.substring(start,end);		var a = data.split('&');	for(var i=0;i<a.length;i++)	{		a[i] = a[i].split(':');		this[a[i][0] || 'data'] = unescape(a[i][1]); // cuz cookie not multi (name=value;) vs multi: (name=n1:v2&n2:v2;)	}	return true;}// ///////////////////////////////////////////////Cookie.prototype.remove = function(){	var cookie;	cookie = this.$name + '=' + this.assign() + '; expires=Fri, 02-Jan-1970 00:00:00 GMT';	this.$document.cookie = cookie;}// ///////////////////////////////////////////////// </script>