
 bueno tengo los siguientes archivos modificados, solo he modificado el carrito.php y colores.php, los otros dos son los mismos.....ojala les sirva.
   CARRITO.PHP 
<? 
class carrito { 
       var $num_productos; 
       var $array_id_prod; 
    var $array_col_prod; 
    var $array_cant_prod; 
    var $array_pu_prod; 
       var $array_precio_prod; 
    function carrito () { 
           $this->num_productos=0;
           $this->array_col_prod=array(); 
           $this->array_cant_prod=array(); 
           $this->array_pu_prod=array(); 
           $this->array_precio_prod=array();   
    } 
    function introduce_producto($id_prod, $col_prod, $cant_prod, $pu_prod){ 
   // echo $id_prod." ".$nombre_prod." ".$col_prod." ".$tam_prod." ".$cant_prod." ".$pu_prod."<br> ";
        $this->array_id_prod[$this->num_productos]=$id_prod; 
        $this->array_col_prod[$this->num_productos]=$col_prod; 
        $this->array_cant_prod[$this->num_productos]=$cant_prod; 
        $this->array_pu_prod[$this->num_productos]=$pu_prod; 
        $this->array_precio_prod[$this->num_productos]= $this->array_cant_prod[$this->num_productos] * $this->array_pu_prod[$this->num_productos]; 
        $this->num_productos++; 
        //echo "Numero productos: ".$this->num_productos;
    }  
    //Muestra el contenido del carrito de la compra 
    //ademas pone los enlaces para eliminar un producto del carrito 
    function imprime_carrito(){ 
        $sw=0; 
        for ($i=0;$i<$this->num_productos;$i++)    if (!$this->array_id_prod[$i]==0) $sw=1;  
        if ($sw){ 
        $suma = 0; 
        echo ' 
            <table border="1" cellpadding="3" cellspacing="0" bordercolor="#000000" bgcolor="#FFFFCE"> 
            <form name="form" method="post" action="compras.php" align="center"> 
              <tr align="center"> 
                <td class="rojo">Id Product</td> 
                <td class="rojo">Color</td> 
                <td class="rojo">Quan</td> 
                <td class="rojo">P/U</td> 
                <td class="rojo">Price</td> 
                <td> </td> 
              </tr>';  
        for ($i=0;$i<$this->num_productos;$i++){ 
            if (!$this->array_id_prod[$i]==0){ 
                echo '<tr>'; 
                echo "<td>" . $this->array_id_prod[$i] . "</td>"; 
                echo "<td align='center'>" . $this->array_col_prod[$i] . "</td>"; 
                echo "<td align='center'>" . $this->array_cant_prod[$i] . "</td>"; 
                echo "<td align='right'>" . $this->array_pu_prod[$i] ." \$us</td>";     
                echo "<td align='right'>" . $this->array_precio_prod[$i] . " \$us</td>"; 
                echo "<td align='center'><a href='".$PHP_SELF."?opc=deleteproducto&linea=$i'>D  elete Product</td>"; 
                echo '</tr>'; 
                $suma += ($this->array_precio_prod[$i]); 
            } 
        } 
        echo "<tr><td colspan='4'><b>TOTAL PRICE:</b></td><td> <b>$suma \$us</b></td><td>"; 
        echo "<input type='hidden' name='total' value='".$suma."'>"; 
        echo "<input type='submit' name='Submit' value='Buy Product' class='boton'></td></tr>"; 
        echo "</form>"; 
        echo "</table>";   
        } // if sw valida 
    } 
    function elimina_producto($linea){ 
        $this->array_id_prod[$linea]=0; 
    } 
}  
    session_start(); 
if (!session_is_registered("ocarrito")){   
    $_SESSION["ocarrito"] = new carrito();  
    session_register("ocarrito");
} 
?>     
COLORES.PHP 
<HTML><HEAD>
<TITLE>Colores</TITLE>
</HEAD><BODY>
<TABLE width=393 border="0" align="center" cellPadding="0" cellSpacing="0">
  <TBODY>
    <TR> 
      <TD height="62" colspan="3" align="center"> </TD>
    </TR>
    <TR> 
      <TD width="110" height="25" align="center" > 
      <a href="#" onclick="opener.form1.col1.value='001'; window.close(); return false;">COD 001</a></TD>
      <TD width="110" > 
      <a href="#" onclick="opener.form1.col1.value='002'; window.close(); return false;">COD 002</a></TD>
      <TD width="110" > 
      <a href="#" onclick="opener.form1.col1.value='003'; window.close(); return false;">COD 003</a></TD>
    </TR>
    <TR> 
      <TD height="62" colspan="3" > </TD>
    </TR>
    <TR> 
      <TD height="25"> 
      <a href="#" onclick="opener.form1.col1.value='006'; window.close(); return false;">COD 006</a></TD>
      <TD > 
      <a href="#" onclick="opener.form1.col1.value='007'; window.close(); return false;">COD 007</a></TD>
      <TD > 
      <a href="#" onclick="opener.form1.col1.value='008'; window.close(); return false;">COD 008</a></TD>
    </TR>
  </TBODY>
</TABLE>
</BODY></HTML>   
ME_AMP01.PHP
 
 
POPUP.jvs