///////////////////////////////////////////////////////////
//	Génericas de formularios
//
//


// Teste de campo vazio
function isEmpty(textcontrol){
     str = textcontrol.value;
     for (i = 0; i<str.length; i++){
        chr = str.substring(i, i + 1);
        if (chr != ' '){
           return false;
        }
     }
     return true;
}

// Valida preenchimento de um campo de form
function isEmtyField(formfield){
	if (isEmpty(formfield)){
		formfield.focus();
		return 1;
	}
	return 0;
}