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