function clipItem(id){//, id
//alert(document.location.protocol+'//'+document.location.host+document.location.pathname);//////////
  for (i=0;i<document.images.length;i++) {
	  if (document.images[i].name=='clip_image'+id) {
		  //update clipped items counter and link images
		  if (document.images[i].src.search(/btn_plus/i) !== -1 ){
			if (yes!==1) document.clipped.counter.value++;
			document.images[i].src = '../assets/graphics/btn_minus.jpg';
			var yes = 1;
		  }else{
			//make sure counter value does not become negative
			if (document.clipped.counter.value > 0)	 {
				if (yes!==0) document.clipped.counter.value--;
			}
			document.images[i].src = '../assets/graphics/btn_plus.jpg';
			var yes = 0;
		  }
	  }
  } 
  //pass the new counter value for storage
  var count = document.clipped.counter.value; 
  clip = new Image();
  //alert("../../Connections/clipper.php?counter="+count+"&item="+id+"&checked="+yes);
  //clip.src = "../../Connections/clipper.php?counter="+count+"&item="+id+"&checked="+yes;
  clip.src = "../assets/incl/clipper.php?counter="+count+"&item="+id+"&checked="+yes;
}