/*****************************************************************************
 *
 *  Define the Move Object and Functions
 *
 *****************************************************************************/
function Card(theColor, theIndex)
{
    this.color = theColor;
    this.index = theIndex;
}

Card.prototype.getColor = function()
{
    return this.color;
}

Card.prototype.getIndex = function()
{
    return this.index;
}

Card.prototype.getDivId = function()
{
    if (this.index != null)
    {
        return this.color + this.index;
    }
    else
    {
        return this.color;
    }
}