// JavaScript Document getTXLParams.js
//moved into catPWireTXL 12/20/06 rnf
// back to getTXLParams.js 080818

    
  function setColor()			//Sets colorSet and wireColor
   {        
                       if (dbug == 1) { debug ( "start getWireTXL.js "+"\n") }
	n= d.entryf1.selectColor.selectedIndex	   
    wireColor = d.entryf1.selectColor.options[n].text
	colorSet = "1"
		 //   alert("n1="+ n )
    getPriceNSKU()
//	    alert("n2="+ n )
    checkInputs()
 }

function setGauge()			//Sets gaugeSet and wireGauge
   {        
                       if (dbug == 1) { debug ( "start getWireTXL.js "+"\n") }
	n= d.entryf1.selectGauge.selectedIndex	   
    wireGauge = d.entryf1.selectGauge.options[n].text
	gaugeSet = "1"
	  //alert("L2An="+ n )
    getPriceNSKU()
	  //alert("L2An=1+"+ n )
    checkInputs()
		//alert("L2An=2+"+ n )
 }

//     getPriceNSKU() calculates subtotal for selected  (item)
//      and presents a message therof to the user

	function getPriceNSKU()
		   {
		// if (dbug == 1) { debug ( "ln8  getXXXParams.js "+"\n")}

    var wireL1A= new Array ( ) ;     //numbers are  numbers in sku	 
wireL1A[0] = "0000";
wireL1A[1] = "6401";
wireL1A[2] = "6403";
wireL1A[3] = "6404";
wireL1A[4] = "6405";
wireL1A[5] = "6407";
wireL1A[6] = "6501";
wireL1A[7] = "6503";
wireL1A[8] = "6507";
wireL1A[9] = "6510";
wireL1A[10] = "6601";
wireL1A[11] = "6603";
wireL1A[12] = "6605";
wireL1A[13] = "7501";
wireL1A[14] = "7503";
wireL1A[15] = "7601";
wireL1A[16] = "7603";
wireL1A[17] = "7701";
wireL1A[18] = "7703";
wireL1A[19] = "7801";
wireL1A[20] = "7803";

  var price= new Array ( )  //numbers are $ea
price[0] = 0;  
price[1] = 0.78;
price[2] = 0.92;
price[3] = 2.05;
price[4] = 3.19;
price[5] = 4.61;
price[6] = 6.76;
price[7] = 11.14;

  //alert("getSXLParams wireprice= "+3)

       	m=d.entryf1.selectGauge.selectedIndex;
		wireSKU = "W".concat(wireL1A[m]);
      	wirePrice = price[m];
		subTotL1A  = formTwoPlcDec(wirePrice*wireFeet);
	   //alert("getSXLParams.js"+4)
	    return ;
}	  
