var app = { Quote:function(NameOfContact,CompanyName,EmailAddress,FobValue,FreightValue,Duties,Fees,Profit,TotalValue,NameBene,AddressBene,PhoneBene,FaxBene,CountryBene,Commodities,Awbbl,Origin,Destination,Conveyance,callback,context){return new ajax_request(this.url + '?_method=Quote&_session=rw','NameOfContact=' + enc(NameOfContact)+ '\r\nCompanyName=' + enc(CompanyName)+ '\r\nEmailAddress=' + enc(EmailAddress)+ '\r\nFobValue=' + enc(FobValue)+ '\r\nFreightValue=' + enc(FreightValue)+ '\r\nDuties=' + enc(Duties)+ '\r\nFees=' + enc(Fees)+ '\r\nProfit=' + enc(Profit)+ '\r\nTotalValue=' + enc(TotalValue)+ '\r\nNameBene=' + enc(NameBene)+ '\r\nAddressBene=' + enc(AddressBene)+ '\r\nPhoneBene=' + enc(PhoneBene)+ '\r\nFaxBene=' + enc(FaxBene)+ '\r\nCountryBene=' + enc(CountryBene)+ '\r\nCommodities=' + enc(Commodities)+ '\r\nAwbbl=' + enc(Awbbl)+ '\r\nOrigin=' + enc(Origin)+ '\r\nDestination=' + enc(Destination)+ '\r\nConveyance=' + enc(Conveyance),callback, context);}, Registration:function(CompanyName,Address,City,ZipCode,State,Country,ContactName,Phone,Fax,Mobile,OtherPhone,Email,WebSite,callback,context){return new ajax_request(this.url + '?_method=Registration&_session=rw','CompanyName=' + enc(CompanyName)+ '\r\nAddress=' + enc(Address)+ '\r\nCity=' + enc(City)+ '\r\nZipCode=' + enc(ZipCode)+ '\r\nState=' + enc(State)+ '\r\nCountry=' + enc(Country)+ '\r\nContactName=' + enc(ContactName)+ '\r\nPhone=' + enc(Phone)+ '\r\nFax=' + enc(Fax)+ '\r\nMobile=' + enc(Mobile)+ '\r\nOtherPhone=' + enc(OtherPhone)+ '\r\nEmail=' + enc(Email)+ '\r\nWebSite=' + enc(WebSite),callback, context);}, Login:function(txtUserName,txtPassword,callback,context){return new ajax_request(this.url + '?_method=Login&_session=rw','txtUserName=' + enc(txtUserName)+ '\r\ntxtPassword=' + enc(txtPassword),callback, context);}, CheckTimeout:function(callback,context){return new ajax_request(this.url + '?_method=CheckTimeout&_session=rw','',callback, context);}, ChatSession:function(callback,context){return new ajax_request(this.url + '?_method=ChatSession&_session=rw','',callback, context);}, url:'/ajax/app,App_Web_cwzmy5sg.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