/*
**
**    cc_crit.js - Script support for cc_crit.htm in the
**                 Cuddly Critters website.
**
** 06/27/06 - jf - Created.
**
*/


/*
**    Creates a cookie to hold data between the Critter Page
** (where a critter is selected for sponsorship) and the Sponsor
** Form page where the user signs up for a donation to that animal.
*/

function make_animal_cookie(name, type)
{
var cookieDate = new Date();
var cookieDataName = new String(name);
var cookieDataType = new String(type);

    cookieDate.setTime(cookieDate.getTime() + 24 * 60 * 60 * 1000);
    document.cookie = "animalCookie=" + cookieDataName + ":" + cookieDataType + ":;expires=" + cookieDate.toGMTString();
}
