$(function(){
	
	$("input[type=radio]").css({border: 'none'});
	$("input[type=checkbox]").css({border: 'none'});

	$(".form_txt").attr({ value: 'Buraya yaziniz' });
	$(".form_txt").css({color: '#c3c3c3'});
	$(".tarih").attr({ value: 'GG / AA / YYYY' });
	$(".tarih").css({color: '#c3c3c3'});
	
	$("#telefon").mask("(999) 999 99 99");
	$("#faks").mask("(999) 999 99 99");
	$("#gsm").mask("(999) 999 99 99");
	$("#gsm2").mask("(999) 999 99 99");
	$(".tarih").mask("99 / 99 / 9999");
	$("#kart_no").mask("9999 9999 9999 9999");
	
	
	$(".form_txt").bind("focus",function(){
		var deger = $(this).val();
		if (deger == 'Buraya yaziniz'){							 
		$(this).attr({ value: '' });
		$(this).css({backgroundColor : '#f3d7d7',color:'#000'});
		} else {
		$(this).css({backgroundColor : '#f3d7d7',color:'#000'});
		}
	});
	
	$(".form_txt").bind("blur",function(){
		$(this).css({backgroundColor : '#fff'});
		var deger = $(this).val();
		if (deger == ''){
			$(this).attr({ value: 'Buraya yaziniz' });
			$(this).css({color: '#c3c3c3'});
		}
	});
	
	$(".tarih").attr({ value: 'GG / AA / YYYY' });
	
	$(".tarih").bind("focus",function(){
		var deger = $(this).val();
		if (deger == 'GG / AA / YYYY'){							 
		$(this).attr({ value: '' });
		$(this).css({backgroundColor : '#f3d7d7',color:'#000'});
		} else {
		$(this).css({backgroundColor : '#f3d7d7',color:'#000'});
		}
	});
	
	$(".tarih").bind("blur",function(){
		$(this).css({backgroundColor : '#fff'});
		var deger = $(this).val();
		if (deger == ''){
			$(this).attr({ value: 'GG / AA / YYYY' });
			$(this).css({color: '#c3c3c3'});
		}
	});

	/*
	$("#ileri_btn").attr("disabled", function() { return 'disabled' });
	if($("#ileri_btn").attr("disabled") == true){
		$("#ileri_btn").css({backgroundPosition : 'bottom',cursor : 'default'});
		$(".uyari").show();
	}else if($("#ileri_btn").attr("disabled") == false){
		$("#ileri_btn").css({backgroundPosition : 'top',cursor : 'pointer'});
		$(".uyari").hide();
	}
	*/
});