// cached javascript var AjaxFuncs = { urlEn:function(s,callback,context){return new ajax_request(this.url + '?_method=urlEn&_session=no','s=' + enc(s),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);}, delete_cookie:function(name,callback,context){return new ajax_request(this.url + '?_method=delete_cookie&_session=no','name=' + enc(name),callback, context);}, read_cookie:function(name,callback,context){return new ajax_request(this.url + '?_method=read_cookie&_session=no','name=' + enc(name),callback, context);}, write_cookie:function(name,value,callback,context){return new ajax_request(this.url + '?_method=write_cookie&_session=no','name=' + enc(name)+ '\r\nvalue=' + enc(value),callback, context);}, addcbb_nhanvat:function(type,priod,sel,id,className,func,callback,context){return new ajax_request(this.url + '?_method=addcbb_nhanvat&_session=no','type=' + enc(type)+ '\r\npriod=' + enc(priod)+ '\r\nsel=' + enc(sel)+ '\r\nid=' + enc(id)+ '\r\nclassName=' + enc(className)+ '\r\nfunc=' + enc(func),callback, context);}, GetCompleteWord_vnh:function(vnh_dict,vnh_Word,lang,callback,context){return new ajax_request(this.url + '?_method=GetCompleteWord_vnh&_session=no','vnh_dict=' + enc(vnh_dict)+ '\r\nvnh_Word=' + enc(vnh_Word)+ '\r\nlang=' + enc(lang),callback, context);}, checkLogin:function(callback,context){return new ajax_request(this.url + '?_method=checkLogin&_session=no','',callback, context);}, GetCompleteWord_s:function(vnh_dict,typedesc,vnh_Word,lang,callback,context){return new ajax_request(this.url + '?_method=GetCompleteWord_s&_session=no','vnh_dict=' + enc(vnh_dict)+ '\r\ntypedesc=' + enc(typedesc)+ '\r\nvnh_Word=' + enc(vnh_Word)+ '\r\nlang=' + enc(lang),callback, context);}, FTSCompleteList_vnh:function(strName,lang,callback,context){return new ajax_request(this.url + '?_method=FTSCompleteList_vnh&_session=no','strName=' + enc(strName)+ '\r\nlang=' + enc(lang),callback, context);}, CreatekhungthaoluanRoot:function(name,img,ngay,content,hi_sho,sPid,feedbackID,prenID,ml,callback,context){return new ajax_request(this.url + '?_method=CreatekhungthaoluanRoot&_session=no','name=' + enc(name)+ '\r\nimg=' + enc(img)+ '\r\nngay=' + enc(ngay)+ '\r\ncontent=' + enc(content)+ '\r\nhi_sho=' + enc(hi_sho)+ '\r\nsPid=' + enc(sPid)+ '\r\nfeedbackID=' + enc(feedbackID)+ '\r\nprenID=' + enc(prenID)+ '\r\nml=' + enc(ml),callback, context);}, Createkhungthaoluan:function(name,img,ngay,content,hi_sho,sPid,feedbackID,prenID,ml,callback,context){return new ajax_request(this.url + '?_method=Createkhungthaoluan&_session=no','name=' + enc(name)+ '\r\nimg=' + enc(img)+ '\r\nngay=' + enc(ngay)+ '\r\ncontent=' + enc(content)+ '\r\nhi_sho=' + enc(hi_sho)+ '\r\nsPid=' + enc(sPid)+ '\r\nfeedbackID=' + enc(feedbackID)+ '\r\nprenID=' + enc(prenID)+ '\r\nml=' + enc(ml),callback, context);}, Createkhungthaoluan_add:function(name,img,ngay,content,hi_sho,sPid,feedbackID,prenID,ml,callback,context){return new ajax_request(this.url + '?_method=Createkhungthaoluan_add&_session=no','name=' + enc(name)+ '\r\nimg=' + enc(img)+ '\r\nngay=' + enc(ngay)+ '\r\ncontent=' + enc(content)+ '\r\nhi_sho=' + enc(hi_sho)+ '\r\nsPid=' + enc(sPid)+ '\r\nfeedbackID=' + enc(feedbackID)+ '\r\nprenID=' + enc(prenID)+ '\r\nml=' + enc(ml),callback, context);}, CreatekhungInputthaoluan:function(sPid,feedbackID,prenID,ml,callback,context){return new ajax_request(this.url + '?_method=CreatekhungInputthaoluan&_session=no','sPid=' + enc(sPid)+ '\r\nfeedbackID=' + enc(feedbackID)+ '\r\nprenID=' + enc(prenID)+ '\r\nml=' + enc(ml),callback, context);}, CreatekhungthaoluanWhiteRoot:function(name,img,ngay,content,hi_sho,sPid,feedbackID,prenID,ml,callback,context){return new ajax_request(this.url + '?_method=CreatekhungthaoluanWhiteRoot&_session=no','name=' + enc(name)+ '\r\nimg=' + enc(img)+ '\r\nngay=' + enc(ngay)+ '\r\ncontent=' + enc(content)+ '\r\nhi_sho=' + enc(hi_sho)+ '\r\nsPid=' + enc(sPid)+ '\r\nfeedbackID=' + enc(feedbackID)+ '\r\nprenID=' + enc(prenID)+ '\r\nml=' + enc(ml),callback, context);}, CreatekhungthaoluanWhite:function(name,img,ngay,content,hi_sho,sPid,feedbackID,prenID,ml,callback,context){return new ajax_request(this.url + '?_method=CreatekhungthaoluanWhite&_session=no','name=' + enc(name)+ '\r\nimg=' + enc(img)+ '\r\nngay=' + enc(ngay)+ '\r\ncontent=' + enc(content)+ '\r\nhi_sho=' + enc(hi_sho)+ '\r\nsPid=' + enc(sPid)+ '\r\nfeedbackID=' + enc(feedbackID)+ '\r\nprenID=' + enc(prenID)+ '\r\nml=' + enc(ml),callback, context);}, CreatekhungthaoluanWhite_add:function(name,img,ngay,content,hi_sho,sPid,feedbackID,prenID,ml,callback,context){return new ajax_request(this.url + '?_method=CreatekhungthaoluanWhite_add&_session=no','name=' + enc(name)+ '\r\nimg=' + enc(img)+ '\r\nngay=' + enc(ngay)+ '\r\ncontent=' + enc(content)+ '\r\nhi_sho=' + enc(hi_sho)+ '\r\nsPid=' + enc(sPid)+ '\r\nfeedbackID=' + enc(feedbackID)+ '\r\nprenID=' + enc(prenID)+ '\r\nml=' + enc(ml),callback, context);}, CreatekhungInputthaoluanWhite:function(sPid,feedbackID,prenID,ml,callback,context){return new ajax_request(this.url + '?_method=CreatekhungInputthaoluanWhite&_session=no','sPid=' + enc(sPid)+ '\r\nfeedbackID=' + enc(feedbackID)+ '\r\nprenID=' + enc(prenID)+ '\r\nml=' + enc(ml),callback, context);}, GetFeedBack_vnh:function(strType,WordId,sortfield,sorttype,strPosStart,strResults,strParentid,root,trang,ml,callback,context){return new ajax_request(this.url + '?_method=GetFeedBack_vnh&_session=no','strType=' + enc(strType)+ '\r\nWordId=' + enc(WordId)+ '\r\nsortfield=' + enc(sortfield)+ '\r\nsorttype=' + enc(sorttype)+ '\r\nstrPosStart=' + enc(strPosStart)+ '\r\nstrResults=' + enc(strResults)+ '\r\nstrParentid=' + enc(strParentid)+ '\r\nroot=' + enc(root)+ '\r\ntrang=' + enc(trang)+ '\r\nml=' + enc(ml),callback, context);}, SetFeedBack_vnh:function(strType,wordId,strContent,parentid,callback,context){return new ajax_request(this.url + '?_method=SetFeedBack_vnh&_session=no','strType=' + enc(strType)+ '\r\nwordId=' + enc(wordId)+ '\r\nstrContent=' + enc(strContent)+ '\r\nparentid=' + enc(parentid),callback, context);}, ViewGetAllHomeWord:function(type,ty,callback,context){return new ajax_request(this.url + '?_method=ViewGetAllHomeWord&_session=no','type=' + enc(type)+ '\r\nty=' + enc(ty),callback, context);}, AddHomeWord:function(strType,showinhome,strDate,strPreword,strWord,hiIdPlaceVnh,callback,context){return new ajax_request(this.url + '?_method=AddHomeWord&_session=no','strType=' + enc(strType)+ '\r\nshowinhome=' + enc(showinhome)+ '\r\nstrDate=' + enc(strDate)+ '\r\nstrPreword=' + enc(strPreword)+ '\r\nstrWord=' + enc(strWord)+ '\r\nhiIdPlaceVnh=' + enc(hiIdPlaceVnh),callback, context);}, GetHomeWord:function(strType,showinhome,placetype,strRandom,fullcontent,callback,context){return new ajax_request(this.url + '?_method=GetHomeWord&_session=no','strType=' + enc(strType)+ '\r\nshowinhome=' + enc(showinhome)+ '\r\nplacetype=' + enc(placetype)+ '\r\nstrRandom=' + enc(strRandom)+ '\r\nfullcontent=' + enc(fullcontent),callback, context);}, GetAllHomeWord:function(strType,placetype,callback,context){return new ajax_request(this.url + '?_method=GetAllHomeWord&_session=no','strType=' + enc(strType)+ '\r\nplacetype=' + enc(placetype),callback, context);}, DeleteHomeWord:function(strType,strId,callback,context){return new ajax_request(this.url + '?_method=DeleteHomeWord&_session=no','strType=' + enc(strType)+ '\r\nstrId=' + enc(strId),callback, context);}, UpdateHomeWord:function(strType,strDate,strPreword,strWord,hiIdPlaceVnh,callback,context){return new ajax_request(this.url + '?_method=UpdateHomeWord&_session=no','strType=' + enc(strType)+ '\r\nstrDate=' + enc(strDate)+ '\r\nstrPreword=' + enc(strPreword)+ '\r\nstrWord=' + enc(strWord)+ '\r\nhiIdPlaceVnh=' + enc(hiIdPlaceVnh),callback, context);}, getMeanOfWord_dlg:function(strDict,strWord,strFunction,callback,context){return new ajax_request(this.url + '?_method=getMeanOfWord_dlg&_session=no','strDict=' + enc(strDict)+ '\r\nstrWord=' + enc(strWord)+ '\r\nstrFunction=' + enc(strFunction),callback, context);}, ViewPhotoByArtID:function(ArticleIDList,page,pagesize,key,callback,context){return new ajax_request(this.url + '?_method=ViewPhotoByArtID&_session=no','ArticleIDList=' + enc(ArticleIDList)+ '\r\npage=' + enc(page)+ '\r\npagesize=' + enc(pagesize)+ '\r\nkey=' + enc(key),callback, context);}, url:'/trithucviet/ajax/Vietgle.AjaxFuncs.AjaxFuncs,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 AjaxImage(url){var img=new Image();img.src=url;return img;} function _getTable(n,e){for(var i=0; i