if(top.location!=self.location)top.location=self.location;function Menu_Select(a){document.getElementById(a).style.backgroundColor="#a5eefd";document.getElementById(a).style.color="#f00";for(a=0;a<document.images.length;a++)if(document.images[a].alt.length>0)document.images[a].title=document.images[a].alt}
function BookmarkPage(){var a=document.location.href;a.indexOf("?")>0&&(a=a.substring(0,a.indexOf("?")));if(document.all)window.external.AddFavorite(a,document.title);else if(window.sidebar)window.sidebar.addPanel(window.document.title,a,"");else{alert("Sorry! Your browser doesn't appear to support this function.\n\r\n\rYou can Bookmark this page manually by clicking your Browsers' Bookmark icon.");return}(new Image).src="http://www.blocklayer.com/Logger.ashx?p="+escape(document.location.href.substring(11))+
"&a=Bookmarked"}function TellAFriend(){window.open("TellFriend.aspx",null,"height=360,width=600,scrollbars=0,resizable=1,status=0,toolbar=0,menubar=0,location=0").focus()}var dloc=document.location.toString().toLowerCase();if(dloc.indexOf("visualtrig.com")==-1&&dloc.indexOf("localhost")==-1||dloc.indexOf("file:")>-1)location.replace("http://www.visualtrig.com"),document.write('<a href="http://www.visualtrig.com"><h1>Visualtrig.com</h1></a>');
function SetNumeric(){for(var a=document.getElementsByTagName("input"),b=0;b<a.length;b++)a[b].onkeypress=CheckNumeric}function CheckNumeric(a){if(document.all){var b=event.keyCode;return b==46&&event.srcElement.value.indexOf(".")!=-1?false:b>=46&&b<58?true:false}else{b=a.which;b==46&&a.target.value.indexOf(".")!=-1&&a.preventDefault();if(b>=46&&b<58||b==0||b==8)return true;a.preventDefault()}}window.onbeforeprint=NoPrint;
function NoPrint(){document.getElementsByTagName("canvas").length>0&&document.getElementsByTagName("canvas").length>0&&IsIE()<9&&alert("IE"+IsIE()+" may not print this page correctly\n\nPlease use IE9 or later, Firefox or Chrome to print\n\n\nSorry for the inconvenience")}function IsIE(){var a=navigator.userAgent;return a.indexOf("IE")>-1&&/MSIE ([0-9]{1,}[.0-9]{0,})/.exec(a)!=null?parseFloat(RegExp.$1):100}
function RoundTo(a,b){if(b==0)return Math.round(a);b=Math.pow(10,b);return d=Math.round(a*b)/b};
