/*  Encore JavaScript Tools, version 0.3 Alpha
 *  (c) 2008 Alan Cole
 *
 *  This toolset uses Prototype which is freely distributable under the terms of 
 *  an MIT-style license. For details, see the Prototype web site: http://www.prototypejs.org/
 *
/*--------------------------------------------------------------------------*/

/* interal alpha version, unstable for real life use */

if(typeof Prototype=='undefined')
       throw("Sorry, you need prototype for encore to work!");

var encore = {

	version: 0.3,
	emptyFunction: function(){ },
	k: function(k){ return k },
	

	formSend: function(ourForm){
		$(ourForm).request({
		method: 'get',
		onComplete: function(transport){
				$('form-status').show();
				$('form-status').update(transport.responseText);
				$(ourForm).reset();
			},
		});
	},

};
