$(function() {

$(".submit").click(function() {

	var store = $("#store").val();
	var email = $("#email").val();
    var dataString = 'store='+ store + '&email=' + email;
	
	if(email=='')
     {
	$("#flash").fadeIn(400).html('');
     }
	else
	{
	$("#flash").show();
	$("#flash").fadeIn(400).html('');
$.ajax({
		type: "POST",
  url: "/include/email.php",
   data: dataString,
  cache: false,
  success: function(html){
 
  $("ol#update").append(html);
  $("ol#update li:last").fadeIn("slow");
   document.getElementById('store').value=store;
    document.getElementById('email').value='';
	$("#email").focus();
 
  $("#flash").hide();
	
  }
 });
}
return false;
	});



});

