wire/modules/Fieldtype/FieldtypeComments/comments.js
/**
 * Set a cookie value
 *
 * @param string name
 * @param string value
 * @param int days Specify 0 for session-only cookie
 *
 */
Set a cookie value
@param string name
@param string value
@param int days Specify 0 for session-only cookie
Set a cookie value @param string name @param string value @param int days Specify 0 for session - only cookie
function CommentFormSetCookie(name, value, days) {
	var cookieValue = name + "=" + escape(value) + ";path=/";
	if(days == null) days = 0;
	if(days > 0) {
		var today = new Date();
		var expire = new Date();
		expire.setTime(today.getTime() + 3600000 * 24 * days);
		document.cookie = cookieValue + ";expires=" + expire.toGMTString();
	} else {
		document.cookie = cookieValue; 
	}
}
function CommentFormSetCookie ( name , value , days ) { var cookieValue = name + "=" + escape ( value ) + ";path=/" ; if ( days == null ) days = 0 ; if ( days > 0 ) { var today = new Date ( ) ; var expire = new Date ( ) ; expire . setTime ( today . getTime ( ) + 3600000 * 24 * days ) ; document . cookie = cookieValue + ";expires=" + expire . toGMTString ( ) ; } else { document . cookie = cookieValue ; } }
Set a cookie value
 @param string name
 @param string value
 @param int days Specify 0 for session-only cookie
Set a cookie value @param string name @param string value @param int days Specify 0 for session - only cookie