function isNum(value){return new RegExp("^[\\d]{1,}$","g").test(value);}//
function appendZreo(n){return (("00"+n).substr(("00"+n).length-2));}
function getTodaytime(){var d=new Date();return d.getFullYear()+"-"+appendZreo(d.getMonth()+1)+"-"+appendZreo(d.getDate());}
String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"");};
function showAppDialog(url,width,height){showModelessDialog(url,window,"dialogWidth:"+width+"px;dialogHeight:"+height+"px;status:no;help:no;scroll:no");}