function embeds(url,id,w,h,wmode)
	{
	document.write('<object id="'+id+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+w+'" height="'+h+'">');
	document.write('<param name="movie" value="'+url+'">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="'+wmode+'">');
	document.write('<param name="menu" value="false">');
	document.write('<embed src="'+url+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="'+wmode+'" width="'+w+'" height="'+h+'"></embed>');
	document.write('</object>');
	}


function formatar(src, mask) 
{
  var i = src.value.length;
  var saida = mask.substring(0,1);
  var texto = mask.substring(i)
if (texto.substring(0,1) != saida) 
  {
	src.value += texto.substring(0,1);
  }
}


function mostra_data()
				{
				var hoje=new Date();
				var mes_ano=new Array("Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro");
				document.write("&nbsp;&nbsp;"+hoje.getDate()+"&nbsp;de&nbsp;"+mes_ano[hoje.getMonth()]+"");
				}	
		
		function validaform()
		{
		var frm = document.contato;
					if(frm.txt_nome.value=='')
					{
					frm.txt_nome.focus();
					document.all('erro').innerHTML = '(*) Preencha o campo nome!'
					return false;
					}
							var invalid;
							invalid = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/;
							if ((invalid.test(frm.txt_mail.value) == false)||(frm.txt_mail.value=='')) 
								{
								frm.txt_mail.focus();
								document.all('erro').innerHTML = '(*) Preencha um e-mail válido!'
								return false;
								} 
							if(frm.dp_assunto.value == 'Selecione')
							{
							frm.dp_assunto.focus();
							document.all('erro').innerHTML = '(*) Selecione o assunto!'
							return false;
							}
							if(frm.txt_comentarios.value=='')
							{
							frm.txt_comentarios.focus();
							document.all('erro').innerHTML = '(*) Digite a mensagem!'
							return false;
							}
		}


									
			
					 
			
