if ( typeof( IPG ) == 'undefined' ) IPG = {};
IPG.ServerTimeManager = function(){
    this.version = "0.1";
    return this;
};
IPG.ServerTimeManager.prototype.createData = function( url ){
    var ajaxOpt = {
        'method': 'get',
        'asynchronous': false
    };
    var xhrObj = new Ajax.Request( url , ajaxOpt );
    if( xhrObj && xhrObj._complete ){
        this.xml_data = xhrObj.transport.responseXML.documentElement;
    }
    return this.parseServerTimeData();
};
IPG.ServerTimeManager.prototype.parseServerTimeData = function(){
    if( !this.xml_data ) return undefined;
    var data = {
        'year': this.xml_data.childNodes[0].firstChild.nodeValue,
        'month': this.xml_data.childNodes[1].firstChild.nodeValue,
        'date': this.xml_data.childNodes[2].firstChild.nodeValue,
        'hour': this.xml_data.childNodes[3].firstChild.nodeValue,
        'minute': this.xml_data.childNodes[4].firstChild.nodeValue,
        'second': this.xml_data.childNodes[5].firstChild.nodeValue
    };
    data.time = new Date( data.year , data.month-1 , data.date , data.hour , data.minute , data.second ).getTime();
    data.str = IPG.Utility.getSIDateYYYYMMDDStrFromMillisec( data.time );
    data.si_str = data.str+"T"+data.hour+":"+data.minute+":"+data.second;
    return data;
};