function menu(id){
	on1 = "";
	on2 = "";
	on3 = "";
	on4 = "";
	on5 = "";
	on6 = "";
	if(id == 1){on1 = "class='on'";}
	if(id == 2){on2 = "class='on'";}
	if(id == 3){on3 = "class='on'";}
	if(id == 4){on4 = "class='on'";}
	if(id == 5){on5 = "class='on'";}
	document.write ("<a href='?id=1' style='border:0px' "+ on1 +">Home</a><a href='?id=2' "+ on2 +">Editora</a><a href='?id=3' "+ on3 +">Livros</a><a href='http://www.ermakoff.com.br/banco/' "+ on6 +">Arquivo de Imagens</a><a href='?id=4' "+ on4 +">Newsletter</a><a href='?id=5' "+ on5 +">Fale Conosco</a>");
}

<!-- ini altera quantidade -->
function land(ref, target)
{
lowtarget=target.toLowerCase();
if (lowtarget=="_self") {window.location=loc;}
else {if (lowtarget=="_top") {top.location=loc;}
else {if (lowtarget=="_blank") {window.open(loc);}
else {if (lowtarget=="_parent") {parent.location=loc;}
else {parent.frames[target].location=loc;};
}}}
}
function jump(menu)
{
ref=menu.choice.options[menu.choice.selectedIndex].value;
splitc=ref.lastIndexOf("*");
target="";
if (splitc!=-1)
{loc=ref.substring(0,splitc);
target=ref.substring(splitc+1,1000);}
else {loc=ref; target="_self";};
if (ref != "") {land(loc,target);}
}
<!-- fim altera quantidade -->

/*-----INI OBRIGATORIO-----*/
function validacad(){
	if(document.cad.login.value == ""){alert('E-mail obrigatório');document.cad.login.focus();return(false);}
	if(document.cad.senha.value == ""){alert('Senha obrigatória');document.cad.senha.focus();return(false);}
	if(document.cad.nome.value == ""){alert('Nome obrigatório');document.cad.nome.focus();return(false);}
	if(document.cad.ddd.value == ""){alert('DDD obrigatório');document.cad.ddd.focus();return(false);}
	if(document.cad.tel.value == ""){alert('Telefone obrigatório');document.cad.tel.focus();return(false);}
	if(document.cad.rua.value == ""){alert('Endereço obrigatório');document.cad.rua.focus();return(false);}
	if(document.cad.num.value == ""){alert('Complemento obrigatório');document.cad.num.focus();return(false);}
	if(document.cad.bairro.value == ""){alert('Bairro obrigatório');document.cad.bairro.focus();return(false);}
	if(document.cad.cidade.value == ""){alert('Cidade obrigatória');document.cad.cidade.focus();return(false);}
	if(document.cad.uf.value == ""){alert('Estado obrigatório');document.cad.uf.focus();return(false);}
	if(document.cad.cep.value == ""){alert('CEP obrigatório');document.cad.cep.focus();return(false);}
}
/*-----FIM OBRIGATORIO-----*/

/*-----INI LOGIN-----*/
function checaLogin(){
	if(document.cad.login.value.indexOf("@")<1 || document.cad.login.value == ""){
		alert('E-mail inválido');
		document.cad.login.focus();
		return(false);
	}
}
/*-----FIM LOGIN-----*/