function show(objDiv) 
{ 
     document.getElementById(objDiv).style.visibility="visible";
	 msg('login_field','formulario','*Passaporte: ');
     // msg ('inf_nacionalidade','warn','');  
} 
function hide(objDiv) 
{ 
     document.getElementById(objDiv).style.visibility="hidden";
	 msg('login_field','formulario','*CPF: '); 
     // msg ('inf_nacionalidade','warn','');
}
function msg(fld,     // id of element to display message in
             msgtype, // class to give element ("warn" or "error")
             message) // string to display
{
  // setting an empty string can give problems if later set to a 
  // non-empty string, so ensure a space present. (For Mozilla and Opera one could 
  // simply use a space, but IE demands something more, like a non-breaking space.)
  var nbsp = 160;    // non-breaking space char
  var emptyString = /^\s*$/;
  var dispmessage;
  if (emptyString.test(message)) 
    dispmessage = String.fromCharCode(nbsp);    
  else  
    dispmessage = message;

  var elem = document.getElementById(fld);
  elem.firstChild.nodeValue = dispmessage;  
 
  elem.className = msgtype;   // set the CSS class to adjust appearance of message
};

function setPart(num)
{
	document.getElementById('part').value = num;
}
 