// modal box for TurboTax link

$(document).ready(function () {
	$('#confirmTaxDialog a.confirm').click(function (e) {
		e.preventDefault();
		// example of calling the confirm function
		// you must use a callback function to perform the "yes" action
		confirmtax("You are leaving the secured 5Point website. Continue?", function () {
			window.location.href = 'http://affiliates.cutaxservices.com/?cuid=texaco';
		});
	});
});
function confirmtax(message, callback) {
	$('#confirmTax').modal({
		close:false,
		position: ["20%",],
		overlayId:'confirmTaxModalOverlay',
		containerId:'confirmTaxModalContainer', 
		onShow: function (dialog) {
			dialog.data.find('.message').append(message);
			// if the user clicks "yes"
			dialog.data.find('.yes').click(function () {
				// call the callback
				if ($.isFunction(callback)) {
					callback.apply();
				}
				// close the dialog
				$.modal.close();
			});
		}
	});
}