// JavaScript Document

function focar(objeto, valor) {
	if(objeto.value == valor){ objeto.value = ""; }
}

function desfocar(objeto, valor) {
	if(objeto.value == "" || objeto.value == " "){ objeto.value = valor; }
}

function checkACidade(field, rules, i, options){
	if (field.val() == "Cidade") {
		// this allows to use i18 for the error msgs
		return options.allrules.validate2fields.alertText;
	}
}

function checkAMensagem(field, rules, i, options){
	if (field.val() == "Digite sua mensagem") {
		// this allows to use i18 for the error msgs
		return options.allrules.validate3fields.alertText;
	}
}

function checkNome(field, rules, i, options){
	if (field.val() == "Nome") {
		// this allows to use i18 for the error msgs
		return options.allrules.validate4fields.alertText;
	}
}
