$(document).ready(function(){
						   $('#epostalist').click(function(){
														   var email = $('#postaliste').val();
														   var form = $("#maillistform");
														   var sonuc = $("#mailsonuc");
														   var hasError = false;
        												   var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
														   	if (email == "") {
															  $("label#postaemail_error").show();
															  $("input#postaliste").focus();
															  $("label#postaemail_error").fadeOut("slow");
															  $('#postaliste').css({'background-color' : 'yellow'});
															  return false;
															}
															else if(!emailReg.test(email)) {
																	$("#eposta").after($("label#postaemail_error2").show());
																	$("input#postaliste").focus();
																	$("label#postaemail_error2").fadeOut("slow");
																	$('#postaliste').css({'background-color' : 'yellow'});
																	return false;
															}
															$.ajax({
																type: "POST",
																url: "pages/liste_isle.php",
																data: "posta="+email,
																success: function(msg){
																	
																	form
																	.css({visibility:"visible"})
																	.css({opacity:"1"})
																	.css({display:"none"})
																;
																sonuc.css({visibility:"visible"});
																}
															});
														  
														  
														  });
						   
						   });
