/** * Program: models_syntax.js * @date 10/20/2022 * @author Stephan K Eisenbarth * Organization: VA CART * Syntax Scrore: Thomas Glorioso * Description: JavaScript file containing the function calls for VA Syntax Score */ // var tertileNum = 0; // Tertial group number related to patient's calculated VA syntax score /** * Modifier Function... * @author Stephan K Eisenbarth * @date 11/21/2019 * Description: Processes the VA Syntax Score form * @return outArr String array containing the values of successfully processing the bleeding risk model */ function processForm_Syntax () { var outArr = null; var errMess = null; var errTitle = "Syntax Score - "; var x = document.getElementById ("corDomin"); if (x == null || isEmpty (x.value) == true || x.value == "NULL") { errMess = errTitle + "Corinary Dominance must not be empty"; } else { x = null; var inputs = document.getElementsByTagName("input"); if (inputs == null || inputs.length < 1) { errMess = errTitle + "At least one lesion with stenosis 50% or greater must be selected"; } } if (errMess != null) { // Error processing syntax score occured alert (errMess); if (currModel != "syntax_Area") { changeModel ("syntaxBtn"); } if (x != null) { getElementFromCurrModel(x.id).focus (); } } else { // Ready to calculate syntax score outArr = calcSyntax (); } return outArr; } /** * Accessor Function... * @author Stephan K Eisenbarth * @date 1/15/2020 * Description: Returns a String array containing the labels for each of the form's inputs categories * @return fmrLbls Returns a String array containing the labels for each of the form's inputs categories */ function getResultLbls () { var fmrLbls = [["Right Coronary (Proximal)","pRCA"], ["Right Coronary (Mid)","mRCA"], ["Right Coronary (Distal)","dRCA"], ["Right Posterior Descending","iPDA"], ["Right PAV","iPAV"], ["Right Posterolateral 1","rPL1"], ["Right Posterolateral 2","rPL2"], ["Right Posterolateral 3","rPL3"], ["Left Main Coronary","LM"], ["Left Anterior Descending (Proximal)","pLAD"], ["Left Anterior Descending (Mid)","mLAD"], ["Left Anterior Descending (Distal)","dLAD"], ["Diagonal 1","1st Diag"], ["Diagonal 2","2nd Diag"], ["Left Circumflex (Proximal)","pCIRC"], ["Left Circumflex (Mid)","mCIRC"], ["Ramus","Ramus"], ["Obtuse Marginal (First)","1st OM"], ["Obtuse Marginal (Second)","2nd OM"], ["Obtuse Marginal (Third)","3rd OM"], ["Left Circumflex (Distal)","dCIRC"], ["Left Posterolateral 1","IPL1"], ["Left Posterolateral 2","IPL2"], ["Left Posterolateral 3","IPL3"], ["Left Posterior Descending Artery","IPDA"]]; return fmrLbls; } /** * Accessor Function... * @author Stephan K Eisenbarth * @date 3/14/2018 * Description: Checks if the specified String element ID exists or not * @param trgtID String containing the element ID to check if it exists or not * @return doesE boolean flag for whether the specified String element ID exists or not */ function doesInputExist (trgtID) { var doesE = false; if (document.getElementById ("occlusion_" + trgtID) != null) { doesE = true } return doesE } /** * Accessor Function... * @author Stephan K Eisenbarth * @date 3/14/2018 * Description: Returns an int index location of the element that has the specified String ID * @param trgtID String containing the element ID to find int index location of * @return outLoca int index location of the element that has the specified String ID */ function getResultsLblLoca (trgtID) { var outLoca = -1; var lblArr = getResultLbls (); for (var i = 0; i < lblArr.length; i ++) { if (trgtID == lblArr [i][1]) { outLoca = i; break; } } return outLoca; } /** * Modifier Function... * @author Stephan K Eisenbarth * @date 3/14/2018 * Description: Show the final results tables * @param tmpArr String array containing the RISK Percentage, Lower Limit Confidence Interval Percentage, then the Upper Limit Confidence Interval Percentage */ function showResults_syntax (tmpArr) { if (tmpArr != null && tmpArr.length > 0) { var totVal = 0; if (tmpArr.length > 1) { for (var i = 0; i < tmpArr.length; i++) { totVal += tmpArr [i]; } } else if (tmpArr.length == 1) { totVal = tmpArr [0]; } if (totVal < 1) { tertileNum = 0; } else if (totVal > 0 && totVal < 8) { tertileNum = 1; } else if (totVal > 7 && totVal < 16) { tertileNum = 2; } else if (totVal > 15) { tertileNum = 3; } var lblArr = getResultLbls (); var str = "

VA Syntax Score

" + "" + "" + "" + "" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "
" + "" + "" + "" + "" + "" + "" + "
" + "VA Syntax Score:  " + totVal + "" + "       " + ""; if (totVal > 0) { str += "Risk of major adverse events: "; if (tertileNum == 1) { str += "LOW"; } else if (tertileNum == 2) { str += "MEDIUM"; } else if (tertileNum == 3) { str += "HIGH"; } } else { str += " could not be calculated"; } str += "
" + "
" + "" + "" + "" + "" + "
" + "" + "" + "" + ""; if (tmpArr.length > 1) { str += "" + "" + "" + "
"; if (totVal > 0) { str += "The calculated score indicates a "; if (tertileNum == 1) { str += "low"; } else if (tertileNum == 2) { str += "medium"; } else if (tertileNum == 3) { str += "high"; } str += " risk of major adverse cardiovascular events, represented by the blue line on the graph, corresponding to all patients undergoing this procedure within the VA."; } else { str += " risk could not be calculated "; } str += "
" + "" + "" + "" + "" + ""; if (totVal > 0) { for (var i = 0; i < tmpArr.length; i++) { if (tmpArr [i] > 0) { str += "" + "" + "" + ""; } } } else { var inputs = document.getElementsByClassName ("occlusionBx"); if (inputs != null && inputs.length > 0) { var tmpLoca = -1; for (var i = 0; i < inputs.length; i ++) { tmpLoca = replaceAll (inputs [i].id, "occlusion_", ""); str += "" + "" + "" + ""; } } } } str += "
" + "     Lesion     " + "" + "     Value     " + "
" + lblArr [i][1] + "" + tmpArr [i] + "
" + tmpLoca + "" + "0" + "
" + "
" + "
" + "

" + "Increasing anatomic complexity is associated with increased rates of major adverse events among Veterans undergoing percutaneous revascularization. The calculated score and corresponding levels of complexity can be used to estimate the risk of major adverse cardiac events (death, MI, stroke, and repeat revascularization) over time (Figure). Cutoffs for VA SYNTAX Score levels (low, medium, high) are derived from a cohort of patients as previously described (PMID: 31241721)." + "

" + "

" + "The VA SYNTAX score is intended to inform discussions of a patient's coronary artery anatomic complexity." + "
" + "Decisions on clinical care that may stem from these scores are at the discretion of the treating provider.
" + "

"; document.getElementById ("resultsArea_syntax").innerHTML = str + "
"; drawGraphPad (totVal); } } /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ CALCULATION INFORMATION +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ var tertileNum = 0; // Which tertile group the VA syntax score puts patient into /** * Modifier Function... * Description: Calculates the syntax scorevalue based on the form's values * @author Stephan K Eisenbarth * @date 11/21/2019 */ function calcSyntax () { // varVals is broken into Right (1st and 2nd column), Left (3rd and 4th column) or Mixed (5th and 6th column) dominance var varVals =[ [2, 5, 0, 0, 1, 2.50], [2, 5, 0, 0, 1, 2.50], [2, 5, 0, 0, 1, 2.50], [2, 5, 0, 0, 1, 2.50], [1, 2.50, 0, 0, 0.50, 1.25], [1, 2.50, 0, 0, 0.50, 1.25], [1, 2.50, 0, 0, 0.50, 1.25], [1, 2.50, 0, 0, 0.50, 1.25], [10, 25, 12, 30, 11, 27.50], [7, 17.50, 7, 17.50, 7, 17.50], [5, 12.50, 5, 12.50, 5, 12.50], [2, 5, 2, 5, 2, 5], [2, 5, 2, 5, 2, 5], [1, 2.50, 1, 2.50, 1, 2.50], [3, 7.50, 5, 12.50, 4, 10], [3, 7.50, 5, 12.50, 4, 10], [2, 5, 2, 5, 2, 5], [2, 5, 2, 5, 2, 5], [2, 5, 2, 5, 2, 5], [2, 5, 2, 5, 2, 5], [1, 2.50, 3, 7.50, 2, 5], [1, 2.50, 2, 5, 1.50, 3.75], [1, 2.50, 2, 5, 1.50, 3.75], [1, 2.50, 2, 5, 1.50, 3.75], [0, 0, 2, 5, 1, 2.50] ] var currVal = 0; var domVal = -1; // Int for what column of above varVals array to use if (document.getElementById ("corDomin").value == "R") { domVal = 0; } else if (document.getElementById ("corDomin").value == "L") { domVal = 2; } else if (document.getElementById ("corDomin").value == "M") { domVal = 4; } var totVals = null; // Process drop down menu the values var inputs = document.getElementsByClassName ("occlusionBx"); if (inputs != null && inputs.length > 0) { // Set values to zero for results array totVals = new Array (varVals.length); for (var i = 0; i < totVals.length; i++ ) { totVals [i] = 0; } var tmpLoca = -1; for (var i = 0; i < inputs.length; i ++) { tmpLoca = getResultsLblLoca (replaceAll(inputs [i].id, "occlusion_", "")); currVal = 0; if (inputs [i].checked == true) { currVal = varVals [tmpLoca][domVal + 1]; } else { currVal = varVals [tmpLoca][domVal]; } totVals [tmpLoca] = currVal; } } // Process checkbox the values inputs = document.getElementsByTagName("input"); if (inputs != null && inputs.length > 0) { if (totVals == null) { totVals = new Array (varVals.length); // Set values to zero for results array for (var i = 0; i < totVals.length; i++ ) { totVals [i] = 0; } } var index = 0; for (var i = 0; i < inputs.length; i ++) { if (inputs [i].type == 'checkbox' && (inputs [i].id).indexOf ("occlusion_") == -1) { // Not an occlusion checkbox if ((inputs [i].getAttribute ("id")).indexOf ("calcification_") == 0) { // Is calcified tmpLoca = getResultsLblLoca (replaceAll(inputs [i].id, "calcification_", "")); if ((inputs [i]).checked == true) { totVals [tmpLoca] += 2; } } else if ((inputs [i]).checked == true) { if ((inputs [i].id).indexOf ("ostial_") > -1) { if ((inputs [i].id).indexOf ("pRCA") > -1 || (inputs [i].id).indexOf ("LM") > -1) { tmpLoca = getResultsLblLoca (replaceAll(inputs [i].id, "ostial_", "")); totVals [tmpLoca] += 1; } } else { tmpLoca = getResultsLblLoca ((inputs [i].id).substring (inputs [i].id.indexOf ("_") + 1)); totVals [tmpLoca] += 1; } } } } } showResults_syntax (totVals); return totVals; } /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ FOR TESTING +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ /** * Modifier function... * Description: Adds a DOM element to the Syntax webpage for the specified String ID * @author Stephan K Eisenbarth * @param trgtID String containing the ID of the element that was selected to be added to webpage */ function addOption (trgtID) { var outStr = "\n" + "\n" + "" + trgtID + "" + "\n" + "\n" + "NO\n" + " \n" + " YES\n" + "\n" + "\n" + "NO\n" + "\n" + "YES\n" + "\n" + "\n" + "NO\n" + "\n" + "YES\n" + "\n" + "\n" + "NO\n" + "\n" + "YES\n" + "\n" + "\n" + "NO\n" + "\n" + "YES\n" + "\n" + "\n"; var x = document.createElement("tr"); x.id="code_" + trgtID; x.innerHTML = outStr; var element = document.getElementById ("segArea"); element.appendChild (x); } /** * Modifier function... * Description: removes the specified String ID DOM object from the webpage * @author Stephan K Eisenbarth * @param trgtID String containing the ID of the element that was selected to be removed from webpage */ function removeOption (trgtID) { var element = document.getElementById ("code_" + trgtID); element.parentNode.removeChild(element); } /** * Modifier function... * Description: Selects the specified String ID DOM element * @author Stephan K Eisenbarth * @param trgtID String containing the ID of the element that was selected */ function selectItem (trgtID) { if (trgtID != null) { var x = document.getElementById ("svg_" + trgtID); if (x != null) { if (document.getElementById ("code_" + trgtID) == null) { // Item is being selected addOption (trgtID); x.style.fill = "red"; syntaxChanged = true; } else { // Item is being unselected removeOption (trgtID); x.style.fill = "#D3D3D3"; } } } } /** * Modifier function... * Description: Mouse over event on specified String target ID * @author Stephan K Eisenbarth * @param trgtID String containing the ID of the element that has the mouse over event */ function msOver (trgtID) { if (trgtID != null) { var x = document.getElementById ("svg_" + trgtID); if (document.getElementById ("code_" + trgtID) == null) { if (x != null) { // Green fill color (as is not selected already) x.style.fill = "#22aa22"; } } else { // Grey fill color (as is not selected already) x.style.fill = "#D3D3D3"; } } } /** * Modifier function... * Description: Mouse out event on specified String target ID * @author Stephan K Eisenbarth * @param trgtID String containing the ID of the element that has the mouse out event */ function msOut (trgtID) { if (trgtID != null) { var x = document.getElementById ("svg_" + trgtID); if (document.getElementById ("code_" + trgtID) == null) { if (x != null) { if (x.style.fill == "red") { // Red fill color (as is selected already) x.style.fill = "red"; } else { // Grey fill color (as is not selected already) x.style.fill = "#D3D3D3"; } } } else { // Red fill color (as is selected already) x.style.fill = "red"; } } } /*============================================================================================================= ====================================== RESULTS GRAPH CODE ================================================= =============================================================================================================*/ var padHeight = 270; // int height of graph var heighestPtY = 160; // int lowest Y point for bottom of graph line var heighestPtX = 650; // int difference in height between each graph line var yGap = 100; // int Gap between full lines (not half lines) var txtYGap = 28; // gap between bottom line and text var isMobile = false; // boolean for whether the client is a mobile device var fntSize = 16; // int font size var tirtMod=100; // modifier for where tertile line label is positioned in the Y-axis /** * Modifier Function... * @author Stephan K Eisenbarth * @date 1/15/2020 * Description: Function draws all of the bars on the graph, using test data */ function setDeviceDims () { var dimW = window.screen.width * window.devicePixelRatio var dimH = window.screen.height * window.devicePixelRatio if (dimW < 1281 || dimH < 801) { // Mobile device fntSize=22; heighestPtY=160; heighestPtX=250; txtYGap = 4; isMobile = true; } } /** * Modifier Function... * @author Stephan K Eisenbarth * @date 1/15/2020 * Description: Function sets the size of the graphpad based on mobile or computer device screen size */ function changePageHeight () { if (isMobile == false) { var x = document.getElementById ("graphPad"); x.style.height=(padHeight) + "px"; x.style.width="100%"; x = document.getElementById ("graphHolder"); x.style.height=(padHeight+10) + "px"; x.style.width="100%"; } else { var x = document.getElementById ("graphPad"); x.style.height=(50 + (padHeight*2)) + "px"; x.style.width=heighestPtX*2 + "px"; x = document.getElementById ("graphHolder"); x.style.height=padHeight + "px"; x.style.width=((heighestPtX*2)-30) + "px"; } } /** * Modifier Function... * @author Stephan K Eisenbarth * @date 1/15/2020 * Description: Loads the specified values into the bar graph * @param reach int containing the reach value to draw * @param effective int containing the effective value to draw * @param adoption int containing the adoption value to draw * @param implement int containing the implement value to draw * @param maintenance int containing the maintenance value to draw */ function loadVals (reach, effective, adoption, implement, maintenance) { drawReachLine (reach); drawEffectivenessLine (effective); drawAdoptionLine (adoption); drawImplementationLine (implement); drawMaintenanceLine (maintenance); } /** * Modifier Function... * @author Stephan K Eisenbarth * @date 1/15/2020 * Description: Returns a String containing the code to draw the tertile 1 line, with color and width based on the specified int * @param isTrgt int containing the tertile number to process, if it is 1 then this line will be drawn blue and thicker * @return outStr String containing the code to draw the tertile 1 line */ function drawTertile1Line (isTrgt) { var outStr = ""; var arr1 = [0.00265118,0.004734646,0.006440274,0.007704345,0.009221423,0.010360176,0.011309198,0.01225822,0.012891307,0.013397971,0.014285032,0.014728677,0.015172407,0.015933087,0.016376846,0.017201554,0.017582263,0.017836117,0.018407623,0.01872527,0.019805269,0.020059403,0.020504339,0.020822316,0.021076764,0.021394906,0.021967562,0.022794731,0.023303791,0.023558371,0.02432256,0.025086948,0.025469242,0.025915484,0.026616769,0.026999288,0.0273182,0.027573447,0.028211983,0.028850687,0.02968133,0.030128599,0.030575868,0.030767631,0.031087362,0.031343248,0.031471259,0.031663376,0.032239729,0.032688003,0.033008284,0.03313643,0.033456881,0.033905661,0.034033926,0.034290457,0.034546987,0.034803654,0.035060526,0.035124761,0.035317608,0.035831968,0.036153443,0.036410623,0.036603637,0.036796793,0.037183388,0.03737679,0.037957149,0.03840854,0.038601993,0.038989056,0.039118111,0.039376308,0.039634575,0.039892912,0.039957496,0.040086664,0.040280508,0.040797528,0.041056126,0.041508763,0.041702855,0.042091039,0.042285131,0.04241456,0.042544008,0.042738257,0.042867774,0.043321299,0.043774824,0.04422835,0.04461727,0.044941502,0.04539552,0.045590191,0.045784916,0.046044548,0.046498906,0.046628775,0.046628775,0.046823699,0.047213679,0.047538795,0.047798888,0.047863916,0.048384209,0.048514336,0.049035234,0.049360907,0.049686781,0.050143035,0.050664469,0.051120786,0.051446862,0.05170783,0.051903663,0.051968995,0.052361014,0.052491686,0.052557054,0.052753239,0.052884065,0.053473109,0.053669456,0.054258499,0.054389398,0.054651286,0.0549133,0.055371985,0.055503074,0.055634236,0.056027721,0.056224478,0.056486929,0.056618228,0.057077966,0.057472164,0.057735054,0.05812939,0.058655171,0.058852408,0.059181296,0.059378685,0.059378685,0.059510397,0.059707965,0.059905533,0.060169067,0.060300909,0.060498782,0.060564772,0.060696789,0.061026832,0.061092846,0.061422959,0.061555078,0.06188547,0.062083789,0.06241446,0.062811266,0.063075803,0.063406638,0.063671437,0.063870106,0.064068874,0.064400341,0.064798102,0.064996996,0.06552757,0.065726648,0.066124945,0.066124945,0.066324335,0.066656651,0.066789578,0.066989081,0.067055606,0.0673218,0.067654543,0.067920889,0.068120649,0.068187236,0.068387153,0.068520478,0.068853983,0.068920704,0.06912095,0.069321196,0.069454694,0.069654998,0.069788544,0.070322918,0.07052338,0.070657098,0.070924535,0.071058263,0.071192058,0.071258975,0.071660738,0.071794697,0.071995782,0.07239795,0.072800148,0.073135458,0.07326966,0.073336805,0.073471172,0.073605588,0.073672796,0.073807212,0.074076219,0.074278136,0.074480112,0.074749668,0.075288936,0.075625979,0.076030431,0.076300223,0.07636769,0.076570271,0.076637828,0.077043166,0.077313412,0.077516111,0.077651314,0.077854117,0.078057024,0.078259976,0.078395327,0.078869055,0.079072082,0.079342863,0.079478314,0.079613884,0.079749534,0.080020974,0.080292415,0.080631715,0.080835325,0.081310556,0.081378487,0.081718389,0.081922376,0.082194359,0.082602333,0.082806441,0.082942614,0.083146919,0.083215056,0.083419589,0.08369232,0.084237782,0.084442407,0.084647107,0.084647107,0.084920204,0.085261575,0.085602947,0.085739505,0.085876125,0.085944445,0.086081198,0.08614959,0.086560094,0.086970598,0.087244267,0.087449643,0.087792089,0.087860614,0.0881349,0.088546361,0.089163552,0.089300705,0.089506482,0.089712398,0.089849779,0.090055945,0.090124666,0.090468275,0.090880605,0.091086864,0.091155648,0.091499724,0.091775132,0.092050602,0.092119469,0.09239496,0.092670451,0.09273935,0.092877169,0.093152911,0.093359812,0.093704673,0.093842618,0.093980604,0.094118696,0.094394943,0.094671379,0.094740535,0.094878849,0.095017162,0.095363183,0.095501633,0.095570927,0.095640243,0.095917675,0.096195108,0.09647254,0.096749993,0.096958083,0.097513204,0.09806858,0.09813805,0.098276991,0.098415931,0.098485433,0.098624492,0.098763593,0.09890278,0.099181326,0.099320599,0.099459873,0.099599146,0.099808152,0.099877843,0.100017256,0.100296212,0.100505446,0.100644946,0.100784467,0.100854293,0.101063884,0.101273573,0.101343485,0.101762961,0.101902786,0.102042666,0.102182578,0.102392561,0.10246261,0.102532714,0.102602823,0.103023478,0.103023478,0.103163806,0.10337443,0.1035149,0.10379604,0.104147465,0.10449889,0.104780141,0.104850503,0.10506169,0.105273009,0.105625208,0.10590699,0.106118393,0.106259395,0.106329946,0.106612306,0.10675362,0.107177596,0.107389584,0.107601639,0.107813828,0.107884592,0.107955389,0.10809704,0.108451166,0.108592862,0.108734625,0.108876433,0.109018321,0.109160276,0.109373209,0.109586141,0.109941228,0.110154432,0.110296694,0.110510223,0.11086636,0.111008815,0.111080043,0.111293897,0.111436569,0.111507951,0.111579356,0.111722166,0.111936381,0.112150596,0.112150596,0.112365087,0.112508116,0.112722779,0.112865958,0.113152315,0.113295505,0.113438776,0.113868832,0.113940567,0.114227619,0.114514858,0.114802097,0.114945716,0.115089417,0.115305126,0.11552094,0.115592925,0.115881123,0.116025222,0.116313584,0.11667439,0.116818784,0.116963224,0.117252176,0.117541128,0.117757842,0.118046888,0.118480671,0.118480671,0.118625444,0.11869786,0.119059939,0.119349603,0.119639529,0.1197846,0.119857159,0.120074926,0.120292729,0.120946193,0.120946193,0.121091515,0.121164218,0.121309637,0.121455127,0.121673508,0.121964682,0.122255856,0.122328722,0.12262038,0.122693325,0.123131139,0.123423234,0.123788352,0.123861382,0.123934442,0.124153733,0.124153733,0.124373317,0.124446517,0.124666119,0.12473932,0.125105354,0.125325048,0.125544852,0.125544852,0.12583822,0.125984904,0.126204929,0.126498494,0.126571897,0.126645356,0.126865808,0.126939341,0.127159941,0.127454074,0.127527626,0.127821957,0.127895584,0.128042911,0.128190313,0.128485117,0.128706221,0.128779953,0.129001356,0.129370548,0.129739928,0.130183486,0.130553149,0.130774946,0.130922925,0.131218957,0.131589282,0.131663378,0.131885668,0.132182079,0.132256182,0.132330329,0.132330329,0.132701381,0.132775624,0.132849898,0.132924178,0.132998478,0.133072847,0.133147275,0.13329618,0.13359417,0.133966657,0.134115652,0.134339299,0.134339299,0.134413912,0.134712467,0.135011099,0.135309732,0.135608416,0.1356831,0.135832532,0.135832532,0.136206404,0.136505813,0.137029823,0.137404409,0.137629258,0.137779248,0.13800441,0.138229749,0.138455088,0.1385302,0.13860534,0.138830875,0.138981337,0.139207109,0.13935765,0.139734002,0.140035084,0.140336482,0.140487287,0.140638145,0.140713647,0.140864757,0.141166976,0.141393641,0.141469249,0.141620626,0.141847891,0.142075296,0.142227007,0.142530455,0.142606324,0.142909961,0.142985937,0.14306194,0.143366089,0.143746511,0.144279101,0.144735607,0.145040107,0.145497142,0.145725741,0.146183143,0.146411905,0.146411905,0.146717085,0.146869743,0.146946114,0.146946114,0.147022607,0.147252087,0.147405087,0.147481622,0.14763476,0.147941311,0.148094655,0.148555103,0.148785327,0.14893881,0.149092376,0.149169172,0.149246011,0.149476713,0.149707499,0.149861356,0.149938292,0.150092261,0.150246271,0.150477434,0.150631598,0.150863034,0.151017324,0.151171615,0.151171615,0.151326087,0.151557987,0.151790034,0.152022081,0.152408827,0.152486176,0.152640902,0.152950553,0.153105421,0.153570194,0.153647692,0.153647692,0.153880334,0.154035528,0.154035528,0.154190836,0.154501539,0.154501539,0.154579257,0.154734794,0.15489046,0.154968336,0.155124174,0.155280012,0.155357931,0.155669837,0.155981858,0.155981858,0.156216199,0.156528683,0.156763046,0.156919288,0.157075631,0.157310298,0.157388542,0.157623405,0.157780097,0.158015223,0.158093642,0.158564595,0.158564595,0.158800445,0.158957679,0.159193529,0.159350763,0.159586745,0.159586745,0.159822971,0.160216977,0.160532181,0.160847385,0.161005017,0.16132031,0.161478075,0.161557002,0.161557002,0.161794096,0.16211043,0.162268792,0.162348002,0.162506453,0.162585746,0.162744333,0.163061535,0.163378948,0.163378948,0.163696783,0.164014859,0.164333057,0.164651255,0.164889903,0.165049078,0.165208298,0.165208298,0.165288,0.165447539,0.165527317,0.165607102,0.16568691,0.165846526,0.166006173,0.166245803,0.166405633,0.166645402,0.166805247,0.166965154,0.167045146,0.167205268,0.167445613,0.167606028,0.167766458,0.167846674,0.167926928,0.168007244,0.168007244,0.168168,0.168489605,0.168650407,0.168730809,0.168972223,0.169052772,0.169052772,0.169133408,0.169214121,0.169456286,0.16969845,0.169779203,0.169860011,0.17002169,0.170183432,0.170264397,0.170507294,0.170507294,0.170588339,0.17091274,0.171156302,0.171400128,0.171644049,0.171806663,0.17188797,0.172132131,0.172213582,0.172539642,0.172702753,0.172784308,0.173028974,0.17311053,0.173192101,0.173355405,0.173437114,0.173682312,0.174173048,0.174336626,0.174418416,0.174664003,0.17482789,0.174909866,0.175073933,0.175238081,0.175648451,0.175812599,0.176058968,0.176058968,0.176141189,0.176388026,0.176470355,0.176717339,0.176881996,0.176964374,0.177046793,0.17721173,0.177707037,0.177872289,0.178120166,0.178120166,0.178285501,0.178450836,0.178781639,0.178947041,0.179029741,0.179195143,0.179360678,0.179692149,0.179858002,0.180106932,0.180190001,0.180356156,0.180439234,0.180771747,0.181021283,0.181104513,0.181104513,0.181271175,0.1816045,0.181687831,0.181687831,0.18193813,0.182188583,0.182272135,0.182439394,0.182606653,0.182690282,0.182773972,0.182857721,0.182857721,0.182857721,0.183025529,0.183277242,0.183361146,0.183445127,0.183445127,0.183529204,0.18369741,0.1837816,0.183949979,0.184286737,0.184286737,0.184455378,0.184708443,0.184708443,0.184961823,0.185046283,0.185468626,0.185553138,0.185637686,0.185722321,0.18597636,0.186145877,0.186230636,0.186315395,0.186485054,0.186654784,0.186824567,0.187164346,0.187419313,0.187504302,0.187674369,0.187929657,0.188014771,0.188185052,0.188270255,0.188440661,0.188611067,0.188781473,0.188781473,0.188866739,0.189037414,0.189122814,0.189293633,0.189293633,0.189379142,0.189464723,0.18955034,0.189807272,0.189978705,0.190150156,0.190235927,0.190493349,0.19057922,0.190751072,0.190923051,0.191009041,0.191009041,0.191095094,0.191439603,0.191698287,0.191870872,0.192129749,0.192302352,0.192475067,0.192647855,0.192647855,0.192820883,0.193340025,0.193426549,0.194119258,0.194205875,0.194379201,0.19455264,0.194726096,0.194899572,0.194986319,0.195159982,0.195507608,0.195681514,0.195768533,0.196029817,0.196029817,0.196116921,0.196116921,0.19637863,0.196640453,0.197164383,0.197251781,0.197426596,0.197426596,0.197776377,0.197951344,0.198213852,0.198301412,0.198476646,0.1986519,0.198827154,0.199090207,0.19952911,0.199616929,0.199704845,0.199968794,0.200144761,0.200144761,0.200320901,0.200585229,0.200849644,0.200937821,0.201026047,0.201290754,0.201643853,0.201820578,0.201997421,0.20217444,0.202440175,0.202794528,0.202794528,0.202971842,0.203060588,0.203149463,0.203238417,0.203505488,0.203594512,0.203861583,0.204128773,0.20430704,0.204663893,0.204842439,0.205021106,0.20511044,0.205199773,0.205378561,0.205467975,0.205646903,0.205915569,0.206363799,0.206543091,0.206722383,0.206901817,0.206901817,0.207081515,0.207261295,0.207621099,0.208070854,0.208160805,0.208340891,0.208340891,0.208340891,0.208431017,0.208521203,0.20861139,0.208881981,0.20933312,0.209513679,0.209604031,0.209694414,0.209784827,0.210146523,0.210236947,0.210417857,0.210417857,0.210689534,0.210780176,0.21105232,0.211143035,0.211505895,0.211596631,0.211687429,0.211687429,0.211960107,0.212051021,0.212141935,0.212323762,0.2125058,0.212687963,0.212779119,0.212870328,0.213144175,0.213235469,0.213418055,0.213783652,0.213783652,0.213966685,0.214149802,0.214149802,0.214241436,0.21433307,0.214516423,0.214516423,0.214608238,0.214700118,0.214792106,0.215068102,0.215160101,0.215252218,0.215344389,0.215344389,0.215806386,0.215991185,0.216360783,0.216545625,0.216545625,0.21663821,0.21663821,0.216823687,0.217101935,0.217194696,0.217380327,0.217473208,0.218030894,0.218123897,0.218309992,0.218496086,0.218775228,0.218961367,0.218961367,0.219240775,0.219240775,0.219334078,0.219520684,0.21970729,0.219800604,0.219893918,0.219893918,0.220174129,0.220454608,0.220641617,0.2211097,0.221578008,0.221578008,0.221578008,0.221671918,0.221953683,0.222141549,0.222517462,0.222517462,0.222611588,0.22270576,0.222894309,0.223082858,0.223271522,0.223271522,0.223649584,0.223744134,0.223838777,0.224028061,0.224122703,0.224122703,0.224122703,0.224406977,0.224501793,0.22459662,0.22459662,0.224881207,0.224976173,0.225166317,0.225166317,0.225261528,0.22535674,0.225451964,0.225451964,0.225547281,0.225833479,0.226215077,0.226406017,0.226692427,0.226883509,0.227170238,0.227265897,0.22745731,0.227744679,0.227936258,0.228319463,0.228511185,0.228799054,0.228895058,0.22908721,0.229375689,0.229471849,0.229471849,0.229568081,0.229760689,0.229857017,0.23014611,0.230242486,0.230435263,0.230435263,0.230724754,0.2308213,0.230917942,0.231111228,0.231304537,0.231497847,0.231497847,0.231981912,0.232078798,0.232078798,0.232369825,0.232466833,0.23275786,0.232854942,0.232854942,0.232952123,0.23324385,0.233438458,0.234022283,0.234314195,0.234801334,0.234996314,0.234996314,0.235191593,0.235484735,0.235680188,0.235875642,0.236071245,0.236266923,0.236658581,0.237050541,0.237246722,0.237246722,0.237442954,0.237835469,0.238031827,0.238130082,0.2382284,0.23832682,0.238425241,0.238425241,0.238523737,0.238622284,0.238918157,0.239115661,0.239411917,0.239708173,0.240004429,0.240300916,0.240300916,0.240498832,0.240597841,0.240696941,0.240796041,0.240796041,0.241093651,0.241391612,0.241391612,0.241491076,0.24159067,0.241989046,0.24208864,0.242287881,0.242287881,0.242487358,0.242587241,0.242687203,0.242787165,0.242787165,0.242887286,0.243087633,0.243087633,0.243288379,0.243589498,0.243689951,0.243790524,0.243991724,0.244092417,0.244495407,0.244797689,0.245100375,0.24530222,0.24530222,0.24530222,0.245504797,0.245606085,0.245707441,0.246011632,0.246316192,0.246519533,0.246621286,0.246723039,0.246824792,0.246824792,0.246926724,0.247232685,0.247334769,0.24743695,0.247641312,0.247641312,0.247641312,0.247846147,0.24815386,0.248256557,0.248359255,0.248359255,0.248770268,0.248770268,0.248873148,0.249182042,0.249388226,0.249491317,0.249594409,0.249697572,0.250007486,0.250110834,0.250214295,0.250317943,0.250939827,0.25125077,0.251354518,0.251354518,0.251562331,0.251562331,0.251666468,0.251978881,0.252291599,0.252500252,0.252709109,0.252709109,0.252918259,0.253022863,0.253127555,0.253127555,0.253232423,0.253232423,0.25333738,0.253547294,0.25365225,0.253967342,0.254282479,0.254492806,0.25459803,0.254808774,0.25512489,0.255230307,0.25544132,0.255547021,0.255547021,0.255758935,0.255970848,0.256182762,0.25660671,0.256924898,0.257031082,0.257137297,0.257456487,0.257562884,0.257988471,0.258094914,0.258307952,0.258627969,0.258627969,0.25873481,0.258948523,0.259055504,0.259269557,0.259376645,0.259483888,0.259698593,0.259805945,0.260020775,0.260235791,0.260666137,0.260773833,0.260881623,0.261205041,0.261312958,0.261420953,0.261420953,0.26152909,0.26152909,0.261853645,0.261853645,0.262286957,0.262286957,0.262504187,0.262612898,0.262612898,0.262721786,0.262721786,0.262939658,0.263157658,0.263266772,0.263703743,0.263922455,0.264141168,0.264141168,0.264141168,0.264470019,0.26457975,0.26468958,0.264799574,0.264799574,0.26501976,0.265129952,0.265350567,0.265350567,0.265681938,0.265902852,0.266123766,0.266123766,0.266234373,0.266345047,0.266455837,0.266566661,0.266899133,0.267342429,0.267453421,0.267675607,0.267786767,0.268009223,0.268120502,0.268343059,0.268676895,0.268899723,0.269011172,0.269234238,0.269345925,0.269457646,0.269569384,0.269792859,0.270128535,0.270464623,0.270688992,0.270688992,0.270801384,0.27113856,0.271363378,0.271363378,0.271475996,0.271588718,0.272152853,0.272265786,0.272378718,0.272604617,0.272604617,0.273057118,0.273283474,0.273396723,0.27351006,0.274076744,0.274190081,0.274530411,0.274757511,0.274871149,0.275098641,0.275326132,0.275439878,0.275667477,0.275895397,0.276009502,0.276352408,0.276466783,0.276695532,0.276809906,0.277038692,0.277038692,0.277153393,0.277153393,0.277268313,0.277498189,0.277613219,0.277843498,0.278188918,0.278188918,0.278188918,0.278419418,0.278765389,0.278880768,0.278996147,0.278996147,0.279111656,0.279342673,0.279573727,0.279805114,0.279805114,0.280036875,0.280036875,0.280153073,0.280385469,0.280618053,0.280734533,0.280851164,0.280967928,0.281084825,0.281435801,0.281435801,0.281435801,0.281435801,0.28167101,0.281788614,0.281788614,0.281788614,0.282024287,0.282142142,0.282377853,0.282377853,0.282614146,0.282614146,0.282614146,0.282732586,0.283087903,0.283087903,0.283443455,0.283443455,0.283562386,0.283681494,0.283800623,0.284038879,0.284277136,0.28451567,0.284754404,0.284993417,0.285113043,0.28523283,0.285352616,0.285832165,0.286072141,0.28619223,0.28619223,0.286433015,0.2866738,0.287034978,0.287276089,0.287396746,0.287517506,0.287517506,0.287638512,0.288001529,0.288122535,0.288364835,0.288728719,0.288728719,0.288850366,0.289215308,0.289336955,0.289336955,0.28970246,0.289824316,0.289946255,0.290190596,0.290434978,0.29055717,0.29055717,0.290679635,0.290679635,0.290679635]; var cnt = 0; var fillClr = "blue"; var rad = "2"; if (isTrgt != 1) { fillClr="grey"; rad = "1"; } for (var i = 0; i < arr1.length; i++) { outStr += ""; cnt++; } return outStr; } /** * Modifier Function... * @author Stephan K Eisenbarth * @date 1/15/2020 * Description: Returns a String containing the code to draw the tertile 2 line, with color and width based on the specified int * @param isTrgt int containing the tertile number to process, if it is 2 then this line will be drawn blue and thicker * @return outStr String containing the code to draw the tertile 2 line */ function drawTertile2Line (isTrgt) { var outStr = ""; var arr2 = [0.004981625,0.009963659,0.013804494,0.018383083,0.021982045,0.025009711,0.027791891,0.029673954,0.031393229,0.03262149,0.034096027,0.035489,0.037620335,0.039587721,0.040817443,0.041965575,0.043114002,0.044837529,0.045986943,0.046890287,0.048861218,0.049682511,0.050339715,0.050915117,0.051655433,0.052889828,0.05371283,0.055934934,0.056922536,0.057828233,0.058651953,0.059970252,0.060464918,0.061289506,0.062773894,0.064010884,0.06491841,0.065743724,0.066404151,0.067064812,0.067725765,0.06913029,0.069791243,0.070783025,0.071113795,0.072106725,0.072934463,0.073100084,0.073762569,0.07417666,0.07450808,0.074922616,0.07517156,0.075337657,0.076085161,0.076915721,0.077331038,0.077663412,0.078162332,0.078411904,0.079160892,0.079493896,0.080243155,0.080576159,0.080742706,0.081075952,0.081576364,0.082243702,0.082995208,0.083579713,0.084164218,0.084247757,0.084749218,0.085000064,0.085585583,0.085836566,0.086171241,0.086673298,0.087008157,0.087343108,0.087343108,0.087678428,0.088265507,0.088936517,0.089272022,0.089607681,0.089775557,0.090111557,0.090447558,0.091203768,0.091959977,0.092800211,0.093304724,0.093809378,0.093977675,0.094567094,0.094819938,0.095072782,0.095747094,0.096337337,0.097012027,0.097433708,0.097771116,0.098108714,0.098783908,0.098868308,0.099290581,0.09962859,0.099966758,0.100474152,0.100897299,0.101658964,0.102505258,0.102759266,0.103352175,0.103776001,0.104284738,0.104708765,0.105132792,0.105641673,0.105896235,0.106235746,0.106999865,0.107254741,0.107594608,0.107934475,0.108444323,0.108699369,0.108869465,0.109039707,0.109550676,0.10989142,0.110317391,0.110998944,0.111339819,0.111510322,0.11185136,0.112192463,0.112533829,0.112875228,0.113387326,0.113814157,0.113985004,0.114326798,0.115181365,0.115694304,0.11672018,0.117404098,0.117831671,0.118344908,0.118687132,0.11911512,0.1198003,0.120399891,0.120913826,0.121256684,0.121685506,0.121942875,0.122028682,0.122114505,0.122715326,0.123144526,0.123488054,0.12383175,0.124175751,0.124347784,0.124605911,0.12495008,0.125208207,0.12581074,0.125982943,0.126585892,0.126930638,0.12753442,0.127879439,0.128051965,0.128397154,0.128742617,0.129001894,0.1293477,0.129953281,0.130299327,0.130645373,0.130905089,0.131078319,0.13133819,0.13133819,0.131685134,0.132205551,0.132465759,0.132639318,0.133073432,0.133160281,0.133420959,0.133681715,0.134029389,0.134464026,0.134811911,0.135160075,0.135421435,0.135595762,0.135683014,0.136381029,0.136991792,0.137079088,0.137341162,0.138040166,0.138739525,0.139176802,0.139701534,0.139963927,0.140401604,0.140751889,0.141102316,0.14127762,0.141540709,0.142417672,0.14294385,0.143119386,0.143119386,0.143383015,0.143734736,0.144262318,0.14487783,0.145053708,0.145229714,0.145670045,0.145758202,0.146022727,0.146287417,0.146640337,0.147169716,0.147257992,0.147434598,0.147434598,0.147699919,0.148142396,0.148673425,0.149115948,0.149470151,0.149647326,0.149824575,0.150179184,0.150533979,0.151332349,0.151421057,0.151776074,0.152042448,0.152131267,0.152397864,0.152931451,0.1536429,0.153998811,0.154532734,0.154977998,0.155512315,0.15569042,0.155868526,0.156224737,0.156402937,0.156492065,0.156937894,0.157116282,0.157383977,0.157830136,0.15809786,0.158187196,0.158365982,0.158723667,0.158902605,0.159171012,0.159439419,0.159707854,0.159976404,0.160424225,0.160693062,0.161230906,0.16158947,0.161768751,0.162217003,0.162665399,0.16329349,0.163472983,0.163742338,0.163922043,0.164191601,0.164281453,0.164730909,0.16500067,0.165180588,0.165270595,0.16590092,0.166441198,0.16662129,0.166711415,0.166981816,0.166981816,0.167072068,0.167433229,0.168065261,0.168426422,0.168878168,0.168968546,0.169239771,0.169239771,0.169601758,0.169963784,0.170235304,0.170235304,0.170416377,0.170778719,0.171050684,0.171141429,0.171867383,0.172048872,0.172139676,0.172412267,0.172685008,0.173140077,0.173413179,0.17368631,0.174050485,0.174141529,0.174414751,0.174596939,0.174870372,0.174961607,0.175144077,0.175509138,0.175783056,0.175874422,0.175965839,0.176331589,0.176697379,0.177154668,0.177337665,0.177520784,0.177520784,0.177612384,0.177887277,0.178253801,0.178437063,0.178620447,0.178803893,0.179262765,0.179354559,0.179721903,0.180089288,0.18027298,0.180640529,0.181100172,0.18128405,0.18137603,0.181927974,0.182111955,0.182480165,0.182480165,0.182756604,0.182848781,0.18303326,0.183586761,0.183955761,0.184324886,0.184509554,0.184971431,0.185063838,0.185341247,0.185711126,0.185711126,0.185896234,0.186266702,0.186452063,0.186544828,0.186637635,0.186916056,0.187194478,0.187380199,0.187844606,0.187844606,0.188030645,0.188495957,0.18886825,0.18886825,0.189054524,0.189147682,0.189240884,0.189613861,0.190080083,0.190359815,0.190732793,0.191479091,0.191665752,0.192039375,0.192226316,0.192506793,0.192880763,0.192974255,0.193254894,0.193629298,0.193816521,0.194097388,0.194191044,0.194472009,0.194565664,0.194753083,0.195128228,0.195222057,0.195315975,0.195597924,0.195879874,0.196161856,0.196349933,0.196444026,0.197008784,0.197385598,0.197479879,0.198139846,0.198422722,0.198705899,0.199178137,0.199650654,0.199745202,0.200123707,0.20031296,0.200596839,0.200691488,0.200691488,0.200786215,0.201165349,0.201449834,0.201734353,0.202208551,0.202588452,0.202873479,0.203158711,0.203444146,0.203634505,0.204015313,0.204396122,0.204681899,0.204872509,0.204967836,0.205349238,0.20554003,0.20554003,0.205635438,0.206208366,0.2063039,0.206590605,0.207164362,0.207259988,0.207642492,0.208024996,0.208120634,0.208407616,0.2085033,0.208599053,0.208886417,0.209077993,0.209173793,0.209365532,0.209557364,0.209653326,0.20974937,0.210037642,0.210422006,0.21090246,0.21090246,0.211479637,0.211479637,0.211575951,0.211768719,0.212154257,0.21244341,0.212539841,0.212732823,0.213022508,0.213119105,0.213215797,0.213602566,0.213602566,0.213699329,0.213796188,0.213990121,0.214184174,0.214475324,0.214766475,0.215349064,0.215543405,0.21564066,0.215737987,0.215835363,0.216030113,0.216711742,0.216711742,0.21700405,0.217101583,0.217394401,0.217589638,0.217784874,0.217882493,0.218273209,0.218370937,0.21856654,0.218957942,0.219055866,0.219349638,0.219447562,0.219937367,0.220231397,0.220329457,0.220427602,0.220918393,0.221212868,0.221507343,0.221998505,0.222293277,0.222391572,0.22258826,0.222686654,0.222883443,0.222981837,0.223277281,0.223474394,0.223671682,0.224165403,0.224363068,0.224659566,0.224956063,0.225450351,0.225450351,0.225549322,0.226143606,0.226540151,0.226837559,0.227135043,0.227432681,0.227631208,0.227829888,0.227929253,0.228526061,0.228923933,0.229421659,0.229819993,0.229919616,0.230019264,0.230318363,0.230517762,0.230717162,0.230816939,0.231116504,0.231316396,0.231616506,0.232316856,0.232617006,0.232817288,0.232917482,0.232917482,0.232917482,0.233017859,0.233419368,0.233519745,0.233519745,0.233720789,0.233821404,0.23422402,0.23452622,0.234727687,0.234828421,0.234929247,0.234929247,0.235131166,0.235232246,0.235636778,0.235737911,0.23594023,0.23624383,0.23624383,0.236446498,0.236649248,0.236851997,0.237156121,0.237460447,0.237460447,0.237968535,0.238273429,0.238476692,0.238781586,0.239391374,0.239900074,0.240307252,0.240510923,0.240918538,0.241530043,0.241530043,0.241733906,0.241835892,0.242040056,0.24224433,0.242346578,0.242448908,0.242653569,0.242960559,0.243062931,0.243165386,0.243165386,0.243473418,0.243678912,0.244089956,0.244089956,0.244398743,0.24470774,0.244913935,0.244913935,0.245120158,0.24522327,0.245429634,0.245636224,0.24573959,0.245843027,0.245946549,0.246153592,0.246464158,0.246567808,0.246567808,0.246982979,0.247086887,0.247502746,0.247710676,0.247814655,0.248022613,0.248022613,0.248334767,0.248334767,0.248438875,0.248959419,0.249271745,0.249271745,0.249584115,0.249792506,0.25020952,0.250418084,0.250626678,0.250835272,0.251356902,0.251461315,0.251670317,0.251879464,0.252402772,0.252612095,0.252716771,0.252926211,0.25303102,0.253345798,0.253450798,0.253870856,0.254080886,0.254291033,0.254606299,0.255026891,0.255132113,0.255447914,0.255763714,0.255974307,0.256395553,0.256711846,0.256922888,0.25723954,0.257450641,0.257661923,0.258084847,0.258508073,0.258613985,0.258931904,0.259037877,0.259249853,0.259249853,0.259355932,0.259462011,0.259780385,0.260098987,0.260205203,0.26031142,0.26031142,0.260630756,0.260843769,0.261056905,0.261270349,0.261377071,0.261803959,0.261803959,0.261803959,0.262231899,0.262660087,0.262981368,0.263088461,0.263195555,0.263731179,0.264159866,0.2642671,0.264481662,0.264803598,0.265018223,0.265769519,0.265876862,0.265984284,0.265984284,0.266199318,0.266306834,0.2667369,0.266951934,0.267167156,0.267490227,0.267921115,0.268244519,0.268676106,0.269323486,0.269431383,0.269647368,0.269755392,0.269863449,0.270079689,0.270404243,0.270512427,0.270945165,0.271053397,0.271270023,0.271270023,0.27148694,0.271921354,0.272029958,0.272029958,0.272247262,0.27257356,0.272900053,0.273335638,0.273771615,0.273989603,0.274207755,0.274862704,0.275081184,0.275299731,0.275409004,0.275409004,0.275409004,0.275955865,0.276174775,0.276393751,0.276722414,0.276831985,0.277051359,0.277051359,0.277271034,0.278041182,0.278041182,0.278371548,0.278481669,0.278702081,0.278922628,0.279032969,0.279474602,0.27980598,0.280247817,0.280358276,0.28069001,0.280911336,0.281022102,0.281243701,0.281465573,0.281798382,0.282020461,0.282353733,0.282909359,0.283131781,0.283243131,0.28335448,0.28346583,0.28346583,0.28346583,0.283577457,0.283689101,0.283800868,0.283912634,0.284024401,0.284360067,0.284584159,0.284696241,0.284920544,0.285481567,0.285593771,0.285930385,0.286154935,0.286379591,0.286379591,0.286604495,0.286717072,0.287167376,0.287505105,0.287505105,0.287617788,0.288068663,0.288181471,0.288294297,0.288632775,0.288858426,0.288858426,0.288858426,0.288971467,0.288971467,0.289084689,0.289197928,0.289311203,0.289311203,0.289311203,0.289538151,0.289878737,0.289992284,0.290105921,0.290219686,0.29033347,0.290561255,0.290789151,0.291131269,0.291473663,0.291702109,0.291930777,0.292273944,0.292502723,0.292960353,0.293074817,0.293074817,0.293304115,0.293648285,0.293763064,0.293877843,0.293992622,0.29410742,0.294222274,0.294337259,0.294452263,0.294567286,0.294912353,0.295372443,0.295372443,0.295487634,0.295487634,0.295487634,0.295603034,0.295949231,0.296295429,0.296410885,0.296641911,0.296988564,0.297219817,0.297682401,0.297913731,0.298145175,0.298260993,0.298260993,0.298260993,0.298841134,0.299073191,0.299189219,0.299305343,0.299770226,0.300002861,0.300002861,0.300352219,0.300701577,0.300701577,0.300701577,0.301167698,0.301284365,0.301751264,0.301868087,0.302101732,0.302335573,0.302335573,0.302452611,0.303038392,0.303155627,0.303390097,0.303507332,0.303624645,0.303624645,0.303859669,0.304329796,0.304800002,0.305035145,0.305270288,0.305387979,0.30550577,0.305977253,0.306095224,0.306567509,0.30668558,0.30668558,0.306803832,0.306922226,0.306922226,0.306922226,0.307159582,0.307396937,0.307634292,0.307634292,0.307753194,0.307872178,0.308229374,0.308348584,0.308587043,0.308706273,0.308825585,0.308825585,0.309064456,0.309303534,0.309542695,0.309781856,0.310021017,0.310021017,0.31026051,0.31038036,0.310500231,0.310620186,0.310740141,0.310740141,0.310860221,0.310980469,0.311221048,0.311221048,0.311461712,0.311943123,0.311943123,0.311943123,0.311943123,0.311943123,0.312063771,0.312425779,0.312908457,0.313270656,0.313632982,0.313753821,0.313753821,0.314238031,0.314480136,0.314480136,0.31460136,0.314722626,0.314722626,0.314965503,0.315208811,0.31545212,0.315695428,0.315817212,0.315817212,0.316183281,0.316427501,0.316794225,0.31740554,0.317650066,0.317772438,0.318017404,0.318262721,0.318630896,0.318999071,0.319489971,0.319612696,0.320227207,0.320227207,0.320350243,0.320596404,0.321458748,0.321581962,0.321828615,0.321828615,0.321828615,0.321828615,0.322199876,0.322694892,0.322694892,0.323066289,0.323190088,0.323313933,0.323313933,0.323437913,0.32368592,0.32368592,0.32368592,0.323809969,0.323934063,0.324058294,0.324058294,0.324431399,0.324680228,0.324804733,0.325054021,0.325178849,0.325303747,0.325428644,0.325428644,0.325553773,0.326179884,0.326430468,0.3265559,0.326932336,0.327183293,0.327183293,0.327183293,0.327183293,0.327309194,0.327561327,0.32781346,0.327939527,0.328191896,0.328191896,0.328318176,0.328444551,0.328571069,0.328824104,0.328950645,0.328950645,0.329077378,0.32945772,0.329711424,0.329965418,0.330219459,0.330219459,0.33047379,0.330728315,0.330728315,0.330855698,0.330983081,0.331110464,0.331110464,0.331365522,0.331493124,0.331748475,0.331876174,0.332131671,0.332259419,0.332515259,0.332515259,0.33302792,0.333156159,0.333541395,0.333669807,0.333798393,0.334055713,0.334055713,0.334055713,0.334442515,0.334829317,0.335087235,0.335345203,0.335345203,0.335991001,0.336378479,0.336636949,0.336895469,0.336895469,0.337154393,0.337413469,0.337413469,0.337413469,0.33754321,0.33754321,0.33754321,0.337933963,0.338064214,0.338064214,0.338194542,0.338324896,0.338455327,0.338585886,0.338716549,0.338716549,0.338847418,0.338847418,0.338978547,0.339241066,0.339503584,0.339634843,0.339766181,0.34002896,0.340160403,0.340423392,0.340555096,0.340686801,0.340818532,0.340950315,0.341082125,0.341082125,0.341214094,0.341346062,0.34147803,0.34147803,0.341610104,0.341610104,0.341610104,0.341874677,0.34213925,0.34213925,0.342271643,0.342271643,0.342404196,0.342404196,0.342802337,0.342935051,0.343067925,0.343200961,0.343467249,0.343600474,0.343733808,0.343867141,0.344133807,0.344133807,0.344400908,0.34480205,0.34480205,0.344935955,0.345069887,0.345069887,0.34520393,0.345338219,0.345472564,0.345741695,0.345876427,0.346415466,0.346415466,0.346550365,0.346550365,0.346685459,0.346685459,0.346820749,0.347091328,0.347226758,0.347633555,0.347769295,0.3481766,0.348448363,0.348856007,0.348991889,0.349127941,0.349672489,0.350081329,0.350081329,0.350354691,0.350628053,0.350764735,0.350764735,0.351038327,0.351175239,0.351449236,0.351449236,0.351586466,0.351861276,0.352136202,0.352548942,0.352824277,0.352961945,0.352961945,0.352961945,0.353238575,0.353377098,0.353377098,0.353377098,0.353515798,0.353654708,0.353793737,0.354072094,0.354350631,0.354629229,0.354768648,0.354768648,0.354768648,0.355047969,0.355467131,0.355746634,0.356026319,0.356166222,0.356306246,0.356446332,0.356586418,0.356586418,0.356726534,0.356726534,0.356866833,0.356866833,0.357007256,0.35742889,0.35799107,0.35799107,0.358272344,0.358413074,0.358553865,0.358553865,0.358836254,0.358977448,0.359118674,0.359824801,0.359824801,0.360532177,0.360673653,0.360815284,0.360815284,0.360815284,0.360815284,0.360815284,0.360815284,0.360957642,0.361100222,0.361527961,0.361527961,0.361813375,0.361813375,0.362098981,0.362241848,0.362670833,0.362813829,0.362956824,0.362956824,0.363099979,0.363099979,0.363099979,0.36324349,0.363387001,0.363674022,0.364104942,0.364392353,0.364392353,0.364680479,0.364680479,0.364824575,0.365112768,0.36525706,0.365690332,0.365834986,0.366269147,0.366414199,0.366414199,0.366559417,0.366559417,0.366704969,0.367287845,0.367433564,0.367579283,0.367871057,0.368017012,0.368163,0.368163,0.368747493,0.369185863,0.369332156,0.369478618,0.369771679,0.369918381,0.370212193,0.370506006,0.370506006,0.370653188,0.370653188,0.370948171,0.371243223,0.371390784,0.371390784,0.37153838,0.371686114,0.371833987,0.371833987,0.371833987,0.371833987,0.372130712,0.37227925,0.372427928,0.372427928,0.372576854,0.372725779,0.372725779,0.372725779,0.372874846,0.372874846,0.372874846,0.373173905,0.373323434,0.373472998,0.373772342,0.373772342,0.373922409,0.373922409,0.374072656,0.374373221,0.374523504,0.374824213,0.374974605,0.374974605,0.375426757,0.375577474,0.375878982,0.375878982,0.375878982,0.375878982,0.376030028,0.376181074,0.376332119,0.376332119,0.376332119,0.376483716,0.376635497,0.377091284,0.37724325,0.377547182,0.377699222,0.3780036,0.378156013,0.378461287,0.378919875,0.379072737,0.379225599,0.379225599,0.379378537,0.379531626,0.379684866,0.379838106,0.380144586,0.380604305,0.380604305,0.380757735,0.381218024,0.381218024,0.381678885,0.381832543,0.382140012,0.382140012,0.382601561,0.382601561,0.382601561,0.382910029,0.382910029,0.38321896,0.383373464,0.383373464,0.383373464,0.383528513,0.383528513,0.383683795,0.38399436,0.38399436,0.38399436,0.384149917,0.384149917,0.38461777,0.384773721,0.384773721,0.385086098,0.385398713,0.385398713,0.385711965,0.386025217,0.38633879,0.386495736,0.386495736,0.386653045,0.386653045,0.386653045,0.386653045,0.38681088,0.386968878,0.387126998,0.387601358,0.387601358,0.387601358,0.387601358,0.387759928,0.388077316,0.388236174,0.388712749,0.388712749,0.389030549,0.389030549,0.389030549,0.389190154,0.389190154,0.389349885,0.389509783,0.389990484,0.390150717,0.390150717,0.390471606,0.390471606,0.390471606,0.390793342,0.391115163,0.391115163,0.391115163,0.391115163,0.391115163,0.391276628]; var cnt = 0; var fillClr = "blue" var rad = "2"; if (isTrgt != 2) { fillClr="grey"; rad = "1"; } for (var i = 0; i < arr2.length; i++) { outStr += ""; cnt++; } return outStr; } /** * Modifier Function... * @author Stephan K Eisenbarth * @date 1/15/2020 * Description: Returns a String containing the code to draw the tertile 3 line, with color and width based on the specified int * @param isTrgt int containing the tertile number to process, if it is 3 then this line will be drawn blue and thicker * @return outStr String containing the code to draw the tertile 3 line */ function drawTertile3Line (isTrgt) { var outStr = ""; var arr3 = [0.019887731,0.03112755,0.040923874,0.050403768,0.057797375,0.064709969,0.071140289,0.075480754,0.078214116,0.08143208,0.084330279,0.087068429,0.089968159,0.094639946,0.096895291,0.099313026,0.101410273,0.101894427,0.103024526,0.104963234,0.10787182,0.110295643,0.111589993,0.11353152,0.114340932,0.115636465,0.117093941,0.120332774,0.122762347,0.123896776,0.125193746,0.126004652,0.127950829,0.130223904,0.132009892,0.132659342,0.1336337,0.134771517,0.136561196,0.138188177,0.139002282,0.141607419,0.14339879,0.144376832,0.14551875,0.146335029,0.147478039,0.148622583,0.149767128,0.150257647,0.151075808,0.15205798,0.152712888,0.153204259,0.154351679,0.155335372,0.156319065,0.15730295,0.157630911,0.159273276,0.159601813,0.160916476,0.16173814,0.162559805,0.163217652,0.163875888,0.164699169,0.166016938,0.16700546,0.16832349,0.169312012,0.169641519,0.170795482,0.171620232,0.171950396,0.172280888,0.173768106,0.174594338,0.174925029,0.175421365,0.176083411,0.176745723,0.177408036,0.178401504,0.179229395,0.179560818,0.179892309,0.180223799,0.181218472,0.18188199,0.183375209,0.184204775,0.184702616,0.185200761,0.185865361,0.186364218,0.186863483,0.187862218,0.188694497,0.18902775,0.189528042,0.190362204,0.191029533,0.192698891,0.193867441,0.194869055,0.195370174,0.196038749,0.197042237,0.197376733,0.198548446,0.199385383,0.199720158,0.200222636,0.201060626,0.201731581,0.20257098,0.203578471,0.203746386,0.20492204,0.206097942,0.206602327,0.207107247,0.20794878,0.208790314,0.208958656,0.209463684,0.209463684,0.209969465,0.210475571,0.210981892,0.211488539,0.212332951,0.212670715,0.21300877,0.21334697,0.214362006,0.214700716,0.215209,0.215886713,0.216564425,0.217411749,0.21825944,0.218429052,0.218937887,0.219277184,0.21978613,0.220125501,0.22063489,0.220975001,0.22165567,0.222166506,0.222166506,0.223529333,0.224210746,0.224551903,0.225234365,0.225234365,0.22591743,0.22677126,0.227283558,0.227795856,0.228137464,0.228991672,0.229675493,0.229846524,0.230359846,0.231044427,0.231557863,0.232242901,0.232585497,0.232928093,0.232928093,0.233785156,0.234299395,0.234813633,0.235670888,0.235842455,0.236357386,0.23670075,0.237216029,0.237731307,0.238590105,0.239793507,0.239965578,0.240482139,0.240826748,0.241343896,0.241861044,0.242550575,0.243240734,0.243413274,0.243413274,0.244794221,0.245312077,0.24600255,0.246175169,0.246693143,0.247211354,0.248075239,0.248248055,0.248593847,0.248766743,0.248939639,0.249112655,0.249805515,0.250152346,0.250499176,0.251193158,0.251887141,0.252754619,0.252754619,0.253101771,0.253622863,0.253970338,0.254317975,0.254665613,0.25501325,0.255535437,0.256232175,0.2564064,0.256580626,0.257277527,0.257974428,0.258322879,0.258322879,0.258671903,0.258846415,0.259544958,0.260418754,0.26094328,0.26094328,0.26094328,0.26094328,0.2614688,0.261819313,0.262345208,0.262520548,0.262871228,0.263222074,0.263573255,0.26374893,0.264100698,0.264804739,0.265508781,0.265860801,0.266389339,0.266389339,0.266389339,0.267095243,0.267448621,0.267625352,0.26868574,0.268862514,0.269039459,0.269570423,0.269747497,0.269924571,0.270101645,0.270455793,0.270987143,0.271518494,0.27169561,0.272227219,0.272404509,0.272759087,0.272936377,0.273291215,0.273468678,0.273823776,0.274356554,0.275244952,0.275778121,0.276311291,0.276489058,0.276489058,0.276844853,0.277200824,0.277378854,0.277734913,0.277912942,0.278981381,0.279337616,0.279515909,0.279872761,0.280764891,0.281121743,0.28147895,0.281657686,0.282015427,0.282731442,0.282910535,0.283268722,0.283626908,0.283985095,0.284164233,0.284343371,0.284701737,0.28488092,0.285239286,0.285597742,0.285956377,0.286315374,0.286494917,0.286854003,0.28721309,0.287572448,0.287572448,0.288111621,0.288471161,0.288830973,0.289010879,0.289550598,0.289910684,0.29045095,0.291171487,0.291351621,0.291892849,0.292434078,0.292794897,0.293697174,0.293877768,0.294239048,0.294600514,0.294962164,0.29550464,0.295866384,0.296228499,0.296771812,0.296953057,0.297315732,0.29749707,0.297678455,0.298585378,0.299129814,0.299311387,0.299856387,0.300038101,0.300401529,0.300764956,0.301310098,0.30167381,0.302037616,0.302765228,0.302947179,0.303129225,0.303493316,0.303675362,0.304039834,0.304404689,0.304769831,0.30495245,0.306231118,0.306413785,0.306596452,0.306962364,0.307145465,0.307328614,0.30769501,0.307878451,0.308061892,0.308428773,0.308795849,0.309346609,0.309897662,0.310265423,0.310449303,0.310817063,0.311000993,0.311552928,0.311737004,0.312105355,0.312473903,0.312658177,0.313026725,0.313764216,0.314317335,0.31505562,0.315609782,0.315979623,0.316349464,0.316534384,0.316719405,0.317274767,0.31783028,0.318200923,0.318756889,0.318942211,0.31949863,0.320055354,0.320426705,0.320798057,0.321169611,0.321912721,0.322841862,0.32302769,0.323213621,0.323957751,0.324143886,0.324330175,0.325261619,0.325820486,0.326006826,0.326006826,0.326193321,0.32637992,0.326753427,0.326753427,0.326940336,0.327501999,0.32768922,0.32843873,0.328626317,0.328813957,0.329189235,0.329189235,0.329564724,0.329752521,0.329940318,0.330128168,0.330503973,0.330691875,0.33087983,0.332008195,0.332384422,0.332760755,0.333325256,0.333325256,0.333513582,0.33407856,0.334455319,0.334643912,0.335021098,0.33558752,0.336154264,0.336343232,0.336910298,0.337099536,0.337288828,0.337478174,0.337478174,0.337478174,0.337667846,0.338426966,0.338616746,0.338616746,0.338996633,0.339186849,0.339377176,0.339377176,0.339567667,0.340520122,0.340710888,0.341283519,0.341283519,0.341665605,0.341856648,0.342047691,0.342238957,0.342621487,0.342812864,0.343004352,0.34319584,0.343387328,0.343387328,0.343770975,0.344346615,0.344346615,0.344538607,0.344922817,0.345115091,0.345307364,0.345884695,0.346077422,0.346270149,0.346462989,0.346656001,0.346849127,0.347428503,0.347814755,0.348201235,0.348394475,0.348394475,0.349167894,0.349361306,0.349748131,0.350328367,0.350328367,0.350522068,0.350909469,0.350909469,0.351103227,0.351490744,0.35168456,0.351878492,0.352266357,0.352654686,0.352654686,0.352848968,0.352848968,0.353043483,0.353238349,0.353823124,0.35401805,0.3544079,0.354993382,0.354993382,0.354993382,0.355580464,0.355972089,0.356559527,0.35675534,0.356951332,0.356951332,0.357147682,0.357540504,0.357736975,0.357736975,0.35832729,0.358524122,0.3591148,0.359311813,0.359508827,0.35970584,0.360297063,0.360297063,0.360691698,0.360691698,0.360889259,0.360889259,0.360889259,0.361285238,0.361483412,0.361681648,0.361879883,0.362276354,0.36247459,0.363069667,0.363069667,0.363268273,0.364064187,0.364263166,0.364661123,0.364860164,0.36505933,0.36505933,0.36505933,0.36505933,0.365259186,0.365459483,0.365459483,0.365659906,0.366261366,0.367063821,0.367465048,0.367866403,0.367866403,0.368669878,0.369272867,0.369875857,0.37027785,0.370478975,0.370881353,0.371082671,0.371283989,0.371283989,0.371687012,0.371687012,0.371687012,0.371687012,0.372497216,0.372699767,0.372902383,0.372902383,0.37330814,0.37330814,0.373511414,0.374324771,0.374528177,0.37493512,0.375546331,0.375750201,0.375750201,0.376158875,0.376363279,0.376976491,0.376976491,0.377590106,0.377794779,0.377999586,0.378614009,0.378818884,0.379433914,0.380049555,0.380049555,0.380460527,0.380666217,0.381077598,0.381283288,0.381900976,0.382106871,0.382106871,0.382106871,0.382313318,0.382519764,0.383139102,0.383552132,0.383552132,0.383552132,0.383965995,0.383965995,0.384173134,0.384380274,0.384587554,0.385002112,0.385209392,0.385416811,0.38583179,0.38583179,0.386039489,0.3862474,0.387079607,0.38749571,0.387704045,0.388120857,0.38853781,0.3887465,0.388955262,0.389164023,0.389164023,0.38937307,0.389582189,0.389791308,0.390209546,0.390418664,0.390836902,0.391046236,0.391255643,0.391674888,0.391884728,0.392514247,0.392933926,0.393353896,0.393353896,0.393353896,0.393564245,0.393774593,0.393774593,0.393985308,0.394196096,0.394196096,0.394618111,0.394618111,0.394618111,0.394618111,0.394829709,0.395041456,0.395253424,0.39588933,0.39588933,0.396525459,0.396737652,0.396737652,0.396950292,0.396950292,0.396950292,0.397376777,0.398016731,0.398443518,0.399083699,0.399297093,0.399297093,0.399297093,0.399724639,0.400152186,0.400365959,0.400579732,0.400579732,0.400793735,0.400793735,0.401007966,0.401222275,0.40143666,0.40143666,0.40143666,0.401651199,0.402080584,0.402295354,0.402725203,0.402940437,0.403155671,0.403802073,0.40401754,0.404448475,0.404663942,0.404879566,0.405095189,0.405310969,0.405310969,0.405310969,0.405527455,0.40596106,0.406177863,0.406177863,0.406177863,0.406395141,0.406612579,0.407047614,0.407482649,0.407482649,0.407700406,0.407918243,0.407918243,0.408354239,0.408572236,0.408790314,0.408790314,0.409008876,0.409008876,0.409008876,0.409446972,0.409666101,0.409666101,0.410324221,0.410543676,0.410543676,0.410763459,0.410763459,0.410763459,0.410763459,0.411204504,0.411425109,0.411866485,0.411866485,0.412529047,0.412750066,0.41297117,0.413192273,0.413856082,0.414299291,0.414299291,0.415186045,0.415629422,0.416072798,0.416294571,0.416516597,0.416738622,0.416960648,0.416960648,0.417405038,0.417627487,0.417850022,0.418072556,0.418072556,0.418295261,0.418518221,0.418741182,0.419187789,0.419857699,0.420304306,0.420527696,0.420527696,0.420974819,0.421198381,0.421421943,0.421421943,0.421421943,0.421421943,0.421870106,0.422094448,0.42231879,0.422767649,0.422767649,0.423217207,0.423442249,0.423893213,0.423893213,0.424119049,0.42457072,0.425022746,0.425474772,0.425701053,0.425927333,0.426153613,0.426153613,0.426153613,0.42638043,0.42638043,0.426607876,0.427062768,0.427290305,0.427517842,0.427517842,0.42774565,0.428201448,0.428885145,0.429797105,0.430025277,0.430253632,0.430482263,0.430482263,0.430711261,0.430711261,0.431169441,0.431627805,0.431627805,0.431857636,0.432318417,0.432548901,0.433009868,0.433009868,0.433009868,0.433009868,0.433241387,0.433241387,0.433473096,0.433936512,0.434399929,0.434863536,0.434863536,0.434863536,0.435095624,0.435560375,0.435560375,0.435560375,0.435560375,0.435793326,0.43625942,0.436725514,0.436958561,0.436958561,0.436958561,0.437192188,0.437426009,0.43765983,0.438127473,0.438361391,0.438361391,0.438361391,0.438595994,0.439065199,0.439065199,0.439534797,0.439534797,0.439534797,0.440240377,0.440475768,0.440475768,0.440711456,0.441183429,0.441419416,0.441655403,0.441655403,0.44189209,0.442366067,0.442603156,0.443077335,0.443551513,0.443551513,0.443551513,0.444264604,0.444740201,0.445453597,0.4456916,0.4456916,0.4456916,0.446408996,0.446887261,0.447126496,0.447365732,0.447605382,0.4480851,0.4480851,0.448325167,0.448805302,0.449525504,0.449765676,0.450006163,0.450487137,0.450487137,0.450728046,0.450968955,0.451210075,0.451451196,0.451692316,0.451692316,0.451692316,0.451933755,0.4521753,0.452416952,0.452658817,0.452658817,0.452900789,0.453142762,0.453142762,0.45338527,0.453870934,0.454113766,0.454356598,0.454843345,0.454843345,0.455087482,0.455331618,0.455819891,0.456308164,0.45655263,0.456797205,0.456797205,0.456797205,0.457287461,0.457532588,0.457777938,0.458023287,0.458268747,0.458268747,0.458268747,0.458268747,0.458268747,0.458514765,0.458514765,0.459007025,0.459253154,0.459499396,0.459992104,0.459992104,0.459992104,0.460239134,0.460239134,0.460486844,0.460486844,0.460486844,0.460735239,0.460984092,0.461232945,0.461731573,0.4622302,0.462479514,0.462728944,0.462728944,0.462728944,0.462979303,0.463229779,0.463480255,0.463480255,0.463480255,0.463731435,0.463982968,0.463982968,0.463982968,0.464234855,0.464234855,0.464487099,0.464487099,0.464739461,0.464991824,0.465244186,0.466001988,0.46650719,0.46650719,0.46650719,0.46650719,0.46650719,0.467013831,0.467013831,0.467267392,0.467521074,0.46777512,0.468029286,0.468029286,0.468284061,0.468284061,0.468793856,0.469048754,0.469303896,0.469559284,0.469814672,0.470325694,0.470325694,0.470581946,0.471350705,0.47186321,0.47186321,0.472119712,0.472119712,0.472376838,0.472376838,0.472376838,0.472634592,0.472634592,0.473151364,0.473151364,0.473410257,0.473928299,0.474187704,0.474447108,0.474706897,0.474966686,0.474966686,0.474966686,0.475226861,0.475487036,0.475487036,0.475487036,0.476008161,0.476268984,0.47705223,0.47705223,0.47705223,0.477314097,0.477314097,0.47757649,0.477838882,0.478101407,0.478364195,0.478627249,0.478627249,0.478890702,0.479154155,0.479681593,0.479681593,0.479681593,0.480210104,0.480474359,0.480738614,0.481002869,0.481002869,0.481267934,0.481798335,0.482063535,0.482328736,0.482328736,0.482594208,0.482859681,0.482859681,0.483391445,0.483391445,0.483657875,0.483657875,0.483657875,0.483924995,0.484459787,0.484727322,0.484995414,0.485532157,0.485800809,0.486069601,0.486338393,0.486607326,0.486876682,0.487146746,0.488228715,0.488499208,0.488499208,0.488499208,0.488499208,0.488770705,0.489042202,0.489585197,0.489856838,0.489856838,0.490129205,0.490129205,0.490401718,0.490401718,0.490401718,0.490674668,0.490674668,0.490947765,0.491221008,0.491221008,0.491767788,0.491767788,0.492041768,0.492316043,0.492590319,0.492590319,0.493414482,0.49368995,0.49368995,0.49368995,0.49368995,0.494242388,0.494242388,0.494242388,0.494242388,0.494519668,0.494797252,0.494797252,0.494797252,0.495075447,0.495353949,0.495632605,0.496189917,0.496189917,0.496189917,0.496749085,0.496749085,0.496749085,0.497029448,0.497029448,0.497592055,0.497592055,0.497592055,0.497592055,0.497592055,0.497592055,0.497592055,0.497876061,0.497876061,0.49816039,0.498444718,0.498444718,0.498444718,0.498444718,0.49901564,0.49901564,0.49901564,0.49901564,0.499302245,0.499588849,0.499875453,0.500448662,0.500735431,0.501022695,0.501310124,0.501597553,0.501597553,0.501885981,0.501885981,0.50246451,0.502753775,0.50304304,0.50304304,0.50304304,0.503333149,0.503913707,0.504204666,0.504495626,0.504495626,0.505077887,0.505077887,0.505369705,0.505661867,0.505954029,0.505954029,0.505954029,0.505954029,0.505954029,0.506247579,0.506247579,0.506247579,0.506247579,0.506247579,0.506542886,0.506838192,0.506838192,0.506838192,0.506838192,0.506838192,0.507135099,0.507135099,0.507135099,0.507135099,0.507135099,0.507433443,0.507433443,0.507433443,0.508031218,0.508330651,0.508330651,0.508630633,0.508630633,0.508630633,0.508630633,0.508630633,0.508932086,0.509534993,0.509534993,0.509534993,0.50983775,0.50983775,0.51014088,0.510444011,0.510444011,0.511051778,0.511051778,0.511356229,0.511356229,0.511356229,0.511356229,0.511356229,0.511662588,0.511968948,0.5122755,0.512582052,0.512582052,0.512582052,0.513504028,0.513504028,0.514120626,0.514428926,0.514737617,0.514737617,0.515047095,0.515047095,0.515357167,0.515357167,0.515667438,0.515667438,0.515978107,0.516288975,0.516288975,0.516288975,0.516288975,0.51660145,0.51660145,0.517226804,0.517539481,0.517852563,0.518165646,0.518165646,0.518165646,0.518479545,0.518794058,0.519108572,0.519423498,0.519423498,0.519423498,0.519739667,0.520372004,0.520372004,0.520688381,0.520688381,0.521321554,0.52163835,0.52163835,0.52163835,0.52163835,0.52163835,0.52163835,0.521956833,0.521956833,0.522595928,0.522595928,0.522916549,0.523237169,0.524200326,0.524200326,0.524522684,0.524845041,0.524845041,0.525167837,0.525491513,0.525815188,0.526138864,0.526138864,0.526463426,0.526463426,0.526463426,0.526463426,0.526463426,0.526790454,0.527117482,0.52744451,0.52744451,0.52744451,0.52744451,0.527773588,0.527773588,0.527773588,0.527773588,0.527773588,0.527773588]; var cnt = 0; var fillClr = "blue"; var rad = "2"; if (isTrgt != 3) { fillClr="grey"; rad = "1"; } for (var i = 0; i < arr3.length; i++) { outStr += ""; cnt++; } return outStr; } /** * Modifier Function... * @author Stephan K Eisenbarth * @date 1/15/2020 * Description: Adds/draws the the background graphpad with x and y keys */ function drawGraphPad (synNum) { setDeviceDims (); var x = document.getElementById ("graphPad"); var tmpStr = ""; if (isMobile == false) { // For normal computer screen tmpStr += ""; } else { // Fpr mobile devices // tmpStr += ""; tmpStr += ""; } tmpStr += "Proportion with Major Adverse Cardiovascular Event"; // draw vertical line tmpStr += ""; // Draw the left side text numbers and graph horizontal lines var cnt = 0; for (var i = 5; i > -1; i--) { tmpStr += "0." + cnt + ""; tmpStr += ""; cnt ++; } // Write the tertile line color key tmpStr += ""; tmpStr += "BASELINE"; tmpStr += ""; tmpStr += "1 YEAR"; tmpStr += ""; tmpStr += "2 YEAR"; tmpStr += ""; tmpStr += "3 YEAR"; tmpStr += ""; tmpStr += "4 YEAR"; tmpStr += ""; tmpStr += "Time After Procedure"; tmpStr += drawTertile1Line (tertileNum); tmpStr += drawTertile2Line (tertileNum); tmpStr += drawTertile3Line (tertileNum); // Write the tertile line color key tmpStr += ""; x.innerHTML=tmpStr; changePageHeight (); }