﻿// JScript File

  function TongueGrooveRequired(SquareFeet, ResultDiv) {
   // alert(document.getElementById("Text1").value);
    var Count = (SquareFeet * 2.4); 
    $(ResultDiv).update("<strong><br>You will need approximately<br>" + Math.round(Count) + " - Lineal feet at 2.4 per SqFt.</strong>");
    DivBox.show(ResultDiv,{title: 'Calculation Result!', width: 250, overlayOpacity: .6, overlayClose:true});
    //alert("You will need approximately\n\n" + Math.round(Count) + " - Lineal feet at 2.4 per SqFt\n");
  }
  
  function LatillaBoardsRequired(SquareFeet, ResultDiv) {
   // alert(document.getElementById("Text1").value);
    var Count = (SquareFeet * 2.4); 
    var Line1 = "<strong><br>You will need at least:<br><br>";
    var Line2 =  Math.round(SquareFeet * 5.4) + "' - Lineal feet of 2 1/2&quot Boards,<br>or<br>";
    var Line3 =  Math.round(SquareFeet * 3.7) + "' - Lineal feet of 3 1/2&quot Boards,<br>or<br>";
    var Line4 =  Math.round(SquareFeet * 2.3) + "' - Lineal feet of 5 1/2&quot Boards.<br><br>";
    
    $(ResultDiv).update(Line1+Line2+Line3+Line4);
    DivBox.show(ResultDiv,{title: 'Calculation Result!', width: 300, overlayOpacity: .6, overlayClose:true});
    //alert("You will need approximately\n\n" + Math.round(Count) + " - Lineal feet at 2.4 per SqFt\n");
  }

  function LatillaSticksRequired(SquareFeet, ResultDiv) {
   // alert(document.getElementById("Text1").value);
    var Count = (SquareFeet * 2.4); 
    var Line1 = "<strong><br>You will need at least:<br><br>";
    var Line2 =  Math.round(SquareFeet / 1.3) + " - 8' latillas,<br>or<br>";
    var Line3 =  Math.round(SquareFeet / 1.75) + " - 12' latillas.<br><br>";
    
    $(ResultDiv).update(Line1+Line2+Line3);
    DivBox.show(ResultDiv,{title: 'Calculation Result!', width: 200, overlayOpacity: .6, overlayClose:true});
//    var ShortSticks = (document.getElementById("Text1").value / 1.3); 
//    var LongSticks = (document.getElementById("Text1").value / 1.75);
  }
