//0 - Index
//1 - linerider
//2 - imóvel
//3 - autos
//4 - bares
//5 - buffet
//6 - natal
//7 - Puzzle Bobble

var aList = new Array();
aList[0] = new Array(2);aList[0][0] = "Beez - Soluções Para Internet";aList[0][1] = "index.aspx";
aList[1] = new Array(2);aList[1][0] = "Beez - Jogue Line Rider";aList[1][1] = "LineRider.aspx";
aList[2] = new Array(2);aList[2][0] = "Beez - Conheça o Beez Imóvel";aList[2][1] = "Imovel.aspx";
aList[3] = new Array(2);aList[3][0] = "Beez - Conheça o Beez Auto";aList[3][1] = "Auto.aspx";
aList[4] = new Array(2);aList[4][0] = "Beez - Conheça o Beez Bar";aList[4][1] = "Bar.aspx";
aList[5] = new Array(2);aList[5][0] = "Beez - Conheça o Beez Buffet";aList[5][1] = "Buffet.aspx";
aList[6] = new Array(2);aList[6][0] = "Beez - Jogue Havock Mountain";aList[6][1] = "Natal.aspx";
aList[7] = new Array(2);aList[7][0] = "Beez - Jogue Puzzle Bobble";aList[7][1] = "Jogo.aspx";

function jIndique(iPagina)
{
	popup( 'Indique.aspx?pagina=' + iPagina, 'BeezEnvie' , 450 , 390 , false );
}


function getBrwIE()
{
	if(navigator.appName == "Microsoft Internet Explorer")
	{
		return true
	}
	return false
}
function popup( sUrl, sNome , nLargura , nAltura , bScroll )
{
	if (!getBrwIE())
	{
		nAltura += 16;
		nLargura += 15;
	}
	var winl = (screen.width - nLargura) / 2;
	var wint = (screen.height - nAltura) / 2;
	var sScroll = 'no';
	if(bScroll)
	{
		sScroll = (bScroll)?'yes':'no';
	}
	window.open( sUrl,sNome , 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=' + sScroll + ',resizable=no,width=' + nLargura + ',height=' + nAltura + ',top=' + wint + ',left=' + winl );
}

function jIsEmail(campo) {
	if(campo.value == "")
	{
		alert("Preencha o campo e-mail");
		campo.focus();
		return false;
	}
	var iAt = campo.value.indexOf('@');
	var iPoint = 0;
	for(i = 0; i < campo.value.length;i++ )
	{
		if(campo.value.substr(i,1) == ".")
		iPoint = i;
	}
	if(iAt<0 || iPoint < 0 || iPoint < iAt)
	{
		alert("Preencha o campo com um e-mail válido.")
		campo.focus();		
		return false;
	}
	if(iPoint >= (campo.value.length - 1))
	{
		alert("Preencha o campo com um e-mail válido.")
		campo.focus();		
		return false;
	}
	return true;
}

