
function __updateCalendarAction(xmlhttp, parameterObj)
{
    if(xmlhttp)
    {
        show_response(xmlhttp);
    }// end of if
}// end of __updatePixacoCaption


/**
*    This is Slideshow parameter object, used for Ajax calls
*/
function CCalendarParameter(url ,action, callbackHandler)
{

    this.parameterObj = CParameterObject.getInstance(url , action) ;
    this.parameterObj.setControllerHandler(callbackHandler) ;

    this.parameterObj.setCaption = _CCalendarParameter_setCaption ;
    this.parameterObj.getCaption = _CCalendarParameter_getCaption ;

    this.parameterObj.setRotation = _CCalendarParameter_setRotation ;
    this.parameterObj.getRotation = _CCalendarParameter_getRotation ;

    this.parameterObj.setIndex = _CCalendarParameter_setIndex ;
    this.parameterObj.getIndex = _CCalendarParameter_getIndex ;

    this.parameterObj.setXMLDOMObject = _CCalendarParameter_setXMLDOMObject ;
    this.parameterObj.getXMLDOMObject= _CCalendarParameter_getXMLDOMObject ;

    // skeptical about the following 2, do we need them  ?
    this.parameterObj.setDocumentObj = _CCalendarParameter_setDocumentObj ;
    this.parameterObj.getDocumentObj = _CCalendarParameter_getDocumentObj ;

    this.parameterObj.setOldPictOid = _CCalendarParameter_setOldPictOid ;
    this.parameterObj.getOldPictOid = _CCalendarParameter_getOldPictOid ;

    return this.parameterObj ;
}   //end of CCalendarParameter() ;

function _CCalendarParameter_setIndex(idx)
{
    this.m_index = idx ;
}

function _CCalendarParameter_getIndex()
{
    return this.m_index ;
}

function _CCalendarParameter_setCaption(caption)
{
    this.m_caption = caption ;
}

function _CCalendarParameter_getCaption()
{
    return this.m_caption ;
}

function _CCalendarParameter_setOldPictOid(pictOid)
{
    this.m_oldPictOid = pictOid;
}

function _CCalendarParameter_getOldPictOid()
{
    return this.m_oldPictOid;
}

function _CCalendarParameter_setRotation(rotation)
{
    this.m_rotation = rotation ;
}

function _CCalendarParameter_getRotation()
{
    return this.m_rotation ;
}

function _CCalendarParameter_setDocumentObj(docObj)
{
    this.m_docObj = docObj ;
}

function _CCalendarParameter_getDocumentObj()
{
    return this.m_docObj ;
}

function _CCalendarParameter_setXMLDOMObject(domObj)
{
    this.m_xmlDomObj = domObj ;
}

function _CCalendarParameter_getXMLDOMObject()
{
    return this.m_xmlDomObj ;
}


//This will be called once AJAX request is back.
function callbackCalendarAction(parameterObj)
{
	data = eval(response.responseText);
}

//This function makes a call to server to add the current picture to cart and dispays the message.
function getCalendarAssetsInfo(url)
{
        var calendarParameter = new CCalendarParameter(
                       url, IActionConstants.GET_CALENDAR_DETAILS, "callbackCalendarAction");
        doRequest(calendarParameter);
}

//Displays the DIV saying updatefailed and hide all the DIVs.
function showUpdateFaliedDiv()
{
}


