function form_AffiliateSignUp(auto_id) {
	this.DOMConstruct('form_AffiliateSignUp', auto_id);
}
form_AffiliateSignUp.prototype = new SK_FormHandler({
	name: 'affiliate_sign_up',
	
	fields: {
		full_name: {
			construct: function($input, form_handler) {},
			validate: function(value, required) {},
			focus: function() {}
		},
		email: {
			construct: function($input, form_handler) {},
			validate: function(value, required) {},
			focus: function() {}
		},
		password: {
			construct: function($input, form_handler) {},
			validate: function(value, required) {},
			focus: function() {}
		},
		password_conf: {
			construct: function($input, form_handler) {},
			validate: function(value, required) {},
			focus: function() {}
		},
		aff_captcha: {
			construct: function($input, form_handler) {
					var handler = this;
					
					
					$input.parents(".captcha_container:eq(0)").find("a").click(function(){
						handler.refresh_image($input); 
					});
					
					form_handler.bind("error", function(){
						handler.refresh_image($input); 
					});
				},
			validate: function(value, required) {},
			focus: function() {},
			$input: {},
			request_result: "",
			refresh_image: function($input){
					var image_id = $input.parents(".captcha_container:eq(0)").find("input[type=hidden]").val();
						$.ajax({
									url: "http://www.cupidhelps.com/field_responder.php",
									method: "post",
									dataType: "json",
									data: {action: "change_captcha_image"},
									success: function(result){
									 	if (result){
											$input.parents(".captcha_container:eq(0)").find("img").attr("src","http://www.cupidhelps.com/captcha/image.php?img_id="+result);
											$input.parents(".captcha_container:eq(0)").find("input[type=hidden]").val(result);
											$input.val("");								
										}
									 }
								});
				}
		}
	},
	actions: {
		signup: {
		fields: {"full_name":true,"email":true,"password":true,"password_conf":true,"aff_captcha":false}
		}
	},
	default_action: 'signup'
});
