function block(id) {
	if (document.getElementById(id).style.display == "none") {
		document.getElementById(id).style.display = "block";
	} else {
		document.getElementById(id).style.display = "none";
	}
}

function randomNumber(min_random, max_random) {
	var range = max_random - min_random + 1;
	return Math.floor(Math.random()*range) + min_random;
}

function captchaReload(){
	$('#captcha_img').attr({ src: '/captcha/?' + randomNumber(000000,999999) });
}
