var formProcessor = function(id) {
	this.id = id;
	this.init();
}

formProcessor.prototype = {
	
	init: function() {
		var link = $('#form_' + this.id);
		var self = this;
		
		link.click(function() {
			var url = site_url +'forms/' + self.id + '?key=' + sys_key;
            
            $(document).bind('loading.facebox', faceboxBorderShow);
            $(document).bind('reveal.facebox', faceboxBorderHide);
            $(document).bind('afterClose.facebox', faceboxDisableBorderHideShow);

            jQuery.facebox({ ajax: url });
            return false;
		});
	}

};