function ajax_submit(formObj,resultarea)
{
  var myAjax = new Ajax.Updater( {success: resultarea}, '/', 
	{ 
		method: 'post',
		parameters: Form.serialize(formObj),
		onFailure: reportError,
		evalScripts: true
	});
}

function additem()
{
  var myAjax = new Ajax.Updater( {success: 'shipmentcontents'}, '/gold.additem/', 
	{ 
		method: 'post',
		parameters: Form.serialize($('goldmailer')),
		onFailure: reportError,
		evalScripts: true
	});
}


function reportError(request)
{
  alert('Sorry. There was an error processing your request.');
}