// ativação do FLASH
// When the page loads:
window.onload = function()
{
	if (document.getElementsByTagName)
	{
		// Get all the tags of type object in the page.
		var objs = document.getElementsByTagName("object");
		for (i=0; i<objs.length; i++)
			{
			// Get the HTML content of each object tag
			// and replace it with itself.
			objs[i].outerHTML = objs[i].outerHTML;
			}
	}
}
// When the page unloads:
	window.onunload = function()
		{
		if (document.getElementsByTagName)
			{
			//Get all the tags of type object in the page.
			var objs = document.getElementsByTagName("object");
			for (i=0; i<objs.length; i++)
				{
				// Clear out the HTML content of each object tag
				// to prevent an IE memory leak issue.
				objs[i].outerHTML = "";
				}
		}
}
// Validação de Campos para cadastramento no CAD_CURRICULO.ASP
	function CadastroCurriculo(){
		if (document.frmCadastroCurriculo.strAniversario.value == "")
		{
			alert('Preencha o campo "ANIVERSÁRIO"!');
			document.frmCadastroCurriculo.strAniversario.focus();
			return false;
		}
		if (document.frmCadastroCurriculo.strNome.value == "")
		{
			alert('Preencha o campo "NOME"!');
			document.frmCadastroCurriculo.strNome.focus();
			return false;
		}
		if (document.frmCadastroCurriculo.strSexo.value == "")
		{
			alert('Preencha o campo "SEXO"!');
			document.frmCadastroCurriculo.strSexo.focus();
			return false;
		}
		if (document.frmCadastroCurriculo.strEstadoCivil.value == "")
		{
			alert('Preencha o campo "ESTADO CIVIL"!');
			document.frmCadastroCurriculo.strEstadoCivil.focus();
			return false;
		}
		if (document.frmCadastroCurriculo.strEndereco.value == "")
		{
			alert('Preencha o campo "ENDEREÇO"!');
			document.frmCadastroCurriculo.strEndereco.focus();
			return false;
		}
		if (document.frmCadastroCurriculo.strBairro.value == "")
		{
			alert('Preencha o campo "BAIRRO"!');
			document.frmCadastroCurriculo.strBairro.focus();
			return false;
		}
		if (document.frmCadastroCurriculo.strCEP.value == "")
		{
			alert('Preencha o campo "CEP"!');
			document.frmCadastroCurriculo.strCEP.focus();
			return false;
		}
		if (document.frmCadastroCurriculo.strCidade.value == "")
		{
			alert('Preencha o campo "CIDADE"!');
			document.frmCadastroCurriculo.strCidade.focus();
			return false;
		}
		if (document.frmCadastroCurriculo.strEstado.value == "")
		{
			alert('Preencha o campo "ESTADO (UF)"!');
			document.frmCadastroCurriculo.strEstado.focus();
			return false;
		}
		if (document.frmCadastroCurriculo.strPais.value == "")
		{
			alert('Preencha o campo "PAÍS"!');
			document.frmCadastroCurriculo.strPais.focus();
			return false;
		}
		if (document.frmCadastroCurriculo.strTelefone1.value == "")
		{
			alert('Preencha o campo "TELEFONE 1"!');
			document.frmCadastroCurriculo.strTelefone1.focus();
			return false;
		}
		if (document.frmCadastroCurriculo.strAreaAtuacao.value == "")
		{
			alert('Preencha o campo "AREA DE ATUAÇÃO"!');
			document.frmCadastroCurriculo.strAreaAtuacao.focus();
			return false;
		}
		if (document.frmCadastroCurriculo.strAreaAtuacao2.value == "")
		{
			alert('Preencha o campo "AREA DE ATUAÇÃO SECUNDÁRIA - 1"!');
			document.frmCadastroCurriculo.strAreaAtuacao2.focus();
			return false;
		}
		if (document.frmCadastroCurriculo.strAreaAtuacao3.value == "")
		{
			alert('Preencha o campo "AREA DE ATUAÇÃO SECUNDÁRIA - 2"!');
			document.frmCadastroCurriculo.strAreaAtuacao3.focus();
			return false;
		}
		if (document.frmCadastroCurriculo.strContrato.checked == "")
		{
			alert('O cadastro só será aceito após a aceitação dos termos de contrato!');
			document.frmCadastroCurriculo.strContrato.focus();
			return false;
		}
		document.frmCadastroCurriculo.submit();
	}
//verificando consistencia dos e-mail´s
	function checkemail(){
		var str = document.frmVerificaMail.strEmail.value
		var filter = /^.+@.+\..{2,3}$/
	if (filter.test(str))
		testresults = true;
	else{
		alert('Coloque um endereço de e-mail válido!');
		document.frmVerificaMail.strEmail.focus();
		return false;
		}
	return(testresults);
	}
//Modelando as Mascaras
// DATA DE ANIVERSÁRIO SOMENTE!
void function FormataData( campo ) 
	{
		var tam = campo.value.length; 
		if (((event.keyCode) >= 44 ) && ((event.keyCode) <= 57 )) 
			{
				event.keyCode; 
			if ( ( tam == 2 ) || ( tam == 5 ) ) 
				{
					campo.value = campo.value + "/";
				} 
			}
		else
			{
			event.keyCode = 0;
			} 
	} 
// MAIS MASCARAS
function Mascara (formato, keypress, objeto){
	campo = eval (objeto);
// CEP
	if (formato=='CEP'){
		separador = '-'; 
		conjunto1 = 5;
	if (campo.value.length == conjunto1){
		campo.value = campo.value + separador;
}}
// TELEFONE
	if (formato=='TELEFONE'){
		separador = '-'; 
		conjunto1 = 4;
	if (campo.value.length == conjunto1){
		campo.value = campo.value + separador;
}}}
// TIRAR LETRAS
	function NumeroInt()
	{
		var ValidChar = "#48;#49;#50;#51;#52;#53;#54;#55;#56;#57;";
		if (ValidChar.indexOf("#" + String(event.keyCode + ";")) == -1)
			event.returnValue = false;
	}
<!--Pop-UP>
function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}
<!--Indicar Relatórios>
function enviarelatorio(theURL,winName,features) {
  window.open(theURL,winName,features);
}
<!--Fazer Página inicial>
var bookmarkurl="http://www.buscoemprego.com.br/"
var bookmarktitle="Busco Emprego - Últimas Vagas"
function addbookmark(){
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
<!--nota de rodapé-->
	window.defaultStatus='Sistema Busco Empregos [ Cadastro de vagas e currículos para todo o Brasil!';
