// alerta variados

/*
Icones para alertas

SimpleDialog.ICON_BLOCK = "blckicon";
SimpleDialog.ICON_ALARM = "alrticon";
SimpleDialog.ICON_HELP  = "hlpicon";
SimpleDialog.ICON_INFO  = "infoicon";
SimpleDialog.ICON_WARN  = "warnicon";
SimpleDialog.ICON_TIP   = "tipicon";
*/

//Não mexer()
var handleOK = function() {
				this.cancel();
			};
//---------()


//-------------------------------------------------------------------
//APENAS ALERTAS DE AVISOS (Root ou Geral) #########################
//-------------------------------------------------------------------			
			var avisosAlert = new YAHOO.widget.SimpleDialog("avisosAlert", {				
				modal: true,
				icon: YAHOO.widget.SimpleDialog.ICON_ALARM,
				visible: false,
				fixedcenter: true,
				constraintoviewport: true,
				width: "300px",
				role: "alertdialog",
				buttons: [ { text:"OK", handler:handleOK, isDefault:true } ],
				text: "<b>Informa&ccedil;&atilde;o: </b><br /> Ativado ou desativado <b>Avisos</b>."
			
			});	

			avisosAlert.setHeader("Resultado da opera&ccedil;&atilde;o:");
			avisosAlert.render(document.body);

//-------------------------------------------------------------------
//APENAS NUMEROS (GERAL) #########################
//-------------------------------------------------------------------			
			var numeroAlert = new YAHOO.widget.SimpleDialog("numeroAlert", {				
				modal: true,
				icon: YAHOO.widget.SimpleDialog.ICON_WARN,
				visible: false,
				fixedcenter: true,
				constraintoviewport: true,
				width: "300px",
				role: "alertdialog",
				buttons: [ { text:"OK", handler:handleOK, isDefault:true } ],
				text: "<b>Informa&ccedil;&atilde;o: </b><br /> Apenas n&uacute;meros."
			
			});	

			numeroAlert.setHeader("Resultado da opera&ccedil;&atilde;o:");
			numeroAlert.render(document.body);

//-------------------------------------------------------------------
//ATIVAR DESATIVAR (GERAL) #########################
//-------------------------------------------------------------------			
			var ativarDesativarAlert = new YAHOO.widget.SimpleDialog("ativarDesativarAlert", {				
				modal: true,
				icon: YAHOO.widget.SimpleDialog.ICON_TIP,
				visible: false,
				fixedcenter: true,
				constraintoviewport: true,
				width: "300px",
				role: "alertdialog",
				buttons: [ { text:"OK", handler:handleOK, isDefault:true } ],
				text: "<b>Informa&ccedil;&atilde;o: </b><br /> Ativado ou desativado com sucesso."
			
			});	

			ativarDesativarAlert.setHeader("Resultado da opera&ccedil;&atilde;o:");
			ativarDesativarAlert.render(document.body);

//-------------------------------------------------------------------
//EXCLUIR (GERAL) #########################
//-------------------------------------------------------------------			
			var excluirAlert = new YAHOO.widget.SimpleDialog("excluirAlert", {				
				modal: true,
				icon: YAHOO.widget.SimpleDialog.ICON_INFO,
				visible: false,
				fixedcenter: true,
				constraintoviewport: true,
				width: "300px",
				role: "alertdialog",
				buttons: [ { text:"OK", handler:handleOK, isDefault:true } ],
				text: "<b>Informa&ccedil;&atilde;o: </b><br /> Excluido com sucesso."
			
			});	

			excluirAlert.setHeader("Resultado da opera&ccedil;&atilde;o:");
			excluirAlert.render(document.body);

//-------------------------------------------------------------------
//CADASTRO (GERAL) #########################
//-------------------------------------------------------------------			
			var cadastroAlert = new YAHOO.widget.SimpleDialog("cadastroAlert", {				
				modal: true,
				icon: YAHOO.widget.SimpleDialog.ICON_INFO,
				visible: false,
				fixedcenter: true,
				constraintoviewport: true,
				width: "300px",
				role: "alertdialog",
				buttons: [ { text:"OK", handler:handleOK, isDefault:true } ],
				text: "<b>Informa&ccedil;&atilde;o: </b><br /> Inserido com sucesso."
			
			});	

			cadastroAlert.setHeader("Resultado da opera&ccedil;&atilde;o:");
			cadastroAlert.render(document.body);

//-------------------------------------------------------------------
//ALTERADOS (GERAL) #########################
//-------------------------------------------------------------------			
			var alteradoAlert = new YAHOO.widget.SimpleDialog("alteradoAlert", {				
				modal: true,
				icon: YAHOO.widget.SimpleDialog.ICON_INFO,
				visible: false,
				fixedcenter: true,
				constraintoviewport: true,
				width: "300px",
				role: "alertdialog",
				buttons: [ { text:"OK", handler:handleOK, isDefault:true } ],
				text: "<b>Informa&ccedil;&atilde;o: </b><br /> Alterado com sucesso."
			
			});	

			alteradoAlert.setHeader("Resultado da opera&ccedil;&atilde;o:");
			alteradoAlert.render(document.body);
			
//-------------------------------------------------------------------
//ERRO DE SENHA (pasta clientes e root) #########################
//-------------------------------------------------------------------			
			var senhaErrada = new YAHOO.widget.SimpleDialog("senhaErrada", {				
				modal: true,
				icon: YAHOO.widget.SimpleDialog.ICON_WARN,
				visible: false,
				fixedcenter: true,
				constraintoviewport: true,
				width: "300px",
				role: "alertdialog",
				buttons: [ { text:"OK", handler:handleOK, isDefault:true } ],
				text: "<b>Acesso: </b><br /> Senha n&atilde;o confere"
			
			});	

			senhaErrada.setHeader("Resultado da opera&ccedil;&atilde;o:");
			senhaErrada.render(document.body);

//-------------------------------------------------------------------
//LOGIN SENHA (pasta login e senha) #########################
//-------------------------------------------------------------------
			
			var EmailSenhaErrada = new YAHOO.widget.SimpleDialog("EmailSenhaErrada", {				
				modal: true,
				icon: YAHOO.widget.SimpleDialog.ICON_WARN,
				visible: false,
				fixedcenter: true,
				constraintoviewport: true,
				width: "300px",
				role: "alertdialog",
				buttons: [ { text:"OK", handler:handleOK, isDefault:true } ],
				text: "<b>Acesso: </b><br /> Login ou E-mail n&atilde;o confere com a Senha"
			
			});	

			EmailSenhaErrada.setHeader("Resultado da opera&ccedil;&atilde;o:");
			EmailSenhaErrada.render(document.body);
			
//-------------------------------------------------------------------
//CONFIRMACAO DE E-MAIL ACEITO CAIXA POSTAL (Pasta login e senha) #########################
//-------------------------------------------------------------------			
			var EmailPostal = new YAHOO.widget.SimpleDialog("EmailPostal", {				
				modal: true,
				icon: YAHOO.widget.SimpleDialog.ICON_INFO,
				visible: false,
				fixedcenter: true,
				constraintoviewport: true,
				width: "300px",
				role: "alertdialog",
				buttons: [ { text:"OK", handler:handleOK, isDefault:true } ],
				text: "<b>Recupera&ccedil;&atilde;o de Senha: </b><br /> E-mail confirmado. Verifique sua Caixa Postal"
			
			});	

			EmailPostal.setHeader("Resultado da opera&ccedil;&atilde;o:");
			EmailPostal.render(document.body);
//-------------------------------------------------------------------
//CONFIRMACAO DE IMAGEM CERTA (upload) #########################
//-------------------------------------------------------------------		
			var imgErroUpload = new YAHOO.widget.SimpleDialog("imgErroUpload", {				
				modal: true,
				icon: YAHOO.widget.SimpleDialog.ICON_WARN,
				visible: false,
				fixedcenter: true,
				constraintoviewport: true,
				width: "300px",
				role: "alertdialog",
				buttons: [ { text:"OK", handler:handleOK, isDefault:true } ],
				text: "<b>Informa&ccedil;&atilde;o: </b><br /> A imagem deve ser pdf | doc | docx | tif | xls | xlsx | pps | ppt | pptx | ppsx | zip | rar."
			
			});	

			imgErroUpload.setHeader("Resultado da opera&ccedil;&atilde;o:");
			imgErroUpload.render(document.body);
			
//-------------------------------------------------------------------
//CONFIRMACAO DE E-MAIL NAO ACEITO CAIXA POSTAL (pasta login e senha) #########################
//-------------------------------------------------------------------		
			var EmailPostalErro = new YAHOO.widget.SimpleDialog("EmailPostalErro", {				
				modal: true,
				icon: YAHOO.widget.SimpleDialog.ICON_INFO,
				visible: false,
				fixedcenter: true,
				constraintoviewport: true,
				width: "300px",
				role: "alertdialog",
				buttons: [ { text:"OK", handler:handleOK, isDefault:true } ],
				text: "<b>Recupera&ccedil;&atilde;o de Senha: </b><br /> E-mail n&atilde;o encontrado"
			
			});	

			EmailPostalErro.setHeader("Resultado da opera&ccedil;&atilde;o:");
			EmailPostalErro.render(document.body);


//-------------------------------------------------------------------
//CADASTRO (PERSONALIZADO) #########################
//-------------------------------------------------------------------			
			var cadastroAlertP = new YAHOO.widget.SimpleDialog("cadastroAlertP", {				
				modal: true,
				icon: YAHOO.widget.SimpleDialog.ICON_INFO,
				visible: false,
				fixedcenter: true,
				constraintoviewport: true,
				width: "300px",
				role: "alertdialog",
				buttons: [ { text:"OK", handler:handleOK, isDefault:true } ],
				text: "<b>Informa&ccedil;&atilde;o: </b><br /> Proxima etapa coloque o anexo."
			
			});	

			cadastroAlertP.setHeader("Resultado da opera&ccedil;&atilde;o:");
			cadastroAlertP.render(document.body);
			

