// mensagem de erro IE6
function ghost(){
	versao = parseInt(navigator.appVersion);
	navegador = navigator.appName;
	obj = document.getElementById('mensagem');
	
	if(navegador == 'Microsoft Internet Explorer' && versao <= 4){
		obj.className = 'erroie';
	}
}
// limite de caracters/*
function textCounter(field, countfield, maxlimit) {
	if (field.value.length > maxlimit)
		field.value = field.value.substring(0, maxlimit);
	else 
		countfield.value = maxlimit - field.value.length;
}
function excluir(nImg, id){
	confirmar = window.confirm('Deseja remover esse curso do seu banco de cursos ?');
	if(confirmar){
		window.location.href='admAction.php?cad=execurso&action=admCursos&img='+nImg+'&id='+id;
	}
}
function excluirf(nImg, id){
	confirmar = window.confirm('Deseja remover esse curso do seu banco de cursos ?');
	if(confirmar){
		window.location.href='admAction.php?cad=exefranquia&action=admFranquias&id='+id;
	}
}
function excluirmat(id, file){
	confirmar = window.confirm('Deseja remover esse material do seu banco ?');
	if(confirmar){
		window.location.href='admAction.php?cad=exemat&action=admPed&id='+id+"&file"+file;
	}
}

function excluirmatag(id, file){
	confirmar = window.confirm('Deseja remover esse material do seu banco ?');
	if(confirmar){
		window.location.href='admAction.php?cad=exematag&action=admMAgn&id='+id+"&file"+file;
	}
}
function excluirmatped(id, file){
	confirmar = window.confirm('Deseja remover esse material do seu banco ?');
	if(confirmar){
		window.location.href='admAction.php?cad=exematped&action=admMProf&id='+id+"&file"+file;
	}
}
function excluirmatcom(id, file){
	confirmar = window.confirm('Deseja remover esse material do seu banco ?');
	if(confirmar){
		window.location.href='admAction.php?cad=exematcom&action=admMComercial&id='+id+"&file"+file;
	}
}
function dadosadm(){
	obj = document.getElementById('editsenha');
	if(obj.className == 'null'){
		obj.className = 'administratorinf';
	}else{
		obj.className = 'null';
	}
}
function refestado(value){
	window.location.href='index.php?action=admFranquias&estado='+value;	
}
function refestadoform(value){
	window.location.href='index.php?inf=userSystem&col=2&estado='+value;
}
function franquiaacont(){
		window.open('formulario.php');
}
function fechaflash(){
	obj = document.getElementById("banneranime01");
	obj.className = "null";
}