=0){$(item).attr('checked',!0)}})
continue}
elem=form.find("input[name='"+k+"'],textarea[name='"+k+"'],select[name='"+k+"']");if(elem.length){elem.val(values[k])}}}}
var _isTouchDevice;function isTouchDevice(){if(_isTouchDevice===undefined){_isTouchDevice=('ontouchstart' in document.documentElement)&&(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/Windows Phone/i)||navigator.userAgent.match(/Opera Mini/i)||navigator.userAgent.match(/IEMobile/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints>0)}
return _isTouchDevice}
var _baseUrl;function getBaseUrl(){if(_baseUrl===undefined){_baseUrl=$('base').attr('href')}
return _baseUrl}
function isIOS(){return('ontouchstart' in document.documentElement)&&(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints>0)}
function wb_show_alert(message,type){var prompt=$("").addClass("alert alert-wb-form alert-"+type).append(message).prepend($("