function WEBILIX() {}; WEBILIX.prototype.content = new function () { this.LINK = new function () { this.SetOver = function (id, style, over) { var list = ['ICON', 'TITLE', 'IMAGE']; var obj = false; for (var l=0; l', page))); }; this.ShowList = function (action, maximum, current) { this.action = (action ? action : this.action); if (maximum < 1) return; var inpage = 100; var inrow = 10; var page = parseInt((maximum / inpage), 10); if ((page * inpage) != maximum) page++; var begin = 0; var end = 0; current = (isNaN(parseInt(current)) ? 1 : parseInt(current)); if (current < 1) current = 1; else if (current > page) current = page; var title = ''; if (page > 1) { title += '
'; title += '
'; } current--; begin = (current * inpage); end = begin + inpage; if (end > maximum) end = maximum; var content = ''; content += '
'; content += ''; for (var n=begin; n' : '') + '' + (((n % inrow) == (inrow - 1)) ? '' : ''); } content += '
'; content += ''; content += wx.NUMBER.Change(n + 1, true) + '
'; var button = new wx.popup.BUTTON(); button.SetButton(wx.GetLanguage('title-cancel'), 'js@wx.popup.Hide();', wx.key.ESC); wx.popup.Show(content, title + wx.GetLanguage('title-select'), button, ((begin < 1000) ? false : 450)); }; }; this.SLIDE = new function () { this.CHECK = new function() { this.check = []; this.Check = function (id) { if (!this.check[id]) return; var height = document.getElementById(id + 'Content').offsetHeight; document.getElementById(id).style.height = height + 'px'; window.setTimeout('wx.content.SLIDE.CHECK.Check(\'' + id + '\');', 100); }; this.Start = function (id) { this.check[id] = true; this.Check(id); }; this.Stop = function (id) { this.check[id] = false; }; }; this.active = []; this.timeout = 0; this.GetStatus = function (id) { return wx.GetData(id + 'STATUS'); }; this.Deactive = function (id) { this.active = wx.ARRAY.Delete(id, this.active); }; this.GetChange = function (height) { var change = parseInt(height / 10, 10); return ((change < 1) ? 1 : change); }; this.SlideOUT = function (id, value) { var slide = document.getElementById(id); var content = document.getElementById(id + 'Content'); var change = this.GetChange(content.offsetHeight); if (!value) { slide.style.display = ''; slide.style.height = '1px'; this.SlideOUT(id, 1); } else { value += change; if (value <= content.offsetHeight) { slide.style.height = value + 'px'; window.setTimeout('wx.content.SLIDE.SlideOUT(\'' + id + '\', ' + value + ');', this.timeout); } else { slide.style.overflow = ''; slide.style.height = content.offsetHeight + 'px'; this.Deactive(id); this.CHECK.Start(id); } } }; this.SlideIN = function (id, value) { var slide = document.getElementById(id); var content = document.getElementById(id + 'Content'); var change = this.GetChange(content.offsetHeight); if (!value) { this.CHECK.Stop(id); slide.style.height = content.offsetHeight + 'px'; slide.style.overflow = 'hidden'; this.SlideIN(id, content.offsetHeight); } else { value -= change; if (value >= 1) { slide.style.height = value + 'px'; window.setTimeout('wx.content.SLIDE.SlideIN(\'' + id + '\', ' + value + ');', this.timeout); } else { slide.style.display = 'none'; this.Deactive(id); } } }; this.Slide = function (id) { if (wx.ARRAY.Exists(id, this.active)) return; this.active[this.active.length] = id; var status = wx.GetData(id + 'STATUS', 'C'); wx.SetData(id + 'STATUS', ((status == 'C') ? 'O' : 'C')); if (status == 'C') this.SlideOUT(id); else this.SlideIN(id); }; }; this.MENU = new function () { this.close = false; this.last = []; this.Active = function (id, className) { this.Deactive(); var obj = document.getElementById(id); if (!obj) return false; obj.className = className + 'Over'; var obj = document.getElementById(id + 'SUB'); if (!obj) return false; obj.style.display = 'block'; this.last = [id, className]; this.close = false; this.Check(); }; this.Check = function () { if (this.close) this.Deactive(); else window.setTimeout('wx.content.MENU.Check()', 1000); }; this.Deactive = function () { if (this.last.length == 0) return false; var obj = document.getElementById(this.last[0]); if (!obj) return false; obj.className = this.last[1]; var obj = document.getElementById(this.last[0] + 'SUB'); if (!obj) return false; obj.style.display = 'none'; this.last = []; }; this.SetOver = function (id, style, over) { var list = ['IMAGE', 'ITEM']; var obj = null; for (l=0; l this.marquee[id].height) top = (0 - content.offsetHeight); content.style.top = top; this.marquee[id].top = top; }; this.CheckD = function (id) { if (this.marquee[id].pause) return; var frame = document.getElementById(id + 'FRAME'); if (!frame) return; var content = document.getElementById(id + 'CONTENT'); if (!content) return; var top = this.marquee[id].top - this.marquee[id].speed; if (top < (0 - content.offsetHeight)) top = this.marquee[id].height; content.style.top = top; this.marquee[id].top = top; }; this.Check = function (id) { if (!this.marquee[id]) return; switch (this.marquee[id].direction) { case 'U': this.CheckU(id); break; case 'D': this.CheckD(id); break; } window.setTimeout('wx.content.MARQUEE.Check(\'' + id + '\');', this.marquee[id].delay * 10); }; }; this.UPLOAD = new function () { this.config = false; this.comment = false; this.data = []; this.SetConfig = function (type, volume, description, image, flash) { this.config = {type: type, volume: volume, description: description, image: image, flash: flash}; this.comment = false; this.data = []; }; this.SetComment = function (comment) { this.comment = comment; }; this.SetData = function (data, value) { this.data[this.data.length] = [data, value]; }; this.GetName = function (name) { if (name == '') return ''; name = name.split('\\'); return name[name.length - 1]; }; this.Check = function () { var file = document.getElementById('idUploadFILE'); if (!file) return; var description = ''; if (!file.value) { file.focus(); return; } if (this.config.description != 'N') { description = document.getElementById('idUploadDESC'); if (!description) return; if ((this.config.description == 'R') && !description.value) { description.focus(); return; } description = description.value; } document.getElementById('idUploadFORM').style.display = 'none'; document.getElementById('idUploadLOADING').style.display = ''; var button = new wx.popup.BUTTON(); button.SetButton(wx.GetLanguage('title-cancel'), 'js@if (object = document.getElementById(\'idUploadFRAME\')) object.src = \'about:blank\'; wx.popup.Hide();', wx.key.ESC); wx.popup.SetContent(false, false, button); var data = [['TYPE', this.config.type]]; if (this.config.volume) data[data.length] = ['VOLUME', this.config.volume]; if (description) data[data.length] = ['DESCRIPTION', description]; if (this.config.image) data[data.length] = ['IMAGE', 'Y']; if (this.config.flash) data[data.length] = ['FLASH', 'Y']; for (var d=0; d' + image + '' : false); var content = ''; content += '
'; content += wx.GetLanguage('javascript-upload-comment') + (this.comment ? ' ' + this.comment : ''); content += (image ? ' ' + wx.GetLanguage('javascript-upload-image').replace('<-FORMAT->', image) : ''); content += ((this.config.description == 'O') ? ' ' + wx.GetLanguage('javascript-upload-desc-O') : ''); content += ((this.config.description == 'R') ? ' ' + wx.GetLanguage('javascript-upload-desc-R') : ''); content += '
' + wx.GetLanguage('javascript-upload-volume') + ': ' + (this.config.volume ? wx.GetVolume(this.config.volume * 1024) : '2M') + '

'; content += '
'; content += ((this.config.description != 'N') ? '' : ''); content += '
'; wx.popup.Show(content, wx.GetLanguage('title-upload'), button, false, true); }; }; this.ATTACHMENT = new function () { this.attachment = []; this.Set = function (id, description, value) { this.attachment[id] = {description: description, value: value}; this.Show(id); }; this.SetValue = function (id, file, description, volume, download, icon, link) { wx.popup.Hide(); if (!this.attachment[id]) return; var value = this.attachment[id].value; value[value.length] = {file: file, description: description, volume: volume, download: download, icon: icon, link: link}; this.attachment[id].value = value; this.Show(id); }; this.GetIndex = function (id, file) { if (!this.attachment[id]) return -1; var value = this.attachment[id].value; for (var v=0; v'; var edt = ''; var del = ''; var dnl = ''; var view = ''; var style = ''; view += '
'; var list = []; for (var v=0; v'; view += '
' + value[v].description; view += '

' + ''; view += ((v != 0) ? up.replace('<-FILE->', value[v].file) + '  ' : ''); view += ((this.attachment[id].description != 'N') ? edt.replace('<-FILE->', value[v].file) + '  ' : ''); view += del.replace('<-FILE->', value[v].file) + '  '; view += dnl.replace('<-FILE->', value[v].file); view += '' + wx.GetLanguage('title-download') + ': ' + wx.NUMBER.Change(value[v].download); view += ' - ' + wx.GetLanguage('value-volume') + ': ' + wx.GetVolume(value[v].volume); view += ' 
'; } view += '
'; view += '
'; document.getElementById(id).value = '|' + list.join('|') + '|'; document.getElementById(id + 'VIEW').innerHTML = view; }; }; this.GALLERY = new function () { this.gallery = []; this.Set = function (id, description, value) { this.gallery[id] = {description: description, value: value}; this.Show(id); }; this.SetValue = function (id, file, description, volume, icon) { wx.popup.Hide(); if (!this.gallery[id]) return; var value = this.gallery[id].value; value[value.length] = {file: file, description: description, volume: volume, icon: icon}; this.gallery[id].value = value; this.Show(id); }; this.GetIndex = function (id, file) { if (!this.gallery[id]) return -1; var value = this.gallery[id].value; for (var v=0; v'; var edt = ''; var del = ''; var view = ''; var style = ''; view += '
'; var list = []; for (var v=0; v'; view += '
' + value[v].description; view += '

' + ''; view += ((v != 0) ? up.replace('<-FILE->', value[v].file) + '  ' : ''); view += ((this.gallery[id].description != 'N') ? edt.replace('<-FILE->', value[v].file) + '  ' : ''); view += del.replace('<-FILE->', value[v].file); view += '' + wx.GetLanguage('value-volume') + ': ' + wx.GetVolume(value[v].volume); view += ' 
'; } view += '
'; view += '
'; document.getElementById(id).value = '|' + list.join('|') + '|'; document.getElementById(id + 'VIEW').innerHTML = view; }; }; this.TREE = new function () { this.Check = function (tree, status) { var obj = document.getElementById(tree); if (!obj) return; status = wx.GetData(tree + 'STATUS', status); wx.SetData(tree + 'STATUS', ((status == 'C') ? 'O' : 'C')); obj.style.display = ((status == 'C') ? '' : 'none'); document.getElementById(tree + 'IMAGE').src = wx.config.general + 'tree/' + ((status == 'C') ? 'open' : 'close') + '.gif'; }; }; }; WEBILIX.prototype.form = new function () { this.MEMBER = new function () { this.member = []; this.SetMember = function (id, type, multiple, index, order, value) { this.member[id] = {type: type, multiple: multiple, index: index, order: order, value: value}; this.Show(id); }; this.Submit = function (id, type, search, page) { if (!this.member[id]) return; var member = this.member[id]; var data = [['id', id], ['list', member.type], ['type', (type ? type : '')]]; if (search) data[data.length] = ['search', search]; var value = []; for (var v=0; v 0) data[data.length] = ['value', value.join('|')]; wx.popup.LoadAJAX('member-list', data, false, (page ? page : 1)); }; this.Exists = function (id, code) { if (!this.member[id]) return; var value = this.member[id].value; for (var v=0; v 1); var width = wx.ARRAY.Percent([65, 35], 95 - (index ? 5 : 0) - (order ? 5: 0)); var up = ''; var del = ''; var content = ''; content += '
'; content += ''; var code = []; var style = ''; for (var v=0; v' + wx.NUMBER.Change(v + 1) + '' : ''); content += ''; content += ''; content += (order ? '' : ''); content += ''; content += ''; } content += '
' + value[v].name + '' + value[v].type + '' + ((v == 0) ? ' ' : up.replace('<-INDEX->', v)) + '' + del.replace('<-INDEX->', v) + '
'; document.getElementById(id).value = ((value.length == 0) ? '' : '|' + code.join('|') + '|'); document.getElementById(id + 'VIEW').innerHTML = ((value.length == 0) ? '' : content); }; }; this.MSELECT = new function () { this.Check = function (id, item) { var value = []; for (var i=0; i max) object.value = max; }; this.Change = function (id, min, max, change) { if (!this.active || !change || (change == 0)) return; var object = document.getElementById(id); if (!object) return; if (!object.value || !wx.STRING.Check(object.value, '0')) object.value = min; var value = parseInt(object.value, 10); value += parseInt(change / 5, 10); if (change > 0) change++; else change--; if (value < min) value = min; else if (value > max) value = max; object.value = value; window.setTimeout('wx.form.NSELECT.Change(\'' + id + '\', ' + min + ', ' + max + ', ' + change + ');', 100); }; }; this.RADIO = new function () { this.Check = function (id, item, count) { for (var i=0; i 1)) value = [value[0]]; this.upload[id] = {multiple: multiple, order: order, value: value}; this.Show(id); }; this.Set = function (id, file, title, download) { wx.popup.Hide(); if (!this.upload[id]) return; var value = this.upload[id].value; var data = {file: file, title: title, download: download}; if (this.upload[id].multiple) value[value.length] = data; else value = [data]; this.upload[id].value = value; this.Show(id); }; this.Up = function (id, item) { if (!this.upload[id]) return; var value = this.upload[id].value; if ((item == 0) || !value[item]) return; var temp = ''; temp = value[item]; value[item] = value[item - 1]; value[item - 1] = temp; this.upload[id].value = value; this.Show(id); }; this.Delete = function (id, item) { if (!this.upload[id]) return; var value = this.upload[id].value; var list = []; for (var v=0; v' + data.value[v].title + ''; view += (data.order ? '' + ((v == 0) ? ' ' : '') + '' : ''); view += ''; } view += ''; document.getElementById(id).value = ((value.length != 0) ? '|' + value.join('|') + '|' : ''); document.getElementById(id + 'VIEW').innerHTML = ((value.length != 0) ? view : ' '); }; }; this.FOLDER = new function () { this.dir = ''; this.Cancel = function (id) { var obj = null; if (obj = document.getElementById(id)) obj.value = ''; if (obj = document.getElementById(id + 'VIEW')) obj.innerHTML = ' '; }; this.Submit = function (id, image, search, page) { var obj = document.getElementById(id); if (!obj) return; var data = [['id', id], ['image', image], ['dir', this.dir]]; if (search) data[data.length] = ['search', search]; wx.popup.LoadAJAX('folder-list', data, false, (page ? page : 1)); }; this.SetValue = function (id, value, download) { var obj = document.getElementById(id); if (!obj) return; wx.popup.Hide(); obj.value = value; document.getElementById(id + 'VIEW').innerHTML = '' + value + ''; }; }; this.VALUE = new function () { this.type = []; this.SetType = function (type) { var data = false; var d=0; var list = []; var field = []; for (var t=0; t=0; l--) { amount = ((total < field[list[l]].total) ? 0 : parseInt((total / field[list[l]].total), 10)); value[list[l]] = amount; total -= (amount * field[list[l]].total); } return value; }; this.GetView = function (type, value) { var field = this.GetType(type, 'field'); value = this.GetValue(type, value); var view = []; var list = this.GetType(type, 'list'); for (var l=list.length - 1; l>=0; l--) { if (!value[list[l]]) continue; var title = field[list[l]].title; view[view.length] = wx.NUMBER.Change(value[list[l]]) + ' ' + title; } return view.join(' ' + wx.GetLanguage('title-and') + ' '); }; this.SetValue = function (id, type) { var field = this.GetType(type, 'field'); if (!document.getElementById(id) || !field) return; var list = this.GetType(type, 'list'); var value = 0; var error = false; for (var l=0; l field[list[l]].max)) check = false; if (check) value += field[list[l]].total * parseInt(item.value, 10); else { item.className = 'cFormObjectVALUEERROR'; item.focus(); error = true; } } if (error) return; document.getElementById(id).value = (value ? value : ''); document.getElementById(id + 'VIEW').innerHTML = (value ? this.GetView(type, value) : ' '); document.getElementById(id + 'FORM').style.display = 'none'; }; this.Submit = function (id, type, list) { var field = this.GetType(type, 'field'); if (!document.getElementById(id) || !field) return; var value = document.getElementById(id).value; value = this.GetValue(type, (value ? parseInt(value, 10) : 0)); var button = new wx.popup.BUTTON(); button.SetButton(wx.GetLanguage('title-submit'), 'js@wx.form.VALUE.SetValue(\'' + id + '\', \'' + type + '\');'); button.SetButton(wx.GetLanguage('title-cancel'), 'js@document.getElementById(\'' + id + 'FORM\').style.display = \'none\';'); button = button.GetButton('center'); var form = ''; var action = ''; form += '
'; for (var l=list.length - 1; l>=0; l--) { if (!field[list[l]]) continue; var data = field[list[l]]; action = ((l == 0) ? 'wx.form.VALUE.SetValue(\'' + id + '\', \'' + type + '\');' : 'document.getElementById(\'' + id + 'Item' + list[l - 1] + '\').focus();'); form += ''; form += ''; } form += '
 ' + data.title + '
' + button + '
'; var object = document.getElementById(id + 'FORM'); object.innerHTML = form; object.style.display = ''; document.getElementById(id + 'Item' + list[list.length - 1]).focus(); }; this.Cancel = function (id) { var object = document.getElementById(id); if (!object) return; object.value = ''; document.getElementById(id + 'VIEW').innerHTML = ' '; document.getElementById(id + 'FORM').style.display = 'none'; }; }; this.LIST = new function () { this.list = []; this.SetList = function (id, list, title, dir, index, order, value) { this.list[id] = {list: list, title: title, dir: dir, index: index, order: order, value: value}; this.Show(id); }; this.ShowError = function (id, message) { var error = document.getElementById(id + 'ITEMERROR'); if (!this.list[id] || !error) return; error.innerHTML = message; error.style.display = (message ? '' : 'none'); document.getElementById(id + 'ITEM').focus(); }; this.Exists = function (id, item) { if (!this.list[id]) return false; var value = this.list[id].value; for (var v=0; v'; content += ''; var title = (list.title ? list.title : wx.GetLanguage('title-submit')); wx.popup.Show(content, title, button); document.getElementById(id + 'ITEM').focus(); } }; this.Set = function (id, item) { if (!this.list[id]) return; var value = this.list[id].value; value[value.length] = item; this.list[id].value = value; this.Show(id); }; this.Up = function (id, item) { if (!this.list[id]) return; var value = this.list[id].value; if ((item == 0) || !value[item]) return; var temp = ''; temp = value[item]; value[item] = value[item - 1]; value[item - 1] = temp; this.list[id].value = value; this.Show(id); }; this.Delete = function (id, item) { if (!this.list[id]) return; var value = this.list[id].value; var list = []; for (var v=0; v 1)) ? 10 : 0); content += '
'; for (var v=0; v' + wx.NUMBER.Change(v + 1) + '' : ''); content += ''; if (list.order && (value.length > 1)) { content += ''; } content += ''; content += ''; } content += '
 ' + (en ? '' : '') + value[v] + (en ? '' : '') + '' + ((v == 0) ? ' ' : '') + '
'; view.innerHTML = content; }; }; this.DATE = new function () { this.Submit = function (id) { var object = document.getElementById(id); if (!object) return; var calendar = document.getElementById(id + 'CALENDAR'); calendar.style.display = ''; wx.calendar.SetCalendar(id, object.value, id + 'CALENDAR', 'wx.form.DATE.SetDate(\'' + id + '\', \'<-DATE->\');'); wx.calendar.SetButton(id, wx.GetLanguage('title-cancel'), 'js@document.getElementById(\'' + id + 'CALENDAR\').style.display = \'none\';', wx.key.ESC); wx.calendar.ShowCalendar(id); }; this.SetDate = function (id, value) { var object = document.getElementById(id); if (!object) return; object.value = value; var view = document.getElementById(id + 'VIEW'); view.innerHTML = wx.date.GetView(value); var calendar = document.getElementById(id + 'CALENDAR'); calendar.style.display = 'none'; }; this.Cancel = function (id) { var object = document.getElementById(id); if (!object) return; object.value = ''; var view = document.getElementById(id + 'VIEW'); view.innerHTML = ' '; var calendar = document.getElementById(id + 'CALENDAR'); calendar.style.display = 'none'; } }; this.TIME = new function () { this.Check = function (id) { var time = document.getElementById(id); if (!time) return; time.value = ''; var list = ['H', 'M', 'S']; var obj = false; var value = []; var data = 0; for (var l=0; l 23)) obj.value = '23'; else if (data > 59) obj.value = '59'; else obj.value = ((data < 10) ? '0' : '') + data; } if (obj.value) value[value.length] = obj.value; } if (value.length == 3) time.value = value.join(':'); }; }; this.ORDER = new function () { this.order = []; this.Set = function (id, field) { this.order[id] = field; this.Show(id); }; this.Up = function (id, index) { if (!this.order[id] || !index) return; var field = this.order[id]; if (!field[index]) return; var temp = field[index]; field[index] = field[index - 1]; field[index - 1] = temp; this.order[id] = field; this.Show(id); }; this.Order = function (id, index, order) { if (!this.order[id]) return; var field = this.order[id]; if (!field[index]) return; field[index].type = order; this.order[id] = field; this.Show(id); }; this.Show = function (id) { if (!this.order[id]) return; var field = this.order[id]; var content = ''; var value = []; var style = ''; var up = ''; up += ');" />'; var order = 'wx.form.ORDER.Order(\'' + id + '\', <-INDEX->, this.value);'; content += '
'; content += ''; for (var f=0; f' + wx.NUMBER.Change(f + 1) + ''; content += ''; content += ''; } content += '
' + field[f].title + ''; content += ''; content += ((f != 0) ? up.replace('<-INDEX->', f) : '') + '
'; document.getElementById(id).value = value.join('|'); document.getElementById(id + 'VIEW').innerHTML = content; }; }; this.CHECK = new function () { this.CheckObject = function (value, check) { var error = []; for (var c=0; c', list.join(' ' + wx.GetLanguage('title-and') + ' ')); }} else if (check[c].substr(0, 5) == 'char,') { var use = check[c].substr(5); var list = []; if (!wx.STRING.Check(value, use)) { for (var u=0; u', list.join(' ' + wx.GetLanguage('title-and') + ' ')); }} else if (check[c].substr(0, 6) == 'count,') { var count = parseInt(check[c].substr(6), 10); var list = wx.STRING.Explode(value); if (list.length < count) error[error.length] = wx.GetLanguage('field-help-count').replace('<-COUNT->', wx.NUMBER.Change(count)); } else if (check[c].substr(0, 8) == 'between,') { var length = check[c].substr(8).split('-'); var min = parseInt(length[0], 10); var max = parseInt(length[1], 10); if (!parseInt(value, 10) || (parseInt(value, 10) < min) || (parseInt(value, 10) > max)) { min = wx.NUMBER.Change(min); max = wx.NUMBER.Change(max); error[error.length] = wx.GetLanguage('field-help-between').replace('<-MIN->', min).replace('<-MAX->', max); }} else if (check[c].substr(0, 8) == 'minimum,') { var min = parseInt(check[c].substr(8), 10); if (!parseInt(value, 10) || (parseInt(value, 10) < min)) error[error.length] = wx.GetLanguage('field-help-minimum').replace('<-VALUE->', wx.NUMBER.Change(min)); } else if (check[c].substr(0, 8) == 'maximum,') { var max = parseInt(check[c].substr(8), 10); if (!parseInt(value, 10) || (parseInt(value, 10) > max)) error[error.length] = wx.GetLanguage('field-help-maximum').replace('<-VALUE->', wx.NUMBER.Change(max)); } else if (check[c].substr(0, 7) == 'length,') { var length = check[c].substr(7).split('-'); var min = parseInt(length[0], 10); var max = parseInt(length[1], 10); if ((value.length < min) || (value.length > max)) { min = wx.NUMBER.Change(min); max = wx.NUMBER.Change(max); error[error.length] = wx.GetLanguage('field-help-length').replace('<-MIN->', min).replace('<-MAX->', max); }} else if (check[c].substr(0, 7) == 'minlen,') { var length = parseInt(check[c].substr(7), 10); if (value.length < length) error[error.length] = wx.GetLanguage('field-help-minlen').replace('<-LENGTH->', wx.NUMBER.Change(length)); } else if (check[c].substr(0, 7) == 'maxlen,') { var length = parseInt(check[c].substr(7), 10); if (value.length > length) error[error.length] = wx.GetLanguage('field-help-maxlen').replace('<-LENGTH->', wx.NUMBER.Change(length)); } } } return ((error.length == 0) ? false : '- ' + error.join('
- ')); }; this.Check = function (form, check) { for (var c=0; c