// checkbox agree function
(function($) { 
	$.fn.checkboxAgree = function(params) 
	{
		params = $.extend( {wrapper: "", checkBox: ""}, params); 
		
		this.each(function() 
		{
			
			$(this).mouseover(function() {
				params.wrapper.show(500);
			});
			
			$(this).click(function(){
				
				if(!params.checkBox.is(":checked"))
				{
					alert("You must agree to the terms and conditions to proceed.");
					return false;
				}				
			});
		});	
		// allow jQuery chaining
		return this;
	}
})(jQuery);