// // Global Variables var CDates = new Array(); var HTTPO_CCalendar = null; var SelectedCDay=''; var CurrentCDate = Math.round((new Date())/1000); // Calendar Functions function CCalendar_QURL(RQT){ switch(RQT){ default:{// Get Dates RetVal="/lib/connector/json/get_messages_dates.php?STY=5&UID="+UserID+"&SID="+SessionID+"&DID="+CDevID+"&CDATE="+CurrentCDate; break; }; }; //alert(RetVal); return RetVal; }; function StartCCalendarSession( httpRequestType ){ var QURL=''; if (HTTPO_CCalendar == null ){ HTTPO_CCalendar = getHTTPObject(); }; if (HTTPO_CCalendar != null) { QURL=CCalendar_QURL( httpRequestType ); HTTPO_CCalendar.open("GET", QURL , true); HTTPO_CCalendar.send(''); HTTPO_CCalendar.onreadystatechange = HGDT_CCalendar; Ext.MessageBox.wait("GetLabel('_Loading_Histo_');?>","GetLabel('_Please_Wait_');?>",{ width: '100%', hidden: true, progress: true, closable: false }); } else { Ext.Msg.alert('Status', 'Error Creating AJAX Connection.
Code: CCXL00231'); }; }; function HGDT_CCalendar(){ switch( HTTPO_CCalendar.readyState ){ case 0: window.status = 'C:Communication is Uninitialized'; break; case 1: window.status = 'C:Loading Data'; break; case 2: window.status = 'C:Data is Loaded'; break; case 3: window.status = 'C:Communication is Interactive'; break; case 4: window.status = 'C:Data Load Complete'; break; }; if( HTTPO_CCalendar.readyState == 4 ){ var T_Arr; //alert(HTTPO_CCalendar.responseText); T_Arr = JSON_parse( HTTPO_CCalendar.responseText,'' ); httpRequestType=T_Arr.type/1; //alert(httpRequestType); //CDates=new Array(); for (index=0;index<31;index++){ if ( index'; InDTA+='SuMoTuWeThFrSa'; InDTA+=''; for(index=0;index'+(index-Msh+1).toString()+''; } else { InDTA+=''+(index-Msh+1).toString()+''; } if ((index+1)%7==0){ InDTA+=''; }; }; for(;(index)%7!=0;index++){ InDTA+=' '; }; InDTA+=''; tab=document.getElementById('chat_calendar_TD'); tab.innerHTML=InDTA; };