	function refresh(id, upsell, flowExecutionKey) {
		var page = upsell ? "upsell.html" : "multiproofjob.html";
		new Ajax.Updater('multiproofpartial', page + '?ajax&flowExecutionKey=' + flowExecutionKey + '&id=' + id, { method: 'get', evalScripts: true });
	}
	
	function includeInBundle(id, ctrl) {
		$('upsellform')['include_' + id].value = ctrl.checked ? "true" : "false"; 
	}
	
	function closeUpsellLightbox() {
		// show the bar to indicate something is happening
		//$('multiproofpartial').innerHTML = "<div style='text-align: center;'><img src='imgs/loader-bar.gif' /></div>";
		
		//new Ajax.Request("upsell.html?submit&" + $('upsellform').serialize(), 
		//	{ method : 'post',
		//	  onComplete : function(transport) {
		//	  	// close the lightbox!
		//	  	lightbox.prototype.deactivate();
		//	  }
		//	});
		
		// advance the flow on
		$('upsellform').submit();
	} 
	
	function selectAlternative(index) {
		$('upsellform')['alternative'].value = index;
		$('upsellform').submit();
	}
