// cached javascript var LocalPage = { GetLocals:function(Id,callback,context){return new ajax_request(this.url + '?_method=GetLocals&_session=rw','Id=' + enc(Id),callback, context);}, GetTowns:function(Id,type,callback,context){return new ajax_request(this.url + '?_method=GetTowns&_session=rw','Id=' + enc(Id)+ '\r\ntype=' + enc(type),callback, context);}, GetLocalItems:function(Id,start,length,order,callback,context){return new ajax_request(this.url + '?_method=GetLocalItems&_session=rw','Id=' + enc(Id)+ '\r\nstart=' + enc(start)+ '\r\nlength=' + enc(length)+ '\r\norder=' + enc(order),callback, context);}, IsOk:function(callback,context){return new ajax_request(this.url + '?_method=IsOk&_session=rw','',callback, context);}, WriteIt:function(Id,text,callback,context){return new ajax_request(this.url + '?_method=WriteIt&_session=rw','Id=' + enc(Id)+ '\r\ntext=' + enc(text),callback, context);}, Kaydet:function(statement,category,lblId,callback,context){return new ajax_request(this.url + '?_method=Kaydet&_session=rw','statement=' + enc(statement)+ '\r\ncategory=' + enc(category)+ '\r\nlblId=' + enc(lblId),callback, context);}, SaveOfferQuestion:function(question,answer1,answer2,answer3,answer4,answer5,countryId,cityId,townId,villageId,callback,context){return new ajax_request(this.url + '?_method=SaveOfferQuestion&_session=rw','question=' + enc(question)+ '\r\nanswer1=' + enc(answer1)+ '\r\nanswer2=' + enc(answer2)+ '\r\nanswer3=' + enc(answer3)+ '\r\nanswer4=' + enc(answer4)+ '\r\nanswer5=' + enc(answer5)+ '\r\ncountryId=' + enc(countryId)+ '\r\ncityId=' + enc(cityId)+ '\r\ntownId=' + enc(townId)+ '\r\nvillageId=' + enc(villageId),callback, context);}, AddLocalComment:function(reId,text,cityId,callback,context){return new ajax_request(this.url + '?_method=AddLocalComment&_session=rw','reId=' + enc(reId)+ '\r\ntext=' + enc(text)+ '\r\ncityId=' + enc(cityId),callback, context);}, MakeReport:function(Id,type,callback,context){return new ajax_request(this.url + '?_method=MakeReport&_session=rw','Id=' + enc(Id)+ '\r\ntype=' + enc(type),callback, context);}, RemoveItem:function(Id,callback,context){return new ajax_request(this.url + '?_method=RemoveItem&_session=rw','Id=' + enc(Id),callback, context);}, ReportItem:function(id,type,callback,context){return new ajax_request(this.url + '?_method=ReportItem&_session=rw','id=' + enc(id)+ '\r\ntype=' + enc(type),callback, context);}, DeleteComment:function(Id,callback,context){return new ajax_request(this.url + '?_method=DeleteComment&_session=rw','Id=' + enc(Id),callback, context);}, GetComments:function(Id,callback,context){return new ajax_request(this.url + '?_method=GetComments&_session=rw','Id=' + enc(Id),callback, context);}, GetItemId:function(Id,Type,callback,context){return new ajax_request(this.url + '?_method=GetItemId&_session=rw','Id=' + enc(Id)+ '\r\nType=' + enc(Type),callback, context);}, GetSchools:function(Id,sType,callback,context){return new ajax_request(this.url + '?_method=GetSchools&_session=rw','Id=' + enc(Id)+ '\r\nsType=' + enc(sType),callback, context);}, UpdatePoll:function(choiceID,text,locId,callback,context){return new ajax_request(this.url + '?_method=UpdatePoll&_session=rw','choiceID=' + enc(choiceID)+ '\r\ntext=' + enc(text)+ '\r\nlocId=' + enc(locId),callback, context);}, MemberControl:function(memon,callback,context){return new ajax_request(this.url + '?_method=MemberControl&_session=rw','memon=' + enc(memon),callback, context);}, GetItemComments:function(itemId,ct,amount,state,lokId,callback,context){return new ajax_request(this.url + '?_method=GetItemComments&_session=rw','itemId=' + enc(itemId)+ '\r\nct=' + enc(ct)+ '\r\namount=' + enc(amount)+ '\r\nstate=' + enc(state)+ '\r\nlokId=' + enc(lokId),callback, context);}, AddItemComment:function(itemId,text,ct,yerId,callback,context){return new ajax_request(this.url + '?_method=AddItemComment&_session=rw','itemId=' + enc(itemId)+ '\r\ntext=' + enc(text)+ '\r\nct=' + enc(ct)+ '\r\nyerId=' + enc(yerId),callback, context);}, DeleteItemComment:function(comId,callback,context){return new ajax_request(this.url + '?_method=DeleteItemComment&_session=rw','comId=' + enc(comId),callback, context);}, url:'/ajax/Portal.LocalPage,Portal.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);}