$(function(){setEvent('textarea,input[type="text"]',"focusout",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){c=c.replace(/-/g,"")}b.value=c}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};