// cached javascript var AjaxMethod = { checkAccount:function(keyid,account,callback,context){return new ajax_request(this.url + '?_method=checkAccount&_session=r','keyid=' + enc(keyid)+ '\r\naccount=' + enc(account),callback, context);}, LoginCheck:function(account,password,callback,context){return new ajax_request(this.url + '?_method=LoginCheck&_session=r','account=' + enc(account)+ '\r\npassword=' + enc(password),callback, context);}, LoginOut:function(callback,context){return new ajax_request(this.url + '?_method=LoginOut&_session=r','',callback, context);}, addType:function(KeyId,ParentId,TypeName,callback,context){return new ajax_request(this.url + '?_method=addType&_session=r','KeyId=' + enc(KeyId)+ '\r\nParentId=' + enc(ParentId)+ '\r\nTypeName=' + enc(TypeName),callback, context);}, modifyType:function(KeyId,ParentId,TypeName,callback,context){return new ajax_request(this.url + '?_method=modifyType&_session=r','KeyId=' + enc(KeyId)+ '\r\nParentId=' + enc(ParentId)+ '\r\nTypeName=' + enc(TypeName),callback, context);}, deleteType:function(KeyId,callback,context){return new ajax_request(this.url + '?_method=deleteType&_session=r','KeyId=' + enc(KeyId),callback, context);}, getTypeList:function(nid,callback,context){return new ajax_request(this.url + '?_method=getTypeList&_session=r','nid=' + enc(nid),callback, context);}, setEmployeeState:function(KeyId,State,callback,context){return new ajax_request(this.url + '?_method=setEmployeeState&_session=r','KeyId=' + enc(KeyId)+ '\r\nState=' + enc(State),callback, context);}, delEmployee:function(KeyId,callback,context){return new ajax_request(this.url + '?_method=delEmployee&_session=r','KeyId=' + enc(KeyId),callback, context);}, setPutHouseState:function(KeyId,State,callback,context){return new ajax_request(this.url + '?_method=setPutHouseState&_session=r','KeyId=' + enc(KeyId)+ '\r\nState=' + enc(State),callback, context);}, setReqHouseState:function(KeyId,State,callback,context){return new ajax_request(this.url + '?_method=setReqHouseState&_session=r','KeyId=' + enc(KeyId)+ '\r\nState=' + enc(State),callback, context);}, setCarplantState:function(KeyId,State,callback,context){return new ajax_request(this.url + '?_method=setCarplantState&_session=r','KeyId=' + enc(KeyId)+ '\r\nState=' + enc(State),callback, context);}, InsertComments:function(houseid,name,score,contents,callback,context){return new ajax_request(this.url + '?_method=InsertComments&_session=r','houseid=' + enc(houseid)+ '\r\nname=' + enc(name)+ '\r\nscore=' + enc(score)+ '\r\ncontents=' + enc(contents),callback, context);}, InsertGuide:function(houseid,service,contents,name,age,job,sex,email,tel,address,callback,context){return new ajax_request(this.url + '?_method=InsertGuide&_session=r','houseid=' + enc(houseid)+ '\r\nservice=' + enc(service)+ '\r\ncontents=' + enc(contents)+ '\r\nname=' + enc(name)+ '\r\nage=' + enc(age)+ '\r\njob=' + enc(job)+ '\r\nsex=' + enc(sex)+ '\r\nemail=' + enc(email)+ '\r\ntel=' + enc(tel)+ '\r\naddress=' + enc(address),callback, context);}, url:'/ajax/MMHOMEHOME.AjaxCs.AjaxMethod,MMHOMEHOME.Web.ashx' } function digi(v, c){v = v + "";var n = "0000";if(v.length < c) return n.substr(0, c-v.length) + v;return v;} function DateTime(year,month,day,hours,minutes,seconds){if(year>9999||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 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; i