var brs=navigator.userAgent;brs.indexOf("IE")>-1||brs.indexOf("Firefox")>-1?document.write('<link rel="stylesheet" href="VisualtrigIE.css" type="text/css" />'):document.write('<link rel="stylesheet" href="Visualtrig.css" type="text/css" />');if(top!=self)top.location=self.document.location;var dloc=document.location.toString().toLowerCase();if(dloc.indexOf("visualtrig.mobi")==-1&&dloc.indexOf("localhost")==-1||dloc.indexOf("file:")>-1){location.replace("http://visualtrig.mobi");document.write('<a href="http://visualtrig.mobi"><h1>Visualtrig.mobi</h1></a>')}
function SetNumeric(){var b=document.createElement("input");b.setAttribute("type","number");b=b.type!="text";for(var a=document.getElementsByTagName("input"),c=0;c<a.length;c++)if(a[c].type=="text"){a[c].onkeypress=CheckNumeric;if(b)a[c].type="number"}}var inputProbs=0;
function CheckNumeric(b){var a=document.all?event.srcElement:b.target,c=document.all?event.keyCode:b.which;if(c>47&&c<58||c==8)return true;if(c==46&&a.value.indexOf(".")==-1)return true;inputProbs++;inputProbs%5==0&&alert("Use Numeric Keypad\n\n0 to 9 and .");if(document.all)return false;else b.preventDefault()}function RoundTo(b,a){if(a==0)return Math.round(b);a=Math.pow(10,a);return d=Math.round(b*a)/a};