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(typeof(f)!='function') return false; return f(); } if(typeof($)=='undefined') function $(l) { return typeof(l)=='object'? l:document.getElementById(l); } if(!document.getElementsByTagAndName) { document.getElementsByTagAndName=function GetElementsByTagAndName(t,n) { var i,j,x,am=null,ar=[]; if(document.getElementsByName) am=document.getElementsByName(n); if(!am.length && document.getElementsByTagName) am=document.getElementsByTagName(t); if(!am) alert("ERROR 8299456 getElementsByTagAndName required document methods unsupported on this browser."); for(i=0,j=-1,x=am.length;iw) return window.scroll(x,xy.y); if(xy.y+m.offsetHeight>r+w) return window.scroll(x,xy.y-w+m.offsetHeight); } } //if(!window.scrollToElement) { window.scrollToElement=function ScrollToElement(t,n) //{ var am=document.getElementsByTagAndName(t,n); if(!am || !am.length) return false; GetAbsoluteXY(am[0]); return window.scroll(0,am[0].absoluteY); } } if(!window.centerToElement) { window.centerToElement=function (m) { var xy,h=m.offsetHeight,r=window.scrollY,w=window.innerHeight,x=window.scrollX;if(!(xy=GetAbsoluteXY(m))||!xy.y) return false; if(h>w) return window.scroll(x,xy.y); return window.scroll(x,xy.y-(w-m.offsetHeight)/2); } } if(typeof(Element)!='undefined' && !Element.scrollIntoView) { Element.scrollIntoView=function () { return window.scrollToElement(this); } } if(!window.scrollToFirstElement) { window.scrollToFirstElement=function (t,n) { var m;if(!(m=document.getElementsByTagAndName(t,n))) return false; if(m.length) m=m[0]; return window.scrollToElement(m); } }