

function msg_ok(){
	if (window.confirm("A sua mensagem irá ser enviada."+ "\n Agradecemos a sua colaboração.")){
		return true;
	 } 
	 return false;		
}



function verifica_dados(){
if (document.new_seccao.t_desig.value==""){
		msg= "Tem que preencher o campo." + "\n" ;
		window.alert (msg);
		document.new_seccao.t_desig.focus(); 
		return false;
	} 
	return true
}


	 
function verifica_iva(){
	var x=document.new_tx_iva.t_tx.value;
	var str = x.replace(',',".");
	document.new_tx_iva.t_tx.value=str;
if (document.new_tx_iva.t_tx.value==""){
		msg= "Tem que preencher o campo." + "\n" ;
		window.alert (msg);
		document.new_tx_iva.t_tx.focus(); 
		return false;
	}else if (isNaN(str)){
		
		msg= "A taxa tem que ser numérica." + "\n" ;
		window.alert (msg);
		document.new_tx_iva.t_tx.focus(); 
		return false;
	 }
	return true
}
