function confirm_submission(page_name){
	if (page_name == "register"){
		$('#url').val("");
		$('#email').val("");
		$('#checkbox_register').removeAttr("checked");
		$('#register-form').css({ "display": "none"});
		$('#title_register').css({ "display": "none"});
		$('#subtitle').css({ "display": "none"});
		$("#thanks_notification")
    		.stop(true, true)
    		.html("<div style='width: 340px; height: 100px; margin-top:10px; padding-top: 20px; padding-left: 50px; resize: none;'><p style='float: center; font-size: 28px; color: #00AEEF;'>Thanks for registering!</p></div>")
    		.css({ "display": "none"});
    		
    	$("#thanks_notification").data('timer', setTimeout(function() { $("#thanks_notification").fadeIn('slow');}, 500));
		$("#thanks_notification").data('timer', setTimeout(function() { $("#thanks_notification").fadeOut('slow');}, 3500));
		$("#thanks_notification").data('timer', setTimeout(function() { $.fancybox.close(); $("#embed_container").show(); $("#get_button_submit").hide(); updateCodeWebsite(); }, 4000));
	}else{
		if (page_name == "support"){
			$('#name').val("");
			$('#email').val("");
			$('#category').val("defaul");
			$('#other_category').val("");
			$('.other_category').fadeOut('slow');
			$('#message').val("");
			$("#thanks_notification")
	        .stop(true, true)
	        .html("<br/><div style='width: 255px; height: 30px; background-color: #E4EFFB; border: 1px solid #02b0f2; border-radius: 5px 5px 5px 5px; box-shadow: 0 0 2px #C2C2C2 inset; font-size: 12px; resize: none; padding-top: 5px; padding-bottom: 2px;'><p style='float: center; color:black;'>Your message has been sent. Thank you!</p></div>")
	        .css({ "display": "none"}); //E4EFFB
	        $("#thanks_notification").data('timer', setTimeout(function() { $("#thanks_notification").fadeIn('slow');}, 500));
			$("#thanks_notification").data('timer', setTimeout(function() { $("#thanks_notification").fadeOut('slow');}, 3500));
		}else{
			if (page_name == "contact"){
				$('#name').val("");
				$('#email').val("");
				$('#phone').val("");
				$('#topic').val("defaul");
				$('#other_topic').val("");
				$('.other_topic').fadeOut('slow');
				$('#message').val("");
				$("#thanks_notification")
		        .stop(true, true)
	        	.html("<br/><div style='width: 255px; height: 30px; background-color: #E4EFFB; border: 1px solid #02b0f2; border-radius: 5px 5px 5px 5px; box-shadow: 0 0 2px #C2C2C2 inset; font-size: 12px; resize: none; padding-top: 5px; padding-bottom: 2px;'><p style='float: center; color:black;'>Your message has been sent. Thank you!</p></div>")
		        .css({ "display": "none"});
		        $("#thanks_notification").data('timer', setTimeout(function() { $("#thanks_notification").fadeIn('slow');}, 500));
				$("#thanks_notification").data('timer', setTimeout(function() { $("#thanks_notification").fadeOut('slow');}, 3500));
			}else{
				if (page_name == "feedback"){
					$("#feedback_email").val("");
					$('#feedback_message').val("");
					$("#feedback_email").css({ "display": "none"});
					$('#feedback_message').css({ "display": "none"});
					$('#title').css({ "display": "none"});
					$('#subtitle').css({ "display": "none"});
					$('#email_title').css({ "display": "none"});
					$('#feedback_button').css({ "display": "none"});
					$('#privacy_link').css({"display":"none"});
					$("#thanks_notification_feedback")
		        		.stop(true, true)
		        		.html("<div style='width: 380px; height: 100px; margin-top:10px; padding-top: 20px; padding-left: 20px; resize: none;'><p style='float: center; font-size: 28px; color: #00AEEF;'>Your feedback has been sent.</p><p style='float: center; font-size: 28px; color: #00AEEF; padding-left:110px'>Thank you!</p></div>")
		        		.css({ "display": "none"});
		        		
		        	$("#thanks_notification_feedback").data('timer', setTimeout(function() { $("#thanks_notification_feedback").fadeIn('slow');}, 500));
					$("#thanks_notification_feedback").data('timer', setTimeout(function() { $("#thanks_notification_feedback").fadeOut('slow');}, 3500));
					$("#thanks_notification_feedback").data('timer', setTimeout(function() { $.fancybox.close();}, 4000));
					$("#feedback_email").data('timer', setTimeout(function() {$("#feedback_email").show();}, 5000));
					$('#feedback_message').data('timer', setTimeout(function() {$('#feedback_message').show();}, 5000));
					$('#title').data('timer', setTimeout(function() {$('#title').show();}, 5000));
					$('#subtitle').data('timer', setTimeout(function() {$('#subtitle').show();}, 5000));
					$('#email_title').data('timer', setTimeout(function() {$('#email_title').show();}, 5000));
					$('#feedback_button').data('timer', setTimeout(function() {$('#feedback_button').show();}, 5000));
					$('#privacy_link').data('timer', setTimeout(function() {$('.privacy_link').show();}, 5000));
		        }
			}
		}
	}
	
}

