// cached javascript var Ajax4Map = { Meter2LL:function(x,y,nZoom,callback,context){return new ajax_request(this.url + '?_method=Meter2LL&_session=no','x=' + enc(x)+ '\r\ny=' + enc(y)+ '\r\nnZoom=' + enc(nZoom),callback, context);}, WGS84ToDoc:function(x,y,callback,context){return new ajax_request(this.url + '?_method=WGS84ToDoc&_session=no','x=' + enc(x)+ '\r\ny=' + enc(y),callback, context);}, DocToWGS84:function(x,y,callback,context){return new ajax_request(this.url + '?_method=DocToWGS84&_session=no','x=' + enc(x)+ '\r\ny=' + enc(y),callback, context);}, GetResourceString:function(baseName,lang,key,callback,context){return new ajax_request(this.url + '?_method=GetResourceString&_session=no','baseName=' + enc(baseName)+ '\r\nlang=' + enc(lang)+ '\r\nkey=' + enc(key),callback, context);}, AppSettings:function(key,callback,context){return new ajax_request(this.url + '?_method=AppSettings&_session=no','key=' + enc(key),callback, context);}, AddressOf:function(place,callback,context){return new ajax_request(this.url + '?_method=AddressOf&_session=no','place=' + enc(place),callback, context);}, LoadBoundarys:function(callback,context){return new ajax_request(this.url + '?_method=LoadBoundarys&_session=no','',callback, context);}, LoadBoundarysXML:function(callback,context){return new ajax_request(this.url + '?_method=LoadBoundarysXML&_session=no','',callback, context);}, MeanOfById:function(id,callback,context){return new ajax_request(this.url + '?_method=MeanOfById&_session=no','id=' + enc(id),callback, context);}, FamousPlace:function(strProvinceName,nPostStart,nAmount,callback,context){return new ajax_request(this.url + '?_method=FamousPlace&_session=no','strProvinceName=' + enc(strProvinceName)+ '\r\nnPostStart=' + enc(nPostStart)+ '\r\nnAmount=' + enc(nAmount),callback, context);}, GetConfigVal:function(strKey,strDefaultValue,callback,context){return new ajax_request(this.url + '?_method=GetConfigVal&_session=no','strKey=' + enc(strKey)+ '\r\nstrDefaultValue=' + enc(strDefaultValue),callback, context);}, GetDiaDanhHCInfo:function(TypeDDHC,TinhId,HuyenId,PhuongId,callback,context){return new ajax_request(this.url + '?_method=GetDiaDanhHCInfo&_session=no','TypeDDHC=' + enc(TypeDDHC)+ '\r\nTinhId=' + enc(TinhId)+ '\r\nHuyenId=' + enc(HuyenId)+ '\r\nPhuongId=' + enc(PhuongId),callback, context);}, GetSummaryInfByWsg84:function(X_W84,Y_W84,callback,context){return new ajax_request(this.url + '?_method=GetSummaryInfByWsg84&_session=no','X_W84=' + enc(X_W84)+ '\r\nY_W84=' + enc(Y_W84),callback, context);}, GetSummaryInf:function(X_W84,Y_W84,chimuc,strType,callback,context){return new ajax_request(this.url + '?_method=GetSummaryInf&_session=no','X_W84=' + enc(X_W84)+ '\r\nY_W84=' + enc(Y_W84)+ '\r\nchimuc=' + enc(chimuc)+ '\r\nstrType=' + enc(strType),callback, context);}, GetSummaryInfomation:function(index,SearchId,intType,callback,context){return new ajax_request(this.url + '?_method=GetSummaryInfomation&_session=no','index=' + enc(index)+ '\r\nSearchId=' + enc(SearchId)+ '\r\nintType=' + enc(intType),callback, context);}, GetSummaryInfomationNodeChoose:function(index,SearchId,intType,callback,context){return new ajax_request(this.url + '?_method=GetSummaryInfomationNodeChoose&_session=no','index=' + enc(index)+ '\r\nSearchId=' + enc(SearchId)+ '\r\nintType=' + enc(intType),callback, context);}, GetDetailInf:function(nodeId,X_W84,Y_W84,chimuc,strType,isSmallNode,callback,context){return new ajax_request(this.url + '?_method=GetDetailInf&_session=no','nodeId=' + enc(nodeId)+ '\r\nX_W84=' + enc(X_W84)+ '\r\nY_W84=' + enc(Y_W84)+ '\r\nchimuc=' + enc(chimuc)+ '\r\nstrType=' + enc(strType)+ '\r\nisSmallNode=' + enc(isSmallNode),callback, context);}, getTapDiem:function(searchId,callback,context){return new ajax_request(this.url + '?_method=getTapDiem&_session=no','searchId=' + enc(searchId),callback, context);}, getPlaceId:function(searchId,callback,context){return new ajax_request(this.url + '?_method=getPlaceId&_session=no','searchId=' + enc(searchId),callback, context);}, getPlaceNameAndId:function(searchId,callback,context){return new ajax_request(this.url + '?_method=getPlaceNameAndId&_session=no','searchId=' + enc(searchId),callback, context);}, GetProvinceIdBySearchId:function(searchId,callback,context){return new ajax_request(this.url + '?_method=GetProvinceIdBySearchId&_session=no','searchId=' + enc(searchId),callback, context);}, NextPageInSearchInfo1:function(listSearchId,language,pageOf,nZoomOld,nZoom,withLayer,callback,context){return new ajax_request(this.url + '?_method=NextPageInSearchInfo1&_session=no','listSearchId=' + enc(listSearchId)+ '\r\nlanguage=' + enc(language)+ '\r\npageOf=' + enc(pageOf)+ '\r\nnZoomOld=' + enc(nZoomOld)+ '\r\nnZoom=' + enc(nZoom)+ '\r\nwithLayer=' + enc(withLayer),callback, context);}, getLstPro:function(callback,context){return new ajax_request(this.url + '?_method=getLstPro&_session=no','',callback, context);}, getLstPro2:function(callback,context){return new ajax_request(this.url + '?_method=getLstPro2&_session=no','',callback, context);}, getLstDisByPro:function(ProvinceId,callback,context){return new ajax_request(this.url + '?_method=getLstDisByPro&_session=no','ProvinceId=' + enc(ProvinceId),callback, context);}, getLstWarByDisPro:function(DistrictId,ProvinceId,callback,context){return new ajax_request(this.url + '?_method=getLstWarByDisPro&_session=no','DistrictId=' + enc(DistrictId)+ '\r\nProvinceId=' + enc(ProvinceId),callback, context);}, PagingPlaceNameNew:function(KeySearch,TinhId,HuyenId,PhuongId,PageOf,langId,callback,context){return new ajax_request(this.url + '?_method=PagingPlaceNameNew&_session=no','KeySearch=' + enc(KeySearch)+ '\r\nTinhId=' + enc(TinhId)+ '\r\nHuyenId=' + enc(HuyenId)+ '\r\nPhuongId=' + enc(PhuongId)+ '\r\nPageOf=' + enc(PageOf)+ '\r\nlangId=' + enc(langId),callback, context);}, PlaceFindingByPlaceId:function(Place_Id,langId,nZoom,nZoomOld,hasChangeZoom,callback,context){return new ajax_request(this.url + '?_method=PlaceFindingByPlaceId&_session=no','Place_Id=' + enc(Place_Id)+ '\r\nlangId=' + enc(langId)+ '\r\nnZoom=' + enc(nZoom)+ '\r\nnZoomOld=' + enc(nZoomOld)+ '\r\nhasChangeZoom=' + enc(hasChangeZoom),callback, context);}, ViewPhotoByArtID:function(ArticleID,page,pagesize,key,callback,context){return new ajax_request(this.url + '?_method=ViewPhotoByArtID&_session=no','ArticleID=' + enc(ArticleID)+ '\r\npage=' + enc(page)+ '\r\npagesize=' + enc(pagesize)+ '\r\nkey=' + enc(key),callback, context);}, GetFamousPlaceTourOfPlaceName:function(SearchId,ProId,DisId,WardId,TypeSearch,PlaceId,current_language,callback,context){return new ajax_request(this.url + '?_method=GetFamousPlaceTourOfPlaceName&_session=no','SearchId=' + enc(SearchId)+ '\r\nProId=' + enc(ProId)+ '\r\nDisId=' + enc(DisId)+ '\r\nWardId=' + enc(WardId)+ '\r\nTypeSearch=' + enc(TypeSearch)+ '\r\nPlaceId=' + enc(PlaceId)+ '\r\ncurrent_language=' + enc(current_language),callback, context);}, ShortestPathFindingFromPointNew:function(x1,y1,nameStreetFrom,x2,y2,nameStreetTo,strTo,nZoom,langId,callback,context){return new ajax_request(this.url + '?_method=ShortestPathFindingFromPointNew&_session=no','x1=' + enc(x1)+ '\r\ny1=' + enc(y1)+ '\r\nnameStreetFrom=' + enc(nameStreetFrom)+ '\r\nx2=' + enc(x2)+ '\r\ny2=' + enc(y2)+ '\r\nnameStreetTo=' + enc(nameStreetTo)+ '\r\nstrTo=' + enc(strTo)+ '\r\nnZoom=' + enc(nZoom)+ '\r\nlangId=' + enc(langId),callback, context);}, FindPath_1:function(x1,y1,nameStreetFrom,x2,y2,nameStreetTo,strTo,nZoom,langId,isStrart,callback,context){return new ajax_request(this.url + '?_method=FindPath_1&_session=no','x1=' + enc(x1)+ '\r\ny1=' + enc(y1)+ '\r\nnameStreetFrom=' + enc(nameStreetFrom)+ '\r\nx2=' + enc(x2)+ '\r\ny2=' + enc(y2)+ '\r\nnameStreetTo=' + enc(nameStreetTo)+ '\r\nstrTo=' + enc(strTo)+ '\r\nnZoom=' + enc(nZoom)+ '\r\nlangId=' + enc(langId)+ '\r\nisStrart=' + enc(isStrart),callback, context);}, SearchStreet_DidYouMeanNew:function(SearchId,KeySearch,TinhId,HuyenId,PhuongId,nZoomOld,nZoom,withLayer,langId,txtFroToId,callback,context){return new ajax_request(this.url + '?_method=SearchStreet_DidYouMeanNew&_session=no','SearchId=' + enc(SearchId)+ '\r\nKeySearch=' + enc(KeySearch)+ '\r\nTinhId=' + enc(TinhId)+ '\r\nHuyenId=' + enc(HuyenId)+ '\r\nPhuongId=' + enc(PhuongId)+ '\r\nnZoomOld=' + enc(nZoomOld)+ '\r\nnZoom=' + enc(nZoom)+ '\r\nwithLayer=' + enc(withLayer)+ '\r\nlangId=' + enc(langId)+ '\r\ntxtFroToId=' + enc(txtFroToId),callback, context);}, GetInfoByXYW84:function(X_W84,Y_W84,callback,context){return new ajax_request(this.url + '?_method=GetInfoByXYW84&_session=no','X_W84=' + enc(X_W84)+ '\r\nY_W84=' + enc(Y_W84),callback, context);}, SearchPlaSer:function(TinhId,HuyenId,PhuongId,LstPlaSerId,LstPlaSerName,curPage,nZoom,langId,callback,context){return new ajax_request(this.url + '?_method=SearchPlaSer&_session=no','TinhId=' + enc(TinhId)+ '\r\nHuyenId=' + enc(HuyenId)+ '\r\nPhuongId=' + enc(PhuongId)+ '\r\nLstPlaSerId=' + enc(LstPlaSerId)+ '\r\nLstPlaSerName=' + enc(LstPlaSerName)+ '\r\ncurPage=' + enc(curPage)+ '\r\nnZoom=' + enc(nZoom)+ '\r\nlangId=' + enc(langId),callback, context);}, PagingPlaceNameService:function(keySearchParse,keySearchDisplay,typeSearch,nZooom,langId,curPag,totalRows,callback,context){return new ajax_request(this.url + '?_method=PagingPlaceNameService&_session=no','keySearchParse=' + enc(keySearchParse)+ '\r\nkeySearchDisplay=' + enc(keySearchDisplay)+ '\r\ntypeSearch=' + enc(typeSearch)+ '\r\nnZooom=' + enc(nZooom)+ '\r\nlangId=' + enc(langId)+ '\r\ncurPag=' + enc(curPag)+ '\r\ntotalRows=' + enc(totalRows),callback, context);}, SearchWhat:function(SearchId,KeySearch,TinhId,HuyenId,PhuongId,nZooom,langId,curPag,callback,context){return new ajax_request(this.url + '?_method=SearchWhat&_session=no','SearchId=' + enc(SearchId)+ '\r\nKeySearch=' + enc(KeySearch)+ '\r\nTinhId=' + enc(TinhId)+ '\r\nHuyenId=' + enc(HuyenId)+ '\r\nPhuongId=' + enc(PhuongId)+ '\r\nnZooom=' + enc(nZooom)+ '\r\nlangId=' + enc(langId)+ '\r\ncurPag=' + enc(curPag),callback, context);}, SearchWhatPaging:function(keySearchParse,keySearchDisplay,typeSearch,nZooom,langId,curPag,totalRows,callback,context){return new ajax_request(this.url + '?_method=SearchWhatPaging&_session=no','keySearchParse=' + enc(keySearchParse)+ '\r\nkeySearchDisplay=' + enc(keySearchDisplay)+ '\r\ntypeSearch=' + enc(typeSearch)+ '\r\nnZooom=' + enc(nZooom)+ '\r\nlangId=' + enc(langId)+ '\r\ncurPag=' + enc(curPag)+ '\r\ntotalRows=' + enc(totalRows),callback, context);}, SearchStreet_DidYouMean:function(SearchId,KeySearch,TinhId,HuyenId,PhuongId,nZooom,langId,curPag,txtFroToId,callback,context){return new ajax_request(this.url + '?_method=SearchStreet_DidYouMean&_session=no','SearchId=' + enc(SearchId)+ '\r\nKeySearch=' + enc(KeySearch)+ '\r\nTinhId=' + enc(TinhId)+ '\r\nHuyenId=' + enc(HuyenId)+ '\r\nPhuongId=' + enc(PhuongId)+ '\r\nnZooom=' + enc(nZooom)+ '\r\nlangId=' + enc(langId)+ '\r\ncurPag=' + enc(curPag)+ '\r\ntxtFroToId=' + enc(txtFroToId),callback, context);}, ShortestPathFindingFromPoint:function(x1,y1,nameStreetFrom,fromSearchId,x2,y2,nameStreetTo,toSearchId,nZoom,langId,callback,context){return new ajax_request(this.url + '?_method=ShortestPathFindingFromPoint&_session=no','x1=' + enc(x1)+ '\r\ny1=' + enc(y1)+ '\r\nnameStreetFrom=' + enc(nameStreetFrom)+ '\r\nfromSearchId=' + enc(fromSearchId)+ '\r\nx2=' + enc(x2)+ '\r\ny2=' + enc(y2)+ '\r\nnameStreetTo=' + enc(nameStreetTo)+ '\r\ntoSearchId=' + enc(toSearchId)+ '\r\nnZoom=' + enc(nZoom)+ '\r\nlangId=' + enc(langId),callback, context);}, FindPath:function(x1,y1,nameStreetFrom,fromSearchId,x2,y2,nameStreetTo,toSearchId,nZoom,langId,isStrart,callback,context){return new ajax_request(this.url + '?_method=FindPath&_session=no','x1=' + enc(x1)+ '\r\ny1=' + enc(y1)+ '\r\nnameStreetFrom=' + enc(nameStreetFrom)+ '\r\nfromSearchId=' + enc(fromSearchId)+ '\r\nx2=' + enc(x2)+ '\r\ny2=' + enc(y2)+ '\r\nnameStreetTo=' + enc(nameStreetTo)+ '\r\ntoSearchId=' + enc(toSearchId)+ '\r\nnZoom=' + enc(nZoom)+ '\r\nlangId=' + enc(langId)+ '\r\nisStrart=' + enc(isStrart),callback, context);}, url:'/dulich/ajax/VietgleMap.AjaxFuncs.Ajax4Map,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