function marcar(id){
	var x = 1;
	while (x <= 5)
	{
	$('link'+x).removeClassName('active').show();
	x++;
	}
$('link'+id).addClassName('active').show();
}

function existeDominio() {
$('existing').show();
$('create').hide();
$('labelYes').addClassName('active').show();
$('labelNo').removeClassName('active').show();
$('submitbutton').src = "img/solicitar.gif";
$('url').focus();
}


function desconto() {
$('existing').hide();
$('create').show();
}

function novoDominio() {
$('existing').hide();
$('create').show();
$('labelNo').addClassName('active').show();
$('labelYes').removeClassName('active').show();
$('submitbutton').src = "img/proximo.gif";
$('urldesejada').focus();
}

function acessarConta(){
Effect.toggle('acessarConta', 'slide');
}

function alt(id){
	var x = 1;
	while (x <= 3)
	{
	$('alt'+x).removeClassName('active').show();
	x++;
	}
$('alt'+id).addClassName('active').show();
if(id == "2"){
$('urldesejada').value = "nome";
$('urldesejada').value += ".blymp.com.br";
$('submitbutton').src = "img/solicitar.gif";
$('urldesejada').addClassName('full').show();
$('ext').hide();
} else {
$('urldesejada').value = "";
$('urldesejada').focus();
$('submitbutton').src = "img/proximo.gif";
$('urldesejada').removeClassName('full').show();
$('ext').show();
}
}

function anuidade(id){
	var x = 1;
	while (x <= 3)
	{
	$('anuidade'+x).removeClassName('pagamentoselect').show();
	x++;
	}
$('anuidade'+id).addClassName('pagamentoselect').show();
}

function frequencia(id){
	var x = 1;
	while (x <= 4)
	{
	$('frequencia'+x).removeClassName('pagamentoselect').show();
	x++;
	}
$('frequencia'+id).addClassName('pagamentoselect').show();
}

function signup(){
new Effect.BlindUp('form');
var dominio = Form.getInputs('signup','radio','dominio').find(function(radio) { return radio.checked; }).value;
var acao = Form.getInputs('signup','radio','acao').find(function(radio) { return radio.checked; }).value;
new Ajax.Updater('notify', 'process.php', { method: 'get', parameters: $('signup').serialize(true), onSuccess: function(transport){ new Effect.BlindDown('notify'); if(dominio == "1" || acao == "2"){ $('acesse').addClassName('first').show(); $('preencha').removeClassName('first').show(); $('preencha').addClassName('firstFix').show();} } });
}

function painel(){
var meudominio = $F("meudominio");
this.location.href = 'http://www.blymp.com.br/clientes/home/theme.php?p=h&d='+ meudominio;
}

function webmail(){
var meudominio = $F("meudominio");
this.location.href = 'http://'+ meudominio +'/email';
}

function suporte(){
var meudominio = $F("meudominio");
this.location.href = 'http://www.blymp.com.br/suporte/?d='+meudominio;
}

function tentarnovamente(){
new Effect.BlindUp('form');
new Ajax.Updater('notify', 'process.php', { method: 'get', parameters: $('tentarnovamente').serialize(true), onSuccess: function(transport){ new Effect.BlindDown('notify'); } });
}


function confirmadominio(){
new Effect.BlindUp('full');
new Ajax.Updater('notify', 'process_dominio.php', { method: 'get', parameters: $('confirmardominio').serialize(true), onSuccess: function(transport){ new Effect.BlindDown('notify'); $('acesse').addClassName('first').show(); $('preencha').removeClassName('first').show(); $('preencha').addClassName('firstFix').show();  } });
}

function contato(){
$('sendarea').hide();
new Ajax.Updater('sendok', 'contato.php', { method: 'get', parameters: $('formcontato').serialize(true), onSuccess: function(transport){ new Effect.Appear('sendok'); } });
}

function randCliente(){
$('clienteReload').hide();
new Ajax.Updater('clienteReload', 'cliente.php', { method: 'get', onSuccess: function(transport){ new Effect.BlindDown('clienteReload'); } });
}