function jIndique(iPagina)
{
	popup( 'http://www.beez.com.br/IndiqueMLR.aspx?pagina=' + iPagina, 'BeezEnvie' , 450 , 350 , 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;
}
