$(function(){setEvent('textarea,input[type="text"]',"focusout",function(){queryConvert(this)});$('textarea,input[type="text"]').each(function(){queryConvert(this)})});function queryConvert(b){var c,a;c=b.value;a=b.className;if(c!=null&&a!=null){if((a.match(/S9/)||a.match(/R/)||a.match(/XU9/))&&!a.match(/\S+R\S*/)&&!a.match(/\S*R\S+/)){b.value=c.replace(/,/g,"")}else{if(a.match(/PN2/)){c=c.replace(/(^\s+)|(\s+$)/g,"");if((c.length==12||c.length==13)&&c.indexOf("-")==3&&c.lastIndexOf("-")==9&&c.indexOf("-",4)==9){b.value=c.replace(/-/g,"")}}else{if(a.match(/PN/)){b.value=c.replace(/[ -]/g,"")}else{if(a.match(/YM/)||a.match(/DATE/)){b.value=c.replace(/\//g,"");if(a.match(/YMDH/)){b.value=c.replace(/[\/: ]/g,"")}}else{if(a.match(/HMS/)){b.value=c.replace(/:/g,"")}}}}}}return true};