function process_clipping(image_id){
	var xmlhttp;	var browser = navigator.appName;	if (browser == "Microsoft Internet Explorer")	{		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");	}	else	{		xmlhttp = new XMLHttpRequest();	}	xmlhttp.open("GET", "inc/functions/clippings_ajax.php?clipping_id=" + image_id, true);	xmlhttp.onreadystatechange = function() {		if (xmlhttp.readyState == 4) {			xml_result = xmlhttp.responseText;			set_clipping_icon("clipping_" + image_id, xml_result);			return false;		}	}	xmlhttp.send(null);}
function process_clipping_fullsize(image_id){
	var xmlhttp;	var browser = navigator.appName;	if (browser == "Microsoft Internet Explorer")	{		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");	}	else	{		xmlhttp = new XMLHttpRequest();	}	xmlhttp.open("GET", "inc/functions/clippings_ajax.php?clipping_id=" + image_id + "&fullsize=1", true);	xmlhttp.onreadystatechange = function() {		if (xmlhttp.readyState == 4) {			xml_result = xmlhttp.responseText;			set_clipping_icon("clipping_" + image_id, xml_result);			return false;		}	}	xmlhttp.send(null);}function set_clipping_icon(image_id, image_url){	document.getElementById(image_id).src = image_url;
	if (image_url == "/images/fullsize/thumb_clip_normal.gif")
	{
		document.getElementById("clippings_text").childNodes[0].nodeValue = "Add photo to clippings";
	}
	else
	{
		document.getElementById("clippings_text").childNodes[0].nodeValue = "Remove photo from clippings";
	}}

