
function CheckFields()
{
	var i = 0;
	$('#doctor_register input[class*=req]').each(function(){
		
		if ($(this).val().length == 0) {
			$(this).addClass('red_marked');
			i++;
		}
		
	});
	$('#doctor_register select[class*=req]').each(function(){
		if ($(this).val() == 0) {
			$(this).addClass('red_marked');
			i++
		}
	});
	if (i > 0) {
		$('#info').show();
		return false;
	}
	else
	return true;
}
function ShowRegisterForm()
{
	$("#doctor_register").dialog({
			bgiframe: true,
			height: 480,
			width:520,
			resizable: false,
			modal: true,
			closeOnEscape: false,
			title: 'Zarejestruj się',
		});
}
function ShowLoginForm()
{
	$("#doctor_login").dialog({
			bgiframe: true,
			height: 160,
			width:500,
			resizable: false,
			modal: true,
			closeOnEscape: false,
			title:'Zaloguj się',
			open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); }
		});

}
function ShowRemindForm()
{
	$("#doctor_remind").dialog({
			bgiframe: true,
			height: 110,
			width:440,
			resizable: false,
			modal: true,
			closeOnEscape: false,
			title: 'Przypomnij hasło',
		});
}

