// Programação: Fabrício Brandão
// Contato: fabricio@eesign.net
//
// Última modificação: nova função > getEmail
// Data: 14/10/2005 15:58

var colorTrue="ff6633"
var colorFalse="ffffff"

function getVazio(fr, msg){
	str=limparstring(fr[i].value)
	if (str == "") {
		alert(msg);
		fr[i].style.backgroundColor=colorTrue;
		fr[i].select();
		return true;
	}else{
		fr[i].style.backgroundColor=colorFalse;
	}
}

function getSelecionado(fr, msg){
	if (fr[i].value == "") {
		alert(msg);
		fr[i].style.backgroundColor=colorTrue;
		fr[i].focus();
		return true;
	}else{
		fr[i].style.backgroundColor=colorFalse;
	}
}

function getData(fr, msg){
	if ((!vData(fr[i].value)) || (fr[i].value == "")){
		alert(msg);
		fr[i].style.backgroundColor=colorTrue;
		fr[i].select();
		return true;
	}else{
		fr[i].style.backgroundColor=colorFalse;
	}
}

function getEmail(fr, msg){
	if (!vEmail(fr[i].value)){
		alert(msg);
		fr[i].style.backgroundColor=colorTrue;
		fr[i].select();
		return true;
	}else{
		fr[i].style.backgroundColor=colorFalse;
	}
}


