function launch(){

			// you must use a callbackYES function to perform the "yes" action
			confirm("We've noticed that its been a while since you checked your registration details - do you want to review and update them", function () {
				setCookie('userresponse',true,6);
				document.userresponseform.submit();
			}, function () {				
				setCookie('userresponse',false,6);
				document.userresponseform.submit();
			});

	}



function confirm(message, callbackYES, callbackNO) {

	$('#confirm').modal({
		//closeHTML:"<a href='#' title='Close' class='modal-close'>x</a>",
		position: ["30%",],
		overlayId:'confirm-overlay',
		containerId:'confirm-container', 
		onShow: function (dialog) {
	
		$('.message').text(message);
			//$('.message', dialog.data[0]).append(message);
          
			// if the user clicks "no"
			$('.no').click(function () {
				
		         //event.preventDefault();
		         
				// call the callbackNO
				if ($.isFunction(callbackNO)) {
					callbackNO.apply();
				}
				// close the dialog
				$.modal.close();
			});			

			// if the user clicks "yes"
			$('.yes').click(function () {
				// call the callbackYES
				if ($.isFunction(callbackYES)) {
					callbackYES.apply();
				}
				// close the dialog
				$.modal.close();
			});	
			  
		}
	});
}


