function mediaSubmitter( id, updateURL, ajaxSubmitterInstance ){
	this.ajaxInstance = ajaxSubmitterInstance;
	this.updateURL = updateURL;
	this.displayItem = document.getElementById(id);
	this.displayItem.submitter = this;
	
	this.formItem = document.getElementById('input-'+id);
	this.formItem.submitter = this;
	this.formItem.style.display = 'none';
	this.displayItem.style.display = 'block';
	
	this.itemValue = this.formItem.value;
	
	this.formItem.onchange = function() {
		if ( this.submitter.itemValue != this.value ) {
			this.submitter.itemValue = this.value;
			this.submitter.ajaxInstance.makeRequest( this.submitter.updateURL+'&'+this.name+'='+this.value, this.submitter.displayItem, this.value );
		}
		this.style.display = 'none';
		this.submitter.displayItem.style.display='block';
	}
	
	this.formItem.onblur = function() {
		if ( this.submitter.itemValue != this.value ) {
			this.submitter.itemValue = this.value;
			this.submitter.ajaxInstance.makeRequest( this.submitter.updateURL+'&'+this.name+'='+this.value, this.submitter.displayItem, this.value );
		}
		this.style.display = 'none';
		this.submitter.displayItem.style.display='block';
	}
	
	this.displayItem.onclick = function() {
		this.style.display = 'none';
		this.submitter.formItem.style.display='block';
		this.submitter.formItem.focus();
	};
};