var telainicial =null;

function helpInternet(url) {
	meioH = (screen.height/2)-(700/2);
	meioW = (screen.width/2)-(700/2);
	telainicial = url;
	newwindow=window.open("/help/helpInternet/HelpInternet.html",'name','height=700,width=700, left='+meioW+', top='+meioH+'statusbar=1');
	if (window.focus) {
		newwindow.focus()
	}
}	

function helpIntranet(url) {
	meioH = (screen.height/2)-(700/2);
	meioW = (screen.width/2)-(700/2);
	telainicial = url;
	newwindow=window.open("/help/helpIntranet/HelpIntranet.html",'name','height=700,width=700, left='+meioW+', top='+meioH+'statusbar=1');
	if (window.focus) {
		newwindow.focus()
	}
}	


function inicial(){
	if(document.forms[0].name == 'manterPublicacaoForm'){
		telainicial = "Manter_Publicacao.htm";
	}
	else if(document.forms[0].name == 'manterSecaoForm' ){
		telainicial = "Incluir_Secao.htm";
	}
	else if(document.forms[0].name == 'manterEdicaoForm'){
		telainicial = "Consultar_Edicao.htm";
	}
	else if(document.forms[0].name == 'manterPrePosTextoForm'){
		telainicial = "Incluir_Pre_Pos_Texto.htm";
	}
	else if(document.forms[0].name =='manterArtigoForm'){
		telainicial = "Incluir_Artigo.htm";
	}
	else if(document.forms[0].name == 'consultarArtigosSubmetidosForm' ){
		telainicial = "Consultar_Artigos_Submetidos.htm";
	}
	else if(document.forms[0].name == 'visualizarHistoricoConsultasForm'){
		telainicial = "Historico_de_Consultas.htm";
	}
	else if(document.forms[0].name == 'visualizarHistoricoSubmissoesForm'){
		telainicial = "Historico_de_Submissoes.htm";
	}
	else if(document.forms[0].name == 'visualizarHistoricoMaisConsultadosForm'){
		telainicial = "Historico_dos_mais_consultados.htm";
	}
	else if(document.forms[0].name == 'manterLeitorForm'){
		telainicial = "Atualizar_Cadastro.htm";
	}
	else if(document.forms[0].name == 'buscarArtigosForm'){
		telainicial = "Buscar_Artigos.htm";
	}
	else if(document.forms[0].name == 'consultarHistoricoNavegacaoForm'){
		telainicial = "Historico_de_Navegacao.htm";
	}
	else if(document.forms[0].name == 'consultarEdicoesMaisRecentesForm'){
		telainicial = "Consultar_Edicoes_Mais_Recentes.htm";
	}
	else if(document.forms[0].name == 'submeterArtigoForm'){
		telainicial = "Submeter_Artigo.htm";
	}
	
	return telainicial;
}
