__Order = function(){
	this.container = $_('#OSCPlaceOrder')
	this.status = $_('#OSCOrderStatus')
	this.control = $_('#btn_box');
}

__Order.prototype.enable = function(){
	this.container.style.display = '';
}


__Order.prototype.disable = function(){
	this.container.style.display = 'none';
}

__Order.prototype.message = function(msg){
	this.status.style.display = msg ? '':'none';
	this.status.innerHTML = msg;
}

__Order.prototype.$TEST = function(cbf){
	// When test is launched, hide button to prevent dbl clicks
	
	var self = this;
	
	if($_('#OSCAgreeTerms')){
		if(!$_('@osc_agree_terms').checked){
			$_('#OSCAgreeTermsNotice').CSS({display:''});
			$_('#OSCAgreeTerms').mutate({backgroundColor:'red'}, {backgroundColor:'#fffddf'},60, function(){setTimeout(function(){$_('#OSCAgreeTerms').CSS({backgroundColor:''})}, 100)});
			return false;
		}else{
			$_('#OSCAgreeTermsNotice').CSS({display:'none'});
		}
	}
	
	Profile.$TEST(function(){
		ShippingMethod.$TEST(function(){
			PaymentMethod.$TEST(function(){
				if(cbf) cbf();
			})
		})
	})
	
	return false; 		
}


