function NeatConfirm(c,t) { if(!c) c="Are your sure?"; if(t) c=t+':'+String.fromCharCode(10)+c; return confirm(c); } function IsSure() { return NeatConfirm("Are you sure?"); } function SetCheckValue(ctlWhich,vValue) { for(var iCtr=0;iCtr=1) f=new Function(f); else if(!f) return;return f(); } if(typeof($)=='undefined') function $(l) { return typeof(l)=='object'? l:document.getElementById(l); } if(typeof($_)=='undefined') function $_(l) { if(!l && window.event) l=window.event.srcElement; else if(l.target) l=l.target; else if(typeof(l)=='object') alert("unkobj:"+String(l)); if(typeof(l)=='object' && l['for']) l=l['for']; if(typeof(l)=='string') l=$(l); if(!l) return true; if(window.event) window.event.returnValue=false; if(l.name && l.type && (l.type=='radio' || l.type=='checkbox')) { l=document.getElementsByName(l.name); for(i=0;i