		window.addEvent('domready', function(){
			$('siteSubmit').addEvent('submit', function(e) {
				/**
				 * Prevent the submit event
				 */
				new Event(e).stop();

				/**
				 * This empties the log and shows the spinning indicator
				 */
				var log = $('site_submit').empty(); //.addClass('ajax-loading');
			
				/**
				 * send takes care of encoding and returns the Ajax instance.
				 * onComplete removes the spinner from the log.
				this.send({url:'owner-submit.php',
					update: log,
					onComplete: function() {
						//log.removeClass('ajax-loading');
					}
				});
				 */
				


				req = new Request.HTML({ 
				   url: e.target.get('action'), update:'site_submit',
				}); 
				req.post($('siteSubmit')); 
			
			});
		}); 
