                            	function DeslogaOperador()
                                {
                                    //alert("Deslogando Operador...");
                                    PageMethods.DeslogarOperador(onSucceeded,onFailed);
                                } 
                                
                                function FinalAtendimentoCliente()
                                {
                                    //alert('entrou');
                                    
                                    var intAtendimentoID  = document.getElementById("lblAtendimentoID").innerHTML
                                    var intRedirecEnquete  = document.getElementById("lblRedirecEnquete").innerHTML
                                    var intStatusID  = document.getElementById("lblStatusID").innerHTML
                                    var strUsuHash  = document.getElementById("lblUsuHash").innerHTML
                                    
                                    PageMethods.FinalizaAtendimento(intAtendimentoID,onSucceeded,onFailed);
                                    
                                    if (intStatusID == 2 || intStatusID == 6) {
                                        if (intRedirecEnquete == 1){
                                            //alert("ClienteEnquete.aspx?ClienteID=" + strUsuHash + "&AtendimentoID=" + intAtendimentoID,"popPesquisa");
                                            var win = window.open("ClienteEnquete.aspx?ClienteID=" + strUsuHash + "&AtendimentoID=" + intAtendimentoID ,"popPesquisa","top=100,left=100,width=500,height=480,scrollbars=NO");
			                            }
			                        }
			                                              
                                 } 
                                
                                function FinalAtendimentoOperador()
                                {
                                    //alert(" encerrado pelo operador!");
                                    //var booresposta = confirm("A janela foi fechada/atualizada! Finalizar os atendimentos pendentes?")
                                    //if (booresposta) {
                                    PageMethods.FinalizaAtendimento(onSucceeded, onFailed);
                                    //}
                                    //window.close();
                                } 
                                                        
                                
                                                       
                                                
                                function onSucceeded(result,userContext,methodName)
                                {
                                     //alert("Ok!");
                                 } 
                                 
                                function onFailed(error,userContext,methodName)
                                {
                                    //alert("Erro!");
                                }
                                
                                if (typeof(Sys) != "undefined"){
                                	Sys.Application.notifyScriptLoaded(); 
                                }
                                
                            
                                

