// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
PartnerDraftTests = {
	submit: function(){
		var url = "/partners/" + $('execute_partner_id').value + "/partner_drafts/";
		var content = $('edit_content').value;
		new Ajax.Request(url,{
			method: 'post',
			contentType: "application/xml",
			postBody: content,
			onSuccess: function(transport) {
				$('execute_response').innerHTML = transport.responseText;
				$('execute_response').show();
			}
		});
	}
}