function SelecionarImagem(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function validarCurriculum1(){
	var m = ''
	var t = 0
	var frmForm = document.forms['frmCurriculum'];
	
	if (frmForm.txtobjetivo.value == 'Preencha qual função deseja exercer...') {
		m += '-> Preencha o campo Objetivo.\t\n';
		t = 1
	}
	if (frmForm.txtnome.value == 'Preencha aqui seu nome completo...') {
		m += '-> Preencha o campo Nome.\t\n';
		t = 1
	}
	if (frmForm.txtnasc.value == 'DD/MM/AAAA') {
		m += '-> Preencha o campo Data de Nascimento.\t\n';
		t = 1
	}
	if (frmForm.txtestadocivil.value == '') {
		m += '-> Preencha o campo Estado Civil.\t\n';
		t = 1
	}
	if (frmForm.txtcpf.value == 'Prencha sem pontos...') {
		m += '-> Preencha o campo CPF.\t\n';
		t = 1
	}
	if (frmForm.txtsexo.value == '') {
		m += '-> Preencha o campo Sexo.\t\n';
		t = 1
	}
	if (frmForm.txtendereco.value == 'Preencha aqui seu endereço completo é Nº...') {
		m += '-> Preencha o campo Endereço.\t\n';
		t = 1
	}
	if (frmForm.txtbairro.value == 'Preencha seu bairro...') {
		m += '-> Preencha o campo Bairro.\t\n';
		t = 1
	}
	
	if (frmForm.txtcidade.value == 'Sua cidade...') {
		m += '-> Preencha o campo Cidade.\t\n';
		t = 1
	}
	
	if (frmForm.txtuf.value == '') {
		m += '-> Preencha o campo Estado.\t\n';
		t = 1
	}
	if (frmForm.txttelefone1.value == 'Residencial...') {
		m += '-> Preencha o campo Telefone 1.\t\n';
		t = 1
	}
	if (frmForm.txtemail.value == 'Preencha aqui seu endereço de e-mail...') {
		m += '-> Preencha o campo E-mail.\t\n';
		t = 1
	}
	if (frmForm.imgfoto.value == 'Clique em selecionar...') {
		m += '-> Preencha o campo Foto.\t\n';
		t = 1
	}		
	if (t == 1) {
		alert('Campos Inválidos.\n\n' + m);
		return false
	}
}

function validarCurriculum3(){
	var m = ''
	var t = 0
	var frmForm = document.forms['frmCurriculum'];
	
	if (frmForm.txtresumo.value == 'Informe aqui todas as informações que você deseja inserir em seu curriculo, ex: Expriências ExtraCurriculares, Trabalhos Sociais, Prêmios, Meritos e Outros...') {
		m += '-> Preencha o campo Informações Adicionais.\t\n';
		t = 1
	}
	if (t == 1) {
		alert('Campos Inválidos.\n\n' + m);
		return false
	}
}
