Date.prototype.getWeek = function() {
	var determinedate = new Date();
	determinedate.setFullYear(this.getFullYear(), this.getMonth(), this.getDate());
	var D = determinedate.getDay();
	if(D == 0) D = 7;
	determinedate.setDate(determinedate.getDate() + (4 - D));
	var YN = determinedate.getFullYear();
	var ZBDoCY = Math.floor((determinedate.getTime() - new Date(YN, 0, 1, -6)) / 86400000);
	var WN = 1 + Math.floor(ZBDoCY / 7);
	return WN;
}

$(document).ready(function(){
	if($("#reg-email").val()==''){
		$("#reg-email").val('E-mail');
		$("#reg-email").one('focus', function(e){
			$(this).val('');
		});
	}
	if($("#reg-firstname").val()==''){
		$("#reg-firstname").val('Jméno');
		$("#reg-firstname").one('focus', function(e){
			$(this).val('');
		});
	}
	if($("#reg-surname").val()==''){
		$("#reg-surname").val('Příjmení');
		$("#reg-surname").one('focus', function(e){
			$(this).val('');
		});
	}

});
