
// cached javascript
var AjaxClass = {
CheckLogin:function(validCode,userName,passWord,callback,context){return new ajax_request(this.url + '?_method=CheckLogin&_session=rw','validCode=' + enc(validCode)+ '\r\nuserName=' + enc(userName)+ '\r\npassWord=' + enc(passWord),callback, context);},
CheckLoginOnline:function(validCode,userName,passWord,isonline,callback,context){return new ajax_request(this.url + '?_method=CheckLoginOnline&_session=rw','validCode=' + enc(validCode)+ '\r\nuserName=' + enc(userName)+ '\r\npassWord=' + enc(passWord)+ '\r\nisonline=' + enc(isonline),callback, context);},
OutLogin:function(callback,context){return new ajax_request(this.url + '?_method=OutLogin&_session=rw','',callback, context);},
SendMessage:function(cid,title,proID,linkMan,companyName,tel,email,detail,addr,valCode,PvcID,callback,context){return new ajax_request(this.url + '?_method=SendMessage&_session=rw','cid=' + enc(cid)+ '\r\ntitle=' + enc(title)+ '\r\nproID=' + enc(proID)+ '\r\nlinkMan=' + enc(linkMan)+ '\r\ncompanyName=' + enc(companyName)+ '\r\ntel=' + enc(tel)+ '\r\nemail=' + enc(email)+ '\r\ndetail=' + enc(detail)+ '\r\naddr=' + enc(addr)+ '\r\nvalCode=' + enc(valCode)+ '\r\nPvcID=' + enc(PvcID),callback, context);},
SendDownMessage:function(cid,title,proID,linkMan,companyName,tel,email,detail,addr,issendbuy,valCode,callback,context){return new ajax_request(this.url + '?_method=SendDownMessage&_session=rw','cid=' + enc(cid)+ '\r\ntitle=' + enc(title)+ '\r\nproID=' + enc(proID)+ '\r\nlinkMan=' + enc(linkMan)+ '\r\ncompanyName=' + enc(companyName)+ '\r\ntel=' + enc(tel)+ '\r\nemail=' + enc(email)+ '\r\ndetail=' + enc(detail)+ '\r\naddr=' + enc(addr)+ '\r\nissendbuy=' + enc(issendbuy)+ '\r\nvalCode=' + enc(valCode),callback, context);},
ReBrandDirectorys:function(tableName,ParentID,userid,callback,context){return new ajax_request(this.url + '?_method=ReBrandDirectorys&_session=r','tableName=' + enc(tableName)+ '\r\nParentID=' + enc(ParentID)+ '\r\nuserid=' + enc(userid),callback, context);},
AddFavorite:function(sourceID,category,callback,context){return new ajax_request(this.url + '?_method=AddFavorite&_session=rw','sourceID=' + enc(sourceID)+ '\r\ncategory=' + enc(category),callback, context);},
SetTags:function(id,category,tag,callback,context){return new ajax_request(this.url + '?_method=SetTags&_session=rw','id=' + enc(id)+ '\r\ncategory=' + enc(category)+ '\r\ntag=' + enc(tag),callback, context);},
ReTags:function(category,callback,context){return new ajax_request(this.url + '?_method=ReTags&_session=rw','category=' + enc(category),callback, context);},
verifyPwd:function(id,pwd,callback,context){return new ajax_request(this.url + '?_method=verifyPwd&_session=rw','id=' + enc(id)+ '\r\npwd=' + enc(pwd),callback, context);},
ReProByPictureId:function(pictureId,companyId,pageSize,callback,context){return new ajax_request(this.url + '?_method=ReProByPictureId&_session=rw','pictureId=' + enc(pictureId)+ '\r\ncompanyId=' + enc(companyId)+ '\r\npageSize=' + enc(pageSize),callback, context);},
GetClassIDByKey:function(keys,callback,context){return new ajax_request(this.url + '?_method=GetClassIDByKey&_session=rw','keys=' + enc(keys),callback, context);},
IsLogin:function(callback,context){return new ajax_request(this.url + '?_method=IsLogin&_session=rw','',callback, context);},
AddShoppingCar:function(companyID,productId,numberids,specids,specnames,callback,context){return new ajax_request(this.url + '?_method=AddShoppingCar&_session=rw','companyID=' + enc(companyID)+ '\r\nproductId=' + enc(productId)+ '\r\nnumberids=' + enc(numberids)+ '\r\nspecids=' + enc(specids)+ '\r\nspecnames=' + enc(specnames),callback, context);},
ToRecodeAdvertis:function(AdvertisID,callback,context){return new ajax_request(this.url + '?_method=ToRecodeAdvertis&_session=rw','AdvertisID=' + enc(AdvertisID),callback, context);},
AddVideoUsageLog:function(mda,callback,context){return new ajax_request(this.url + '?_method=AddVideoUsageLog&_session=rw','mda=' + enc(mda),callback, context);},
EncryptVerCode:function(callback,context){return new ajax_request(this.url + '?_method=EncryptVerCode&_session=rw','',callback, context);},
CkVCode:function(valCode,callback,context){return new ajax_request(this.url + '?_method=CkVCode&_session=rw','valCode=' + enc(valCode),callback, context);},
NewSendMessage:function(cid,title,proID,linkMan,companyName,tel,email,detail,addr,valCode,PvcID,orderType,callback,context){return new ajax_request(this.url + '?_method=NewSendMessage&_session=rw','cid=' + enc(cid)+ '\r\ntitle=' + enc(title)+ '\r\nproID=' + enc(proID)+ '\r\nlinkMan=' + enc(linkMan)+ '\r\ncompanyName=' + enc(companyName)+ '\r\ntel=' + enc(tel)+ '\r\nemail=' + enc(email)+ '\r\ndetail=' + enc(detail)+ '\r\naddr=' + enc(addr)+ '\r\nvalCode=' + enc(valCode)+ '\r\nPvcID=' + enc(PvcID)+ '\r\norderType=' + enc(orderType),callback, context);},
GetStandDomain:function(companyId,callback,context){return new ajax_request(this.url + '?_method=GetStandDomain&_session=rw','companyId=' + enc(companyId),callback, context);},
GetIndustryDomain:function(callback,context){return new ajax_request(this.url + '?_method=GetIndustryDomain&_session=rw','',callback, context);},
IshaveSubDomain:function(callback,context){return new ajax_request(this.url + '?_method=IshaveSubDomain&_session=rw','',callback, context);},
GetPrivacyNumber:function(cid,callback,context){return new ajax_request(this.url + '?_method=GetPrivacyNumber&_session=rw','cid=' + enc(cid),callback, context);},
TestPrivacyNumber:function(callback,context){return new ajax_request(this.url + '?_method=TestPrivacyNumber&_session=rw','',callback, context);},
TestCookie1:function(callback,context){return new ajax_request(this.url + '?_method=TestCookie1&_session=rw','',callback, context);},
TestCookie2:function(callback,context){return new ajax_request(this.url + '?_method=TestCookie2&_session=rw','',callback, context);},
TestWebConfig:function(cid,callback,context){return new ajax_request(this.url + '?_method=TestWebConfig&_session=rw','cid=' + enc(cid),callback, context);},
AddTalks:function(currid,remark,talkMan,callback,context){return new ajax_request(this.url + '?_method=AddTalks&_session=rw','currid=' + enc(currid)+ '\r\nremark=' + enc(remark)+ '\r\ntalkMan=' + enc(talkMan),callback, context);},
AddTalksFroPC:function(currid,remark,comeform,talkMan,callback,context){return new ajax_request(this.url + '?_method=AddTalksFroPC&_session=rw','currid=' + enc(currid)+ '\r\nremark=' + enc(remark)+ '\r\ncomeform=' + enc(comeform)+ '\r\ntalkMan=' + enc(talkMan),callback, context);},
GetTopTalksListBySite:function(currid,minid,site,callback,context){return new ajax_request(this.url + '?_method=GetTopTalksListBySite&_session=rw','currid=' + enc(currid)+ '\r\nminid=' + enc(minid)+ '\r\nsite=' + enc(site),callback, context);},
GetTopTalksList:function(currid,minid,callback,context){return new ajax_request(this.url + '?_method=GetTopTalksList&_session=rw','currid=' + enc(currid)+ '\r\nminid=' + enc(minid),callback, context);},
GetTalksList:function(currid,pageindex,callback,context){return new ajax_request(this.url + '?_method=GetTalksList&_session=rw','currid=' + enc(currid)+ '\r\npageindex=' + enc(pageindex),callback, context);},
DeleteTalks:function(id,callback,context){return new ajax_request(this.url + '?_method=DeleteTalks&_session=r','id=' + enc(id),callback, context);},
NotallowedTalks:function(id,callback,context){return new ajax_request(this.url + '?_method=NotallowedTalks&_session=r','id=' + enc(id),callback, context);},
HitVideo:function(vid,callback,context){return new ajax_request(this.url + '?_method=HitVideo&_session=rw','vid=' + enc(vid),callback, context);},
url:'/ajax/NewShowStand.Class.AjaxClass,NewShowStand.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<HtmlControlUpdate.arguments.length; i++)
	args[args.length] = HtmlControlUpdate.arguments[i];
if(args.length > 2)
	for(i=2; i<args.length; i++){fa += 'args[' + i + ']';if(i < args.length -1){ fa += ','; }}
f = '{"invoke":function(args){return ' + func + '(' + fa + ');}}';
ff = null;eval('ff=' + f + ';');
if(ff != null && typeof(ff.invoke) == 'function')
{
	var res = ff.invoke(args);
	if(res.error != null){alert(res.error);return;}
	ele.innerHTML = res.value;
}
}
function AjaxImage(url){var img=new Image();img.src=url;return img;}
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 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 _getTable(n,e){for(var i=0; i<e.Tables.length; i++){if(e.Tables[i].Name == n)return e.Tables[i];}return null;}
