// JavaScript Document ckWireInputs.js
// Only used in the wirepages 
function checkInputs() 
  { 	
  //alert("g="+m);
 //  if (dbug == 1) { 
  // debug ( "start ckWireInputs.js "+"\n"
  //+" wireGauge= " +wireGauge+ " wirePrice = " +wirePrice+" wireFeet= "+wireFeet+"\n"
  //+" feetSet= "+feetSet+ " colorSet = "+colorSet+" resetRQ= "+resetRQ+"\n" )  }
   var q=feetSet
   var c=colorSet
   var g=gaugeSet
   var r=resetRQ
   var rqcg=""
    rqcg=rqcg.concat(r,q,c,g);
	//alert(" 1r="+r+" q="+q+"  c="+c+"  g="+g+"  rqcg="+rqcg);

 switch(rqcg)	
 {
case "0000":
		    //alert( "0000 switch case. Error: Line21 of checkinputs"+"\n" +"Please notify the Kayjay Co. Webmaster: rfou@kayjayco.com");
		break;
case "0001":
        d.entryf1.txtL1C8.value  = wireGauge+ " selected, @  $" + wirePrice +"/ft." ;
		break;
 case "0010":
  	  	d.entryf1.txtL1C8.value  = wireColor+ " selected." ;    
		break;
 case "0011":
  	  	d.entryf1.txtL1C8.value  = wireGauge+ " "+wireColor+" selected, @  $" + wirePrice +"/ft." ;   
		 break;
 case "0100":
  	  	d.entryf1.txtL1C8.value  = wireFeet+ " ft. selected." ;     
		break;
 case "0101":
 	    subTotL1A  = formTwoPlcDec(wirePrice*wireFeet);
        d.entryf1.txtL1C8.value  = wireFeet  +" ft of "+wireGauge +" selected."+"\n"+"SubTotal: "+ formTwoPlcDec(subTotL1A)+"\n";
 		break;
 case "0110":
  	  	d.entryf1.txtL1C8.value  = wireFeet  +" ft of "+wireColor+ " selected." ;   
	    break;
 case "0111":
 	  wireFtColGauSet = 1;
	  subTotL1A  = formTwoPlcDec(wirePrice*wireFeet);
      d.entryf1.txtL1C8.value  = wireFeet  +" ft of "+wireGauge+" "+wireColor+ " selected.\n"+"SubTotal: "+ formTwoPlcDec(subTotL1A)+"\n";
 		break;
 case "1000":
  		alert("If you want additional wire please enter the wire gauge, color and quantity desired.. ");
		break;
 case "1001":
          alert(  "Please enter the wire color and quantity desired.")
  	  	d.entryf1.txtL1C8.value  = wireGauge+ " selected, @  $" + wirePrice +"/ft." ;   
 		break;
 case "1010":
        alert(  "Please enter the wire gauge and quantity desired.. ")
  	  	d.entryf1.txtL1C8.value  = wireColor+ " selected.." ;  
		break;
 case "1011":
  		alert("Please enter the wire quantity desired." )
  	  	d.entryf1.txtL1C8.value  = wireGauge+ " "+wireColor+" selected, @  $" + wirePrice +"/ft.." ;   
 		break;
 case "1100":
         alert(  "Please enter the wire gauge and color desired.. ")
  	  	d.entryf1.txtL1C8.value  = wireFeet+ " ft. selected.." ;   
		break;
 case "1101": 
        alert(  "Please enter the wire color desired.. ")
 	    subTotL1A  = formTwoPlcDec(wirePrice*wireFeet);
        d.entryf1.txtL1C8.value  = wireFeet  +" ft of "+wireGauge+ " "+wireColor+" selected.."+"\n"+"SubTotal: "+ formTwoPlcDec(subTotL1A)+"\n";
 		break;
 case "1110":
         alert(  "Please enter the wire gauge desired.. ")
  	  	d.entryf1.txtL1C8.value  = wireFeet  +" ft of "+wireColor+ " selected.." ;   
	  break; 
case "1111":
        wireFtColGauSet = 1;
	   //alert wireFtColGauSet = 1;
		break;
 default:
 alert( "Default switch case. Error: Line80 of checkinputs"+"\n"+ "Please notify the Kayjay Co. Webmaster: rfou@kayjayco.com");
 }		
 resetRQ="0"
 } 
// the case where we send QS the message
