$(document).ready(function(){ 	

	$('#continue').click(
			function(e) {
				e.preventDefault();
			
				$("#continue").attr("disabled","disabled");
													
		  		var data = $('#form1').serialize();
			
				$.post('contact-do.php?jsoncallback=?',data,function(json) {
				
					if (json.response == "1") {
						window.location = json.details;
										
					} else {
					
						alert(json.details);
						$("#continue").attr("disabled","");
					}
				
				},'json');
			}
		);

});
