function ValidateNotEmpty( values){
	for(var i=0; i<values.length; i++){
		if(values[i] == ''){
			alert("Vyplňte prosím požadované údaje.");
			return false;
		}
	}
	return true;
}

function ValidateIsNumber( elmnt, msg ){
	if( isNaN(elmnt.value) ){
		alert(msg);
		elmnt.focus();
		return false;
	}
	return true;
}

function ValidateIsNotNegative(elmnt, msg){
	if( isNaN(elmnt.value) ){
		alert(msq);
		elmnt.focus();
		return false;
	}
	if(elmnt.value <= 0){
		alert(msg);
		elmnt.focus();
		return false;
	}
	return true;
}


function ValidateEmail( email){
	var regStr = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if( !regStr.test(email)){
		alert("Vámi zadaná e-mailová adresa nemá platný formát.");
		return false;
	}
	return true;
}