function cart_delete(form, id)
{
	form.elements['delete'].value = id;
	form.elements['action'].value = 'delete';
	form.submit();
}
function winop2(imgurl, width, height)
{
    title = "window";
    im = window.open('', 'win','top=40,left=40,width='+width+',height='+height+', scrollbars=no, menu=no,status=no,resizable=no');
    im.focus();
    im.document.open ("text/html");
    im.document.write ('<html><title>'+title+'</title><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor=#ffffff><table width=100% height=100% border=0 cellpadding=0 cellspacing=0><tr><td align=center><a href="javascript: window.print();"><img src='+imgurl+' width='+width+' height='+height+' border="0"></a></td></tr></table></body></html>');
    im.document.close ();
}
function show_big_img(winnum,title,width,height,imgurl)
{
  im=window.open('','win'+winnum,'top=40,left=40,width='+width+',height='+height+',scrollbars=no,menu=no,status=yes,resizable=no');
  im.focus();
  im.document.open ("text/html");
  im.document.write ('<html><title>'+title+'</title><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor=#ffffff><img src='+imgurl+'></body></html>');
  im.document.close ();
}

function winop(id, width, height)
{
	height += 20;
	im = window.open('', 'big_foto' + id,'top=40,left=40,width='+width+',height='+height+', scrollbars=no, menu=no,status=yes,resizable=no');
	im.focus();
}  