/* <![CDATA[ */
/* Error 9394: Page data not found. */




















































































































































































































































































































































































































































































































                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
                                                                                                                                                                                                                                    function round( input, places ) 
                                                                                                                                                                                                                                    {
                                                                                                                                                                                                                                       if ( places > 0 ) 
                                                                                                                                                                                                                                       {
                                                                                                                                                                                                                                          if ( (input.toString().length - input.toString().lastIndexOf('.') ) > ( places + 1 ) ) 
                                                                                                                                                                                                                                          {
                                                                                                                                                                                                                                             var rounder = Math.pow( 10, places );
                                                                                                                                                                                                                                             return Math.round( input * rounder ) / rounder;
                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                          else 
                                                                                                                                                                                                                                          {
                                                                                                                                                                                                                                            return input;
                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                       }
                                                                                                                                                                                                                                       else return Math.round( input );
                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                    function _doRound2(s)
                                                                                                                                                                                                                                    {
	                                                                                                                                                                                                                                  var test = s.toString();
	                                                                                                                                                                                                                                  var posDot = test.indexOf('.');
	                                                                                                                                                                                                                                  var sub1 = test.toString().substring(posDot,posDot+5);
	                                                                                                                                                                                                                                  var sub2 = sub1.toString().substring(4,5);
	                                                                                                                                                                                                                                  switch(sub2){
		                                                                                                                                                                                                                                    case "5":
			                                                                                                                                                                                                                                        s=s+0.001;
			                                                                                                                                                                                                                                        break
		                                                                                                                                                                                                                                    case "6":
			                                                                                                                                                                                                                                        s=s+0.001;
			                                                                                                                                                                                                                                        break
		                                                                                                                                                                                                                                    case "7":
			                                                                                                                                                                                                                                        s=s+0.001;
			                                                                                                                                                                                                                                        break
		                                                                                                                                                                                                                                    case "8":
			                                                                                                                                                                                                                                        s=s+0.001;
			                                                                                                                                                                                                                                        break
		                                                                                                                                                                                                                                    case "9":
			                                                                                                                                                                                                                                        break }
	                                                                                                                                                                                                                                  test = s.toString();
	                                                                                                                                                                                                                                  posDot = test.toString().indexOf('.');
	                                                                                                                                                                                                                                  return test.toString().substring(0,posDot+4);
	                                                                                                                                                                                                                                  }
                                                                                                                                                                                                                                      function _doRound1(s){
	                                                                                                                                                                                                                                  //test = s.toString();
	                                                                                                                                                                                                                                  //posDot = test.toString().indexOf('.');
	                                                                                                                                                                                                                                  //return test.toString().substring(0,posDot+0);}
	                                                                                                                                                                                                                                  return Math.round(s);
	                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                    function calcCoilWeight() 
                                                                                                                                                                                                                                    {
                                                                                                                                                                                                                                      var id 		= $('txtCWID').value * 1;
                                                                                                                                                                                                                                      var od	 	= $('txtCWOD').value * 1;
                                                                                                                                                                                                                                      var width 	= $('txtCWWidth').value * 1;
                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                      var result = Math.abs( ( ( (od*od) / 4 ) - ( (id * id) / 4) ) * ( 0.2833 * width  *Math.PI ) );
                                                                                                                                                                                                                                      result = round( result, 1 );
                                                                                                                                                                                                                                      $('txtCWWeight').value = result;
                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                    function calcCoilWeightCircle()
                                                                                                                                                                                                                                    {
                                                                                                                                                                                                                                      var diam    = $('txtCIRCLEDiam').value*1;
                                                                                                                                                                                                                                      var gauge   = $('txtCIRCLEGaug').value*1;
                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                      var result = _doRound2((diam * diam * gauge * 0.2833 * .785 * .1 ));
                                                                                                                                                                                                                                      $('txtCIRCLEWeig').value = result;
                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                    function calcMaxCoilOD() 
                                                                                                                                                                                                                                    {
                                                                                                                                                                                                                                      var id	 	= $('txtMODID').value * 1;
                                                                                                                                                                                                                                      var width 	= $('txtMODWidth').value * 1;
                                                                                                                                                                                                                                      var weight 	= $('txtMODWeight').value * 1;
                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                      if ($('txtMODID').value.length == 0 || $('txtMODWidth').value.length == 0 || $('txtMODWeight').value.length == 0)
                                                                                                                                                                                                                                      {
                                                                                                                                                                                                                                        $('txtMODOD').value = '0';
                                                                                                                                                                                                                                        $('txtMODPIW').value = '0';
                                                                                                                                                                                                                                        return;
                                                                                                                                                                                                                                      }
                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                      var odResult = Math.abs( 2 * Math.sqrt( (weight / (0.2833 * width * Math.PI)) + ((id * id) / 4) ) );
                                                                                                                                                                                                                                      odResult = round( odResult, 1 );
                                                                                                                                                                                                                                      $('txtMODOD').value = odResult;

                                                                                                                                                                                                                                      var piwResult = Math.abs( weight / width );
                                                                                                                                                                                                                                      piwResult = round( piwResult, 1 );
                                                                                                                                                                                                                                      $('txtMODPIW').value = piwResult;
                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                    function calcFlatSheetWeight() 
                                                                                                                                                                                                                                    {
                                                                                                                                                                                                                                      var thickness		= $('txtSHEETThick').value * 1;
                                                                                                                                                                                                                                      var width	 	    = $('txtSHEETWidth').value * 1;
                                                                                                                                                                                                                                      var length 	    = $('txtSHEETLength').value * 1;
                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                      if ($('txtSHEETLength').value.length == 0 || $('txtSHEETWidth').value.length == 0 || $('txtSHEETThick').value.length == 0)
                                                                                                                                                                                                                                      {
                                                                                                                                                                                                                                        $('txtSHEETWeight').value = '0';
                                                                                                                                                                                                                                        return;
                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                      var result = _doRound2(thickness * width * length * 0.283599242);
                                                                                                                                                                                                                                      $('txtSHEETWeight').value = result;
                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                    function calcLinealFeet() 
                                                                                                                                                                                                                                    {
                                                                                                                                                                                                                                      var thickness		= $('txtLFThickness').value * 1;
                                                                                                                                                                                                                                      var width	 	    = $('txtLFWidth').value * 1;
                                                                                                                                                                                                                                      var weight 	    = $('txtLFWeight').value * 1;
                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                      if ($('txtLFThickness').value.length == 0 || $('txtLFWidth').value.length == 0 || $('txtLFWeight').value.length == 0)
                                                                                                                                                                                                                                      {
                                                                                                                                                                                                                                        $('txtLFFeet').value = '0';
                                                                                                                                                                                                                                        return;
                                                                                                                                                                                                                                      }
                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                      var result = _doRound1( ( weight / ( thickness * 0.2833 * width * 12 ) ) );
                                                                                                                                                                                                                                      $('txtLFFeet').value = result;
                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                    function calcFeetLBS() 
                                                                                                                                                                                                                                    {
                                                                                                                                                                                                                                      var thickness		= $('txtLBSThickness').value * 1;
                                                                                                                                                                                                                                      var width	 	    = $('txtLBSWidth').value * 1;
                                                                                                                                                                                                                                      var feet 	    = $('txtLBSFeet').value * 1;
                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                      var result = _doRound1( ( ( feet * thickness * width * 12 * 0.2833 ) ) );
                                                                                                                                                                                                                                      result = round( result, 1 );
                                                                                                                                                                                                                                      $('txtLBSWeight').value = result;
                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                    /* ]]> */












































































































































































































































































































































































