/**
 * @created 2010-01-12
 * @author Christoffer Lejdborg
 * @author Jon Gotlin
 */

function User()
{
	this.user_id = null;
	this.shoppingcart = null;
	this.customer_details = {};

	/**
	 * Create validation rules for customer details form in the checkout area.
	 *
	 * @param form_rules hashmap
	 * @return void
	 */
	this.validateCustomerDetails = function(form_rules)
	{
		$("#order_form").validate({
			success: "valid",
			rules: form_rules,
			messages: {
				accept_terms: $('#error_terms').html()
			}

		});
	}
}