/**
 * Cookie.js
 *
 * Version 2.0 2002-08-04
 *
 * Author Dmitry Belakhov
 *
 * Defines a 'Cookie' object with methods for extraxting cookie values
 */


/**
 * 'Cookie' object constructor
 */

function Cookie(strName, strValue)
{

    this.name = strName;
    this.value = strValue;
    this.expires;
    this.domain;
    this.path;
    this.secure;

    this.getName = strGetName;

    this.getValue = strGetValue;
    this.setValue = voidSetValue;

    this.getDomain = strGetDomain;
    this.setDomain = voidSetDomain;

    this.getPath = strGetPath;
    this.setPath = voidSetPath;

    this.getMaxAge = intGetMaxAge;
    this.setMaxAge = voidSetMaxAge;

    this.getSecure = blnGetSecure;
    this.setSecure = voidSetSecure;
}


/**
 * 'Cookie' object methods
 */

function strGetName()
{
    return this.name;
}

function strGetValue()
{
    return this.value;
}

function voidSetValue(strValue)
{
    this.value = strValue;
}

function strGetDomain()
{
    return this.domain;
}

function voidSetDomain(strDomain)
{
    this.domain = strDomain;
}

function strGetPath()
{
    return this.path;
}

function voidSetPath(strPath)
{
    this.path = strPath;
}

function intGetMaxAge()
{
    return this.expires;
}

function voidSetMaxAge(strMaxAge)
{
    this.expires = strMaxAge;
}

function blnGetSecure()
{
    return this.secure;
}

function voidSetSecure(blnFlag)
{
    this.secure = blnFlag;
}

