//=====================================================================||
//               NOP Design JavaScript Shopping Cart                   ||
//                                                                     ||
// For more information on SmartSystems, or how NOPDesign can help you ||
// Please visit us on the WWW at http://www.nopdesign.com              ||
//                                                                     ||
// Javascript portions of this shopping cart software are available as ||
// freeware from NOP Design.  You must keep this comment unchanged in  ||
// your code.  For more information contact FreeCart@NopDesign.com.    ||
//                                                                     ||
// JavaScript Shop Module, V.5.0.draft   Feb 4, 2004                   ||
// Drop in replacement for V.4.4.0                                     ||
//=====================================================================||
//              CART MANAGEMENT MODULE Unmodified shipping             ||
//---------------------------------------------------------------------||
// FUNCTION:    ManageCart                                             ||
// PARAMETERS:  Null                                                   ||
// RETURNS:     Product Table Written to Document                      ||
// PURPOSE:     Draws current cart product table on HTML page          ||
//---------------------------------------------------------------------||
function ManageCart() {
   var freepost        = 0;
   var paypost         = 0;
   var fTotal         = 0;    //Total cost of order
   var fprodttl      = 0; 		//Total product cost = QTY * PRICE
   var fFst           = 0;    //FST amount
  
   var fShipping      = 0.00;    //Shipping amount--set flatrate shipping here
   var strTotal       = "0.00";   //Total cost formatted as money
   var strFst         = "0.00";   //Total FST formatted as money
  
   var strShipping    = "0.00";   //Total shipping formatted as money
   var strOutput      = "";   //String to be written to page
   var bDisplay       = true; //Whether to write string to the page (here for programmers)
	 var strProductId   = "";		//used for non-taxable item identification
       strAddInfo     =	" "; 
ReadCookie()

// ------------------- Cart Table Header -----------------------------------||
   if ( bDisplay )
	 		strOutput =
"<TABLE CELLSPACING=0 CELLPADDING=0 WIDTH=100% BORDER=0 CLASS=\"nopcart\"><TR>" +			
"<TD></TD>" +
"<TD CLASS=\"nopheader\" align=\"left\"><strong>"+strDLabel+"</strong></TD>" +
"<TD WIDTH=30 ALIGN=\"center\" CLASS=\"nopheader\"><strong>"+strQLabel+"</strong></TD>" +			
"<TD  ALIGN=\"right\" CLASS=\"nopheader\"><strong>"+strPLabel+"</strong></TD>";
if ( DisplayShippingColumn ) { strOutput += 
"<TD WIDTH=60 ALIGN=\"center\" CLASS=\"nopheader\"><strong>"+strSLabel+"</strong></TD>";
} else { strOutput += 
"<TD  ALIGN=\"right\" CLASS=\"nopheader\"><strong>"+strPTLabel+"</strong></TD>";}
strOutput += "<TD  WIDTH=90 ALIGN=\"CENTER\" CLASS=\"nopheader\"><strong>"+strRLabel+"</strong></TD></TR>";

   if ( iNumberOrdered == 0 ) {
      strOutput += "<TR><TD COLSPAN=6 CLASS=\"nopentry\" ALIGN=\"center\"><BR><B>"+strEmpty+"</B><BR><BR></TD></TR>";
   }else {

   for ( i = 1; i <= iNumberOrdered; i++ ) {
			even = (i & 1);

      fprodttl       = (parseInt(ItemQuantity[i])* parseFloat(ItemPrice[i]));
      fTotal        += (fprodttl);

      if ( parseFloat(ItemShipping[i]) == 10 ) {
      freepost = 0;
      }
      if ( parseFloat(ItemShipping[i]) == 0 ) {
       paypost = 1;
      }
      if ((freepost == 0 )&& (paypost == 0 )){
      fShipping = 0;
      }
      else {
       fShipping = 0;
       // shipping by amount
	   //if (fTotal <50.00 ) {fShipping = 9.70; }
    //if (fTotal >50.00 ) {fShipping = 10.90; }
	   //if (fTotal >100.00 ) {fShipping = 12.10; }
	   //if (fTotal >150.00 ) {fShipping = 13.30; }
	   //if (fTotal >200.00 ) {fShipping = 0; }
      }
     //fShipping     += (parseInt(ItemQuantity[i])* parseFloat(ItemShipping[i]) );//
     if(ItemFsTx[i] == 'true') 	fFst += (fprodttl * FstRate);
      fFst += (fShipping * ShippingFSTaxRate);	// calculates FST for shipping charges
      strTotal    = moneyFormat(fTotal);
      strFst      = moneyFormat(fFst);
      
      strShipping = moneyFormat(fShipping);
      strAddInfo  =	"";
// ------------------- Cart Table Body -----------------------------------||
			
if ( bDisplay ){
     if (even ^ 1 ) {
		strOutput += "<TR VALIGN=\"TOP\"><TD></TD>";
    strOutput += "<TD CLASS=\"nopeven\" align=\"left\">"  + ItemName[i] + " - <I>";
         if ( ItemAddtlInfo[i]  != "" ) strAddInfo  =  ItemAddtlInfo[i];
				 if ( ItemAddtlInfo2[i] != "" ) strAddInfo +=  ItemAddtlInfo2[i];
				 if ( ItemAddtlInfo3[i] != "" ) strAddInfo +=  ItemAddtlInfo3[i];
				 if ( ItemUserEntry[i]  != "" ) strAddInfo +=  ItemUserEntry[i];
				 if ( ItemUserEntry2[i] != "" ) strAddInfo +=  ItemUserEntry2[i];
    strOutput += strAddInfo + "</I></TD>";

         strOutput += "<TD CLASS=\"nopeven\"><INPUT TYPE=TEXT NAME=Q SIZE=2 VALUE=\"" + ItemQuantity[i] + "\" onChange=\"this.value=ChangeQuantity("+i+",this.value);\"></TD>";
         strOutput += "<TD CLASS=\"nopeven\" align=\"right\">"+ MonetarySymbol + moneyFormat(ItemPrice[i]) + "</TD>";

// Either display Shipping Column or extended price column
         if ( DisplayShippingColumn ) {
            if ( parseFloat(ItemShipping[i]) > 0 )
               strOutput += "<TD CLASS=\"nopeven\" align=\"right\">"+ MonetarySymbol + moneyFormat(ItemShipping[i]) + "/ea</TD>";
            else
               strOutput += "<TD CLASS=\"nopeven\" ALIGN=\"center\">N/A</TD>";
         }
	else {
		strOutput += "<TD ALIGN=RIGHT CLASS=\"nopeven\" align=\"right\">"+ MonetarySymbol + moneyFormat(fprodttl) + "</TD>";
         }

    strOutput += "<TD CLASS=\"nopeven\" ALIGN=CENTER><input type=button class=\"butremove\"   value=\" "+strRButton+" \" onClick=\"RemoveFromCart("+i+")\"></TD></TR>";
      }
else {
// repeat for odd

		strOutput += "<TR VALIGN=\"TOP\"><TD></TD>";
    strOutput += "<TD CLASS=\"nopentry\" align=\"left\">"  + ItemName[i] + " - <I>";
         if ( ItemAddtlInfo[i]  != "" ) strAddInfo  =  ItemAddtlInfo[i];
				 if ( ItemAddtlInfo2[i] != "" ) strAddInfo +=  ItemAddtlInfo2[i];
				 if ( ItemAddtlInfo3[i] != "" ) strAddInfo +=  ItemAddtlInfo3[i];
				 if ( ItemUserEntry[i]  != "" ) strAddInfo +=  ItemUserEntry[i];
				 if ( ItemUserEntry2[i] != "" ) strAddInfo +=  ItemUserEntry2[i];
    strOutput += strAddInfo + "</I></TD>";

         strOutput += "<TD CLASS=\"nopentry\"><INPUT TYPE=TEXT NAME=Q SIZE=2 VALUE=\"" + ItemQuantity[i] + "\" onChange=\"this.value=ChangeQuantity("+i+",this.value);\"></TD>";
         strOutput += "<TD CLASS=\"nopentry\" align=\"right\">"+ MonetarySymbol + moneyFormat(ItemPrice[i]) + "</TD>";

// Either display Shipping Column or extended price column
         if ( DisplayShippingColumn ) {
            if ( parseFloat(ItemShipping[i]) > 0 )
               strOutput += "<TD CLASS=\"nopentry\" align=\"right\">"+ MonetarySymbol + moneyFormat(ItemShipping[i]) + "/ea</TD>";
            else
               strOutput += "<TD CLASS=\"nopentry\" ALIGN=\"center\">N/A</TD>";
         }
	else {
		strOutput += "<TD ALIGN=RIGHT CLASS=\"nopentry\" align=\"right\">"+ MonetarySymbol + moneyFormat(fprodttl) + "</TD>";
         }

    strOutput += "<TD CLASS=\"nopentry\" ALIGN=CENTER><input type=button class=\"butremove\"   value=\" "+strRButton+" \" onClick=\"RemoveFromCart("+i+")\"></TD></TR>";
      }
}

// ------------------- End of Cart Table Body -----------------------------------||

      if ( AppendItemNumToOutput ) {
         strFooter = i;
      } else {
         strFooter = "";
      }
      if ( HiddenFieldsToCheckout ) {
         strOutput += "<input type=hidden name=\"" + OutputItemId        + strFooter + "\" value=\"" + ItemId[i] + "\">";
         strOutput += "<input type=hidden name=\"" + OutputItemQuantity  + strFooter + "\" value=\"" + ItemQuantity[i] + "\">";
         strOutput += "<input type=hidden name=\"" + OutputItemPrice     + strFooter + "\" value=\"" + ItemPrice[i] + "\">";
         strOutput += "<input type=hidden name=\"" + OutputItemName      + strFooter + "\" value=\"" + ItemName[i] + "\">";
         strOutput += "<input type=hidden name=\"" + OutputItemShipping  + strFooter + "\" value=\"" + ItemShipping[i] + "\">";
         strOutput += "<input type=hidden name=\"" + OutputItemAddtlInfo + strFooter + "\" value=\"" + strAddInfo + "\">";
      }

   }
}
	 // ------------------- Cart Table Footer -----------------------------------||

	//////////
				
   if ( bDisplay ) {
      strOutput += "<TR>";

      strOutput += "<TD CLASS=\"noptotal\" COLSPAN=4></TD>";  // hide sub total
      strOutput += "<TD CLASS=\"noptotal\"></TD>";            // hide sub total
      strOutput += "<TD CLASS=\"noptotal\"><BR></TD>";

      //strOutput += "<TD align=\"right\" CLASS=\"noptotal\" COLSPAN=4><B>"+strSUB+"</B></TD>";
      //strOutput += "<TD CLASS=\"noptotal\" ALIGN=\"right\"><B>" + MonetarySymbol + strTotal + "</B></TD>";
      //strOutput += "<TD CLASS=\"noptotal\"><BR></TD>";

      strOutput += "</TR>";

      if ( DisplayShippingRow ) {
		  
         strOutput += "<TR><TD CLASS=\"noptotal\" COLSPAN=4 align=\"right\"><B>"+strSHIP+"  &nbsp; </B></TD>";

         strOutput += "<TD CLASS=\"noptotal\" ALIGN=\"right\"><B>" + MonetarySymbol + strShipping + "</B></TD><TD CLASS=\"noptotal\"><BR></TD>";
         strOutput += "</TR>";
      }

// Don't display Federal Sales Tax Row if FST Rate zero
      if ( FstRate > 0 ) {		  	  
		  
            strOutput += "<TR><TD CLASS=\"noptotal\" COLSPAN=4 align=\"right\"><B>"+strFST+" &nbsp; </B></TD>";
            strOutput += "<TD CLASS=\"noptotal\" ALIGN=\"right\"><B>"+ MonetarySymbol + strFst + "</B></TD><TD CLASS=\"noptotal\"><BR></TD>";
            strOutput += "</TR>";
				}	     

      if ( !TaxByRegion ) {
//////////////////////////////////////////////////////////////
      strOutput += "<TR><TD align=\"right\" CLASS=\"noptotal\" COLSPAN=4><B>P and P</B></TD>";
      strOutput += "<TD CLASS=\"noptotal\" ALIGN=\"right\"><B>P.O.A.</B></TD><TD CLASS=\"noptotal\"><BR></TD>";
      strOutput += "</TR>";
///////////////////////////////////////////////////////
         strOutput += "<TR><TD CLASS=\"noptotal\" COLSPAN=4 align=\"right\"><B>"+strTOT+" </B></TD>";
         strOutput += "<TD CLASS=\"noptotal\" ALIGN=\"right\"><B>" + MonetarySymbol + moneyFormat((fTotal + fShipping + fFst )) + "</B></TD><TD CLASS=\"noptotal\"><BR></TD>";
         strOutput += "</TR>";
      }
      strOutput += "</TABLE>";

	 // ------------------- End of Cart Table  -----------------------------------||

      if ( HiddenFieldsToCheckout ) {
         strOutput += "<input type=hidden name=\""+OutputOrderSubtotal+"\" value=\""+ MonetarySymbol + strTotal + "\">";
         strOutput += "<input type=hidden name=\""+OutputOrderShipping+"\" value=\""+ MonetarySymbol + strShipping + "\">";
         strOutput += "<input type=hidden name=\""+OutputOrderFst+"\"      value=\""+ MonetarySymbol + strFst + "\">";
         strOutput += "<input type=hidden name=\""+OutputOrderTotal+"\"    value=\""+ MonetarySymbol + moneyFormat((fTotal + fShipping + fFst )) + "\">";

      }
   }
   g_TotalCost = (fTotal + fShipping + fFst);

   document.write(strOutput);
   document.close();
}

//---------------------------------------------------------------------||
// FUNCTION:    ValidateCart                                           ||
// PARAMETERS:  Form to validate                                       ||
// RETURNS:     true/false                                             ||
// PURPOSE:     Validates the managecart form                          ||
//---------------------------------------------------------------------||
function ValidateCart( theForm ) {
  

      if ( g_TotalCost < MinimumOrder ) {
         alert( MinimumOrderPrompt );
         return false;
      }

   return true;
}

//---------------------------------------------------------------------||
// FUNCTION:    CheckoutCart                                           ||
// PARAMETERS:  Null                                                   ||
// RETURNS:     Product Table Written to Document                      ||
// PURPOSE:     Draws current cart product table on HTML page for      ||
//              checkout.                                              ||
//---------------------------------------------------------------------||
function CheckoutCart() {
   var freepost        = 0;
   var paypost         = 0;
   var fTotal         = 0;    //Total cost of order
   var fprodttl       = 0; 		//Total product cost = QTY * PRICE
   var fFst           = 0;    //FST amount
 
   var fShipping      = 0; //Shipping amount  Set Flat Rate shipping cost here
   var strTotal       = "";   //Total cost formatted as money
   var strFst         = "";   //Total FST formatted as money
  
   var strShipping    = "";   //Total shipping formatted as money
   var strOutput      = "";   //String to be written to page
   var bDisplay       = true; //Whether to write string to the page (here for programmers)
   var strPP          = "";   //Payment Processor Description Field
	 var strProductId   = "";		//Used or non-taxable item identification
	     strAddInfo     = "";   // used to concatanate AdditionalInfo strings
	 
ReadCookie()



// ------------------- Cart Table Header -----------------------------------||
   if ( bDisplay )
strOutput = 	"<TABLE CELLSPACING=0 CELLPADDING=2 WIDTH=100% CLASS=\"nopcart\"><TR><TD>" +
"<TABLE CELLSPACING=0 CELLPADDING=0 WIDTH=100% BORDER=0 CLASS=\"nopcart\"><TR>" +			
"<TD></TD>" +
"<TD CLASS=\"nopheader\" align=\"left\"><strong>"+strDLabel+"</strong></TD>" +
"<TD WIDTH=30 ALIGN=\"center\" CLASS=\"nopheader\"><strong>"+strQLabel+"</strong></TD>" +
"<TD  ALIGN=\"right\" CLASS=\"nopheader\"><strong>"+strPLabel+"</strong></TD>";
if ( DisplayShippingColumn ) { strOutput += 
"<TD WIDTH=60 ALIGN=\"center\" CLASS=\"nopheader\"><strong>"+strSLabel+"</strong></TD>";
} else { strOutput += 
"<TD  ALIGN=\"right\" CLASS=\"nopheader\"><strong>"+strPTLabel+"</strong></TD>";}
strOutput += "</TR>";

   for ( i = 1; i <= iNumberOrdered; i++ ) {
	 		even = (i & 1);

      fprodttl   = (parseInt(ItemQuantity[i]) * parseFloat(ItemPrice[i]) );
      fTotal     += (parseInt(ItemQuantity[i]) * parseFloat(ItemPrice[i]) );

      if ( parseFloat(ItemShipping[i]) == 10 ) {
      freepost = 0;
      }
      if ( parseFloat(ItemShipping[i]) == 0 ) {
       paypost = 1;
      }
      if ((freepost == 0 )&& (paypost == 0 )){
      fShipping = 0;
      }
      else {
       fShipping = 0;
       // shipping by amount
	   //if (fTotal <50.00 ) {fShipping = 9.70; }
    //if (fTotal >50.00 ) {fShipping = 10.90; }
	   //if (fTotal >100.00 ) {fShipping = 12.10; }
	   //if (fTotal >150.00 ) {fShipping = 13.30; }
	   //if (fTotal >200.00 ) {fShipping = 0; }
      }


      //fShipping  += (parseInt(ItemQuantity[i]) * parseFloat(ItemShipping[i]) );
     if(ItemFsTx[i] == 'true'){ 
      fFst       += ((fprodttl) * FstRate); }

if ( !TaxByRegion )


     if(ItemPsTx[i] == 'true'){ 
        
      }
	  fFst += (fShipping * ShippingFSTaxRate);	// calculates FST for shipping charges      
      strTotal    = moneyFormat(fTotal);
	  strFst      = moneyFormat(fFst);
	  strAddInfo  =	"";
      if ( !TaxByRegion ) 
      strShipping = moneyFormat(fShipping);

// ------------------- Cart Table Body -----------------------------------||

      if ( bDisplay ) {
			   if (even ^ 1 ) {
    strOutput += "<TR><TD></TD>";

    strOutput += "<TD CLASS=\"nopeven\" align=\"left\">"  + ItemName[i] + " - <I>";
         if ( ItemAddtlInfo[i]  != "" ) strAddInfo  =  ItemAddtlInfo[i];
				 if ( ItemAddtlInfo2[i] != "" ) strAddInfo +=  ItemAddtlInfo2[i];
				 if ( ItemAddtlInfo3[i] != "" ) strAddInfo +=  ItemAddtlInfo3[i];
				 if ( ItemUserEntry[i]  != "" ) strAddInfo +=  ItemUserEntry[i];
				 if ( ItemUserEntry2[i] != "" ) strAddInfo +=  ItemUserEntry2[i];
    strOutput += strAddInfo + "</I></TD>";

    strOutput += "<TD CLASS=\"nopeven\">" + ItemQuantity[i] + "</TD>";
    strOutput += "<TD CLASS=\"nopeven\" align=\"right\">"+ MonetarySymbol + moneyFormat(ItemPrice[i]) + "</TD>";

// Display either shipping or extended price in this column
         if ( DisplayShippingColumn ) {
            if ( parseFloat(ItemShipping[i]) > 0 )
    strOutput += "<TD CLASS=\"nopeven\" align=\"right\">"+ MonetarySymbol + moneyFormat(ItemShipping[i]) + "/ea</TD>";
            else
    strOutput += "<TD CLASS=\"nopeven\" ALIGN=\"center\">N/A</TD>";
         }
	else {
		strOutput += "<TD ALIGN=RIGHT CLASS=\"nopeven\" align=\"right\">"+ MonetarySymbol + moneyFormat(fprodttl) + "</TD>";
         }
    strOutput += "</TR>";
      
// repeat odd
} else {			
      if ( bDisplay ) {
         strOutput += "<TR><TD></TD>";

    strOutput += "<TD CLASS=\"nopentry\" align=\"left\">"  + ItemName[i] + " - <I>";
         if ( ItemAddtlInfo[i]  != "" ) strAddInfo  =  ItemAddtlInfo[i];
				 if ( ItemAddtlInfo2[i] != "" ) strAddInfo +=  ItemAddtlInfo2[i];
				 if ( ItemAddtlInfo3[i] != "" ) strAddInfo +=  ItemAddtlInfo3[i];
				 if ( ItemUserEntry[i]  != "" ) strAddInfo +=  ItemUserEntry[i];
				 if ( ItemUserEntry2[i] != "" ) strAddInfo +=  ItemUserEntry2[i];
    strOutput += strAddInfo + "</I></TD>";

         strOutput += "<TD CLASS=\"nopentry\">" + ItemQuantity[i] + "</TD>";
         strOutput += "<TD CLASS=\"nopentry\" align=\"right\">"+ MonetarySymbol + moneyFormat(ItemPrice[i]) + "</TD>";

         if ( DisplayShippingColumn ) {
            if ( parseFloat(ItemShipping[i]) > 0 )
               strOutput += "<TD CLASS=\"nopentry\" align=\"right\">"+ MonetarySymbol + moneyFormat(ItemShipping[i]) + "/ea</TD>";
            else
               strOutput += "<TD CLASS=\"nopentry\" ALIGN=\"center\">N/A</TD>";
         } else {
		strOutput += "<TD ALIGN=RIGHT CLASS=\"nopentry\" align=\"right\">"+ MonetarySymbol + moneyFormat(fprodttl) + "</TD>";
         }
         strOutput += "</TR>";
     }
  }		
}			


// ------------------- End of Cart Table Body -----------------------------------||

      if ( AppendItemNumToOutput ) {
         strFooter = i;
      } else {
         strFooter = "";
      }
// ----------Concatanate items for PPs or format email using Mailto form action--|| 
      if ( PaymentProcessor != '' ) {
         //Process description field for payment processors instead of hidden values.
         //Format Description of product as:
         // ID, Name, Qty X
         strPP += ItemId[i] + ", " + ItemName[i];
         if ( strAddInfo != "" )
            strPP += " - " + strAddInfo;
         strPP += ", Qty. " + ItemQuantity[i] + "\n";
      }
       else {

/// pass to own checkout script for Secpay integration ///////////////////////////////////

 //strOutput += "<input type=hidden name=\":" + ItemId[i] + strSpace + ItemName[i] + strSpace + strAddInfo + " :" + ItemQuantity[i] + ":" + MonetarySymbol + ItemPrice[i] + ":" + MonetarySymbol + moneyFormat(ItemTaxDue) + ":" + MonetarySymbol + moneyFormat(PricePlusTax) + ":" + MonetarySymbol + moneyFormat(LineTotal) + "\">";



  strOutput += "<input type=hidden name=\":"+  strFooter + ItemId[i] + "\" value=\"prod=" + ItemId[i] + " " + ItemName[i] + " " + strAddInfo +  " ,item_amount=" + ItemPrice[i] + " x " + ItemQuantity[i] +"\" />";

  strOutput += "<input type=hidden name=\"PandP\" value=\"prod=P and P ,item_amount=" + fShipping + " x 1\" />";

//////////////////////////////////////////////////////////////////////////////////////////

      } 
   }

// ------------------- Cart Table Footer -----------------------------------||

////////////////////////  Correction to remove P & P flat rate if cart is empty

if ( iNumberOrdered == 0){
strOutput += "<input type=hidden name=\"PandP\" value=\"No Items\" />";
}

			
   if ( bDisplay ) {
      strOutput += "<TR>";

      strOutput += "<TD CLASS=\"noptotal\" COLSPAN=4></TD>";  // hide sub total
      strOutput += "<TD CLASS=\"noptotal\"></TD>";            // hide sub total

     //strOutput += "<TD align=\"right\" CLASS=\"noptotal\" COLSPAN=4><B>"+strSUB+"</B></TD>";
     //strOutput += "<TD CLASS=\"noptotal\" ALIGN=\"right\"><B>" + MonetarySymbol + strTotal + "</B></TD>";
      strOutput += "</TR>";

      if ( DisplayShippingRow ) {



         strOutput += "<TR><TD CLASS=\"noptotal\" COLSPAN=4 align=\"right\"><B>"+strSHIP+"</B></TD>";
         strOutput += "<TD CLASS=\"noptotal\" ALIGN=\"right\"><B>" + MonetarySymbol + strShipping + "</B></TD>";
         strOutput += "</TR>";

      }


      if ( FstRate > 0 ) {
            strOutput += "<TR><TD CLASS=\"noptotal\" COLSPAN=4 align=\"right\"><B>"+strFST+"</B></TD>";
            strOutput += "<TD CLASS=\"noptotal\" ALIGN=\"right\"><B>"+ MonetarySymbol + strFst + "</B></TD>";
            strOutput += "</TR>";
				}		
///////////////////////////////////
      strOutput += "<TR><TD align=\"right\" CLASS=\"noptotal\" COLSPAN=4><B>P and P</B></TD>";
      strOutput += "<TD CLASS=\"noptotal\" ALIGN=\"right\"><B>P.O.A.</B></TD>";
      strOutput += "</TR>";
////////////////////////////////////
      strOutput += "<TR><TD align=\"right\" CLASS=\"noptotal\" COLSPAN=4><B>"+strTOT+"</B></TD>";
      strOutput += "<TD CLASS=\"noptotal\" ALIGN=\"right\"><B>"+ MonetarySymbol + moneyFormat((fTotal + fShipping + fFst)) +"</B></TD>";
      strOutput += "</TR>";
      strOutput += "</TABLE> </TD></TR></TABLE>";
// -----------------------End of Cart Table --------------------------------||
      
      
   }
   
   strOutput += "<input type=hidden name=\"amount\"    value=\""+ moneyFormat((fTotal + fShipping + fFst)) + "\">";

   document.write(strOutput);
   document.close();
}

//=====================================================================||
//               END NOP Design SmartPost Shopping Cart                ||
//=====================================================================||

