function flash6(nome, id, com, alt){
		document.write(
			'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+com+'" height="'+alt+'">'+
			'<param name="movie" value="'+nome+'" />'+
			'<param name="quality" value="high" />'+
			'<param name="wmode" value="transparent" />'+
			'<embed src="'+nome+'?" wmode="transparent" quality="high" width="'+com+'" height="'+alt+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'+
			'</object>'
		);
}

function abre(url, nome, largura, altura)
{
	// Para fazer com que a janela abra no centro da tela
	var width = screen.width ? (screen.width - largura)/2 : 0;
	var height = screen.height ? (screen.height - altura)/2 : 0;


	win = window.open(url,nome,"resizable,width="+largura+",height="+altura+",status=no,scrollbars,left="+width+",top="+height);
	if (parseInt(navigator.appVersion) >= 4)
	{
		win.window.focus();
	} 
}

function abreSem(url, nome, largura, altura)
{
	// Para fazer com que a janela abra no centro da tela
	var width = screen.width ? (screen.width - largura)/2 : 0;
	var height = screen.height ? (screen.height - altura)/2 : 0;


	win = window.open(url,nome,"width="+largura+",height="+altura+",left="+width+",top="+height);
	if (parseInt(navigator.appVersion) >= 4)
	{
		win.window.focus();
	} 
}

function CampoDespreencheIndicador(ValorInicial, Campo)
{
	var CampoDom = document.getElementById(Campo);
	
	if(ValorInicial == CampoDom.value) {
		CampoDom.value = '';
	}
	
	return true;
}

function CampoPreencheIndicador(ValorInicial, Campo)
{
	var CampoDom = document.getElementById(Campo);
	
	if(CampoDom.value == '' || CampoDom.value == ' ') {
		CampoDom.value = ValorInicial;
	}
	
	return true;
}
	
    ////////////////////////////////////////////////////////////////////////////
// Validação de e-mail by Alfred Reinold Baudisch, V. 1.0 (21/05/2001)    //
// E-mail: alfred@auriumsoft.com.br - http://www.auriumsoft.com.br        //
////////////////////////////////////////////////////////////////////////////
// Verifica se tem um e-mail digitado, com @, ponto no local correto, etc...
function checkEmail(o_email)
{
    var sim_nao = true
    // Verifica o @
    var arroba = o_email.indexOf("@");
    // Verifica o último ponto
    var ponto = o_email.lastIndexOf(".");
    // Verifica se há espaços
    var spaco = o_email.indexOf(" ");
    // 1ª: verifica se existe arroba no e-mail
    // 2ª: Arroba não deve ser o primeiro caractere
    // 3ª: Deve existir "."
    // 4ª: O ponto deve ser uma posição maior onde encontra-se o "@"
    // 5ª: O ponto não deve ser o último caractere
    // 6ª: Não deve existir espaço
    if ((o_email.indexOf("á")==-1) && (o_email.indexOf("à")==-1) && (o_email.indexOf("ã")==-1) && (o_email.indexOf("â")==-1) && (o_email.indexOf("é")==-1) && (o_email.indexOf("í")==-1) && (o_email.indexOf("ó")==-1) && (o_email.indexOf("õ")==-1) && (o_email.indexOf("ô")==-1) && (o_email.indexOf("ú")==-1) && (o_email.indexOf("ü")==-1) && (arroba != -1) && (arroba != 0) && (ponto != -1) && (ponto > arroba + 1) && (ponto < o_email.length - 1) && (spaco == -1) &&
    (o_email.indexOf("{")==-1) && (o_email.indexOf("}")==-1) && (o_email.indexOf("(")==-1) && (o_email.indexOf(")")==-1) && (o_email.indexOf("<")==-1) && (o_email.indexOf(">")==-1) && (o_email.indexOf("[")==-1) && (o_email.indexOf("]")==-1) && (o_email.indexOf("|")==-1) && (o_email.indexOf("\"")==-1) && (o_email.indexOf("/")==-1))
    {
        return true;
    }
    else
    {
        return false;	
    }

}