function popUp(url,width,height){popWin=window.open(url,"theWin","status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,height="+height+","+"width="+width);popWin.focus();}function openWin(url,name,params){theWin=window.open(url,name,params);theWin.focus();}randGen.m=714025;randGen.a=4096;randGen.c=150889;randGen.seed=(new Date()).getTime()%randGen.m;function randGen(){randGen.seed=(randGen.seed*randGen.a+randGen.c)%randGen.m;return Math.floor((randGen.seed/randGen.m)*10000000);}function preLoad(){var args=preLoad.arguments;document.imageArray=new Array(args.length);for(var i=0;i<args.length;i++){document.imageArray[i]=new Image;document.imageArray[i].src=args[i];}}function openCalculatorReport(){var agt=navigator.userAgent.toLowerCase();var is_aol=(agt.indexOf("aol")!=-1);leftpos=0;if(screen){leftpos=screen.width/2-300;}if(is_aol){var sreport=" ";sreport=document.calculatorobj.sJavaScriptReport("HTML");document.write(sreport);}else{var OpenWindow=window.open("","newwin","toolbar=yes,menubar=yes,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height="+(screen.height-120)+",left="+leftpos+",top=5");var sreport=" ";var applet=document.getElementById("calculatorobj");sreport=applet.sJavaScriptReport("HTML");OpenWindow.document.write(sreport);OpenWindow.document.close();OpenWindow.focus();}}function getParam(name){var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var tmpURL=window.location.href;var results=regex.exec(tmpURL);if(results==null){return"";}else{return results[1];}}function addCommas(nStr){nStr+="";x=nStr.split(".");x1=x[0];x2=x.length>1?"."+x[1]:"";var rgx=/(\d+)(\d{3})/;while(rgx.test(x1)){x1=x1.replace(rgx,"$1"+","+"$2");}return x1+x2;}