// cached javascript var MyMapAjax = { InsertGroup:function(strTitle,strDescript,nShare,callback,context){return new ajax_request(this.url + '?_method=InsertGroup&_session=no','strTitle=' + enc(strTitle)+ '\r\nstrDescript=' + enc(strDescript)+ '\r\nnShare=' + enc(nShare),callback, context);}, UpdateGroup:function(nGroupID,strTitle,strDescript,nShare,callback,context){return new ajax_request(this.url + '?_method=UpdateGroup&_session=no','nGroupID=' + enc(nGroupID)+ '\r\nstrTitle=' + enc(strTitle)+ '\r\nstrDescript=' + enc(strDescript)+ '\r\nnShare=' + enc(nShare),callback, context);}, DeleteGroup:function(nGroupID,isShared,callback,context){return new ajax_request(this.url + '?_method=DeleteGroup&_session=no','nGroupID=' + enc(nGroupID)+ '\r\nisShared=' + enc(isShared),callback, context);}, GetGroupListByUser:function(callback,context){return new ajax_request(this.url + '?_method=GetGroupListByUser&_session=no','',callback, context);}, GetGroupDetailsById:function(nGroupId,isUpdateView,callback,context){return new ajax_request(this.url + '?_method=GetGroupDetailsById&_session=no','nGroupId=' + enc(nGroupId)+ '\r\nisUpdateView=' + enc(isUpdateView),callback, context);}, GetGroupDetailNoNode:function(nGroupId,callback,context){return new ajax_request(this.url + '?_method=GetGroupDetailNoNode&_session=no','nGroupId=' + enc(nGroupId),callback, context);}, GetGroupInfoById:function(nGroupId,callback,context){return new ajax_request(this.url + '?_method=GetGroupInfoById&_session=no','nGroupId=' + enc(nGroupId),callback, context);}, GetProDisWardByCoord:function(strX,strY,callback,context){return new ajax_request(this.url + '?_method=GetProDisWardByCoord&_session=no','strX=' + enc(strX)+ '\r\nstrY=' + enc(strY),callback, context);}, InsertMyMapNote:function(nGroupID,strTitle,strDescript,fX_W84,fY_W84,strProvinceID,strProName,strProFullName,strDistrictID,strDisName,strWardID,strWardName,isShared,callback,context){return new ajax_request(this.url + '?_method=InsertMyMapNote&_session=no','nGroupID=' + enc(nGroupID)+ '\r\nstrTitle=' + enc(strTitle)+ '\r\nstrDescript=' + enc(strDescript)+ '\r\nfX_W84=' + enc(fX_W84)+ '\r\nfY_W84=' + enc(fY_W84)+ '\r\nstrProvinceID=' + enc(strProvinceID)+ '\r\nstrProName=' + enc(strProName)+ '\r\nstrProFullName=' + enc(strProFullName)+ '\r\nstrDistrictID=' + enc(strDistrictID)+ '\r\nstrDisName=' + enc(strDisName)+ '\r\nstrWardID=' + enc(strWardID)+ '\r\nstrWardName=' + enc(strWardName)+ '\r\nisShared=' + enc(isShared),callback, context);}, UpdateMyMapNote:function(nGroupID,nNoteId,strTitle,strDescript,fX_W84,fY_W84,strProvinceID,strProName,strProFullName,strDistrictID,strDisName,strWardID,strWardName,IsShared,callback,context){return new ajax_request(this.url + '?_method=UpdateMyMapNote&_session=no','nGroupID=' + enc(nGroupID)+ '\r\nnNoteId=' + enc(nNoteId)+ '\r\nstrTitle=' + enc(strTitle)+ '\r\nstrDescript=' + enc(strDescript)+ '\r\nfX_W84=' + enc(fX_W84)+ '\r\nfY_W84=' + enc(fY_W84)+ '\r\nstrProvinceID=' + enc(strProvinceID)+ '\r\nstrProName=' + enc(strProName)+ '\r\nstrProFullName=' + enc(strProFullName)+ '\r\nstrDistrictID=' + enc(strDistrictID)+ '\r\nstrDisName=' + enc(strDisName)+ '\r\nstrWardID=' + enc(strWardID)+ '\r\nstrWardName=' + enc(strWardName)+ '\r\nIsShared=' + enc(IsShared),callback, context);}, DeleteMyMapNote:function(nGroupID,nNoteId,IsShared,callback,context){return new ajax_request(this.url + '?_method=DeleteMyMapNote&_session=no','nGroupID=' + enc(nGroupID)+ '\r\nnNoteId=' + enc(nNoteId)+ '\r\nIsShared=' + enc(IsShared),callback, context);}, GetMyMapNoteLstByGroupID:function(nGroupID,callback,context){return new ajax_request(this.url + '?_method=GetMyMapNoteLstByGroupID&_session=no','nGroupID=' + enc(nGroupID),callback, context);}, ShowNoteDetailByID:function(nNoteID,callback,context){return new ajax_request(this.url + '?_method=ShowNoteDetailByID&_session=no','nNoteID=' + enc(nNoteID),callback, context);}, GetNoteDetailByID:function(nNoteID,callback,context){return new ajax_request(this.url + '?_method=GetNoteDetailByID&_session=no','nNoteID=' + enc(nNoteID),callback, context);}, UpdateLocationInMap:function(nNoteID,strX_W84,strY_W84,callback,context){return new ajax_request(this.url + '?_method=UpdateLocationInMap&_session=no','nNoteID=' + enc(nNoteID)+ '\r\nstrX_W84=' + enc(strX_W84)+ '\r\nstrY_W84=' + enc(strY_W84),callback, context);}, GetCommentByID:function(nGroupID,callback,context){return new ajax_request(this.url + '?_method=GetCommentByID&_session=no','nGroupID=' + enc(nGroupID),callback, context);}, InsertComment:function(nGroupID,strComment,callback,context){return new ajax_request(this.url + '?_method=InsertComment&_session=no','nGroupID=' + enc(nGroupID)+ '\r\nstrComment=' + enc(strComment),callback, context);}, DeleteCommentByID:function(nGroupID,nCommentID,callback,context){return new ajax_request(this.url + '?_method=DeleteCommentByID&_session=no','nGroupID=' + enc(nGroupID)+ '\r\nnCommentID=' + enc(nCommentID),callback, context);}, InsertRate:function(strGroupID,nRate,callback,context){return new ajax_request(this.url + '?_method=InsertRate&_session=no','strGroupID=' + enc(strGroupID)+ '\r\nnRate=' + enc(nRate),callback, context);}, CheckUserLogin:function(callback,context){return new ajax_request(this.url + '?_method=CheckUserLogin&_session=no','',callback, context);}, CreateUrlLogin:function(url,callback,context){return new ajax_request(this.url + '?_method=CreateUrlLogin&_session=no','url=' + enc(url),callback, context);}, url:'/dulich/ajax/MyMapLib.MyMapAjax,App_Code.ashx' } function HtmlControl(id) { var ele = null; if(typeof(id) == 'object') ele = id; else ele = document.getElementById(id); if(ele == null) return null; var _o = ele.cloneNode(true); var _op = document.createElement('SPAN'); _op.appendChild(_o); this._source = _op.innerHTML; } HtmlControl.prototype.toString = function(){ return this._source; } function HtmlControlUpdate(func, parentId) { var f,i,ff,fa=''; var ele = document.getElementById(parentId); if(ele == null) return; var args = []; for(i=0; i 2) for(i=2; i9999||year<1970||month<1||month>12||day<0||day>31||hours<0||hours>23||minutes<0||minutes>59||seconds<0||seconds>59)throw("ArgumentException");this.Year = year;this.Month = month;this.Day = day;this.Hours = hours;this.Minutes = minutes;this.Seconds = seconds;} DateTime.prototype.toString = function(){return digi(this.Year,4) + digi(this.Month,2) + digi(this.Day,2) + digi(this.Hours,2) + digi(this.Minutes,2) + digi(this.Seconds,2);} function TimeSpan(){this.Days=0;this.Hours=0;this.Minutes=0;this.Seconds=0;this.Milliseconds=0;} TimeSpan.prototype.toString = function(){return this.Days+'.'+this.Hours+':'+this.Minutes+':'+this.Seconds+'.'+this.Milliseconds;} function _getTable(n,e){for(var i=0; i