
	var timeStamp = new Date();
	//var sExpire = new Date((new Date()).getTime() + 10 * 365 * 24 * 60 * 60);
	var sExpire = new Date("July 31, 2030");
	
	//
	//
	//
	//
	//
	//
	
//
// Functions for getting and setting cookies.
//
// To Set a Cookie:
//
// 		setCookie(field_name, field_value, expires, path, domain, secure )
//
//		field_name - the name of the cookie
//		field_value - the value associated with the name
//		expires - 	time/date when the cookie becomes invalid.
//					this can be 1 of 3 things:
//						1. the milliseconds since January 1, 1970
//						2. A String in this format: 8 May 2000 17:41:46 
//						   (see the months array below for a list of 
//						   Month abbreviations)
//						3. a javascript Date object, (see a JS reference).
//		path - directory on the site where this cookie is applicable
//		domain - domain where this cookie is restricted
//		secure - set to true, and cookie will only be transferred on a secure server
//
//
//		everything except field_name and field_value is optional.
//
//
//	To Get A Cookie:
//
//		getCookie(field_name); //returns the cookie's value
//
//	
	

	
function setCookie(name, value, expires, path, domain, secure) {
	expires = new Date(); 
    expires.setTime(expires.getTime() + 18000000);
    var curCookie = name + "=" + escape(value) + 
                ((expires) ? "; expires=" + expires.toGMTString() : "") + 
                ((path) ? "; path=" + path : "") + 
                ((domain) ? "; domain=" + domain : "") + 
                ((secure) ? "; secure" : ""); 
    document.cookie = curCookie;
}



function getCookie(field_name) {
		// get cookie values...
         var cookie_data = document.cookie;
		// look for field value
         var field_position = cookie_data.indexOf(field_name + "=");
         //var field_position2 = document.cookie.indexOf(field_name);
         //alert(field_position2);

         if (field_position != -1) {
			  // we start at the end of field + '='
              var start_position = field_position + field_name.length + 1;
              var end_position = cookie_data.indexOf(";", start_position);
              if (end_position == -1) end_position = cookie_data.length;
              var field_data = cookie_data.substring(start_position, end_position);
              field_data = unescape(field_data);
               
              return field_data;

         } else {

             // value wasn't there, so we return -1    
             return "";
             
             

         }

    }








