Carrito de compras javascript

Codigo javascript creado por Reaz Hoque que nos permite simular el uso de un carrito de compra.

<html>
<head>
<!-- Copiar dentro del tag HEAD -->
<script type="text/javascript">
/* Copyright Reaz Hoque http://rhoque.com [email protected]
This code can be used for non-profit use only if the copyright notice is kept. */
var called=false;	
var T_Price=0;
var Line1_flag;
var Line1_print="";
var Line2_flag;
var Line2_print;
var Line3_flag;
var Line3_print;
var Line4_flag;
var Line4_print;
var Line5_flag;
var Line5_print;
var Line6_flag;
var Line6_print;
function compute(form){
called=true;
//-------Productos 1----------
if (form.Productline1[0].selected){
	Line1_print= "Ninguno [$0]";
	Line1_flag=0;
}
	 
 if (form.Productline1[1].selected){
	Line1_flag =84.95;
	Line1_print="Producto 1 [$84.95]";
} 
</script>  

Carrito de compras javascript 5.00/5 (100.00%) 1 voto