function transferSelected(vBoxOut, vBoxIn, vOutIndice){
	if ((vOutIndice >= 0) && (vOutIndice <= vBoxOut.length - 1)){
		vInIndice = ++vBoxIn.length - 1;

		vBoxIn.options[vInIndice].value = vBoxOut.options[vOutIndice].value;
		vBoxIn.options[vInIndice].text = vBoxOut.options[vOutIndice].text;
		vBoxOut.options[vOutIndice] = null;
	}
}


function selectAllOptions(selectObj){

	for (var i = 0; i < selectObj.length ; i++){
		selectObj.options[i].selected = 1;
	}

}



function avaliaForm(formAtual, camposToleradosBrancos){

	erros = 0;

	for (i = 0 ; i < formAtual.length ; ++i){
		if (formAtual.elements[i].value == ''){
			alert('É necessário preencher todos os campos');
			formAtual.elements[i].focus();

			erros = 1;

			break;
		}
	}

	if (erros == 0){
		formAtual.submit();
	}
}
