function VerificaCampo(Campo, Nome) {
	if (trim(Campo.value)=="") {
		alert("O campo \""+Nome+"\" não pode estar em branco!");
		Campo.value="";
		Campo.focus();
		return false;
	}
	else
		return true;	
}

function VerificaEMail(Campo) {
	if (trim(Campo.value)=="" || Campo.value.indexOf('@', 0) == -1 || Campo.value.indexOf('.', 0) == -1) {
		alert("E-Mail invalido!");
		Campo.focus();
		Campo.select();
		return false;
	}
	else
		return true;
}

function trim(string) {
	var str = string.replace(/^\s*/, "");
	str = str.replace(/\s*$/, "");
	return str;
}