function Comprar()
{
   document.frmbq.action = "carrito.asp";
   document.frmbq.submit();
}


function en(list)
{
   if (list.options[list.selectedIndex].value != "") {
      location.href = list.options[list.selectedIndex].value;
   }
}



function selcolor(i)
{
   document.forms[0].Color.options[i].selected = true;

}


function VntColor(ClId, ClNb)
	{	
		popwin = window.open('Color.asp?Id=' + ClId + "&ClNb=" + ClNb, 'Color', 'status=no,scrollbars=no,resizable=no,width=620,height=400');
		popwin.name = 'Color';
		if (popwin.opener == null)
		    popwin.opener = self;
	}
	
	
function ImgPr(ind)
	{	
		popwin = window.open('Color.asp?Id=' + ClId + "&ClNb=" + ClNb, 'Color', 'status=no,scrollbars=no,resizable=no,width=600,height=300');
		popwin.name = 'Color';
		if (popwin.opener == null)
		    popwin.opener = self;
	}




//if (document.images) {
//c1 = new Image(200,200); c1.src = "<%=Request("Id")%>_1.jpg";
//c2 = new Image(200,200); c2.src = "<%=Request("Id")%>_2.jpg";}

/* Function that swaps images. */



function FWFindImage(doc, name, j) {
    var theImage = false;
    if (doc.images) {
        theImage = doc.images[name];
    }
    if (theImage) {
        return theImage;
    }
    if (doc.layers) {
        for (j = 0; j < doc.layers.length; j++) {
            theImage = FWFindImage(doc.layers[j].document, name, 0);
            if (theImage) {
                return (theImage);
            }
        }
    }
    return (false);
}



