$(document).ready(function(){

	$('#create-account').submit(function() {
		degerler = $('#create-account').serialize();
		$('#ajax-cevap').html('Loading...');
		$.ajax({
			type: 'POST',
			url: LINK + 'create-account/',
			//contentType: "text/html; charset=utf-8",
			data: degerler,
			success: function(cevap) {
				//alert(cevap);
				if(cevap == 1)
				{
					html = "Your account has been created succesfully and an email was sent to you. <br /> But, you have to <b>CONFIRM</b> your email address. Please <b>Check</b> your mail box to confirm our email address.";
					$('#ajax-cevap').addClass('success');
					$('#ajax-cevap').html(html);
					$('form#create-account').slideUp('fast');
				}
				else
				{
					$('#ajax-cevap').addClass('warning');
					$('#ajax-cevap').html(cevap);
				}
			}
		});
		
		return false;
	});
	
	//new codes here...
});

