// Pulldown menu automático       	
function pulldown_menu(){
	// Create a variable url to contain the value of the
	// selected option from the the form named pulldown and variable selectname
	var url = document.pulldown.selectname.options[document.pulldown.selectname.selectedIndex].value
	// Re-direct the browser to the url value
	window.location.href = url	
}
//  End -->


//<!-- Function Checkbox (alternate selection)-->

	function MM_openBrWindow(theURL,winName,features) { //v2.0
		  window.open(theURL,winName,features);
}


//<!-- Function Max Chars (limits)-->

	function LimitaTexto(CampoTexto,MaxChars,iIdioma){
	
	if(CampoTexto.value.length>MaxChars){
		
	    CampoTexto.value=CampoTexto.value.substring(0,MaxChars);
	    if(iIdioma==0)alert('Este campo pode conter até '+MaxChars+' caracteres.');
	    else if(iIdioma==1)alert('Maximum capacity is '+MaxChars+' characters.');
	    else if(iIdioma==2)alert('Este campo puede contener hasta '+MaxChars+' caracteres.');
	    else if(iIdioma==3)alert('Este campo pode conter até '+MaxChars+' caracteres.');
	    CampoTexto.focus();
    
    }
}


	



//<!-- Function Forms: Check Fields -->

	function checkFields() {                       // field validation -
	if ( (document.emailform.nome.value=="")  ||   // checks if fields are blank.
	     (document.emailform.email.value=="") ||   // More validation scripts at
	     (document.emailform.mensagem.value=="") ) // forms.javascriptsource.com
	   {
	   alert("(*) Campos Obrigatórios.");
	   return false;
	   }
	
	else 
	   {
	   
	      alert("Envio bem Sucedido, Obrigado!");
	      return true;
	      
	   }
}
//  End -->


