<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <title>Acesso ao Sistema</title>
        <script language="JavaScript" src="jquery/style2/js/jquery-1.8.3.js"></script>
        <script language="JavaScript" src="jquery/style2/js/jquery-ui-1.9.2.custom.min.js"></script>
        <link href="jquery/style2/css/pepper-grinder/jquery-ui-1.9.2.custom.min.css" rel="stylesheet" type="text/css" />
        <script src="lib/funcoes.js" type="text/javascript" language="javascript"></script>

        <script type="text/javascript" src="jquery/uploadify/swfobject.js"></script>
        <script type="text/javascript" src="jquery/uploadify/jquery.uploadify.v2.1.0.min.js"></script>
        <link rel="stylesheet" href="jquery/uploadify/uploadify.css" type="text/css" media="all"/>
        <link rel="stylesheet" href="estilos.css" type="text/css" media="all"/>
        <script>
            //REDIRECIONA PARA PÁGINA DE LOGIN EM HTML
            window.location = 'login.html';

            $(function(){
                    $.post("processarbloqueiofisico.php");
            });
            $(document).ready(function () {
                 $('#someID').uploadify({
                    'uploader': 'jquery/uploadify/uploadify.swf',
                    'script': 'ticket3.php',
                    'folder': 'ticketanexos',
                    'multi': 'true',
                    'auto': 'true',
                    'cancelImg': 'jquery/uploadify/cancel.png',
                    'buttonText': 'PROCURAR',
                    'queueID'  : 'tmpUpAnexo',
                    onComplete: function (event, ID, fileObj, response, data) {
                        gravaAnexo(response);
                    }
                });
            });
            $(function () {
                $('#jlistchamado').dialog({
                    autoOpen: false,
                    modal: true,
                    title: 'Verificar Chamados',
                    width: 800,
                    height: 600,
                    closeOnEscape: false,
                    resizable: false,
                    draggable: true,
                    //buttons: [{'text':"Cancelar", click: function() { $(this).dialog('close');} } ]
                })
                reabrirChamado();
            });
            function rChamadosAbertos() {}
            function listChamado() {
                $("#jlistchamado").dialog('open');
            }
            function buscaList() {
                var erro = false;
                if (!validacaoEmail($("#bemail").val())) {
                    erro = true;
                    alert("Email inválido");
                }
                if ($("#bcodparc").val() == "") {
                    erro = true;
                    alert("Código do parceiro não pode ser vazio");
                }
                if (!erro) {
                    carregando('inicio');
                    $.ajax({
                        type: "POST",
                        url: "ticket2.php",
                        data: "acao=buscaList&" + $("#fbuscalista").serialize(),
                        success: function (result) {
                            carregando('pronto');
                            $("#resultListCh").html(result);
                        },
                        error: function (msg) {
                            alert("A página não foi encontrada ou houve uma sobrecarga em requisições ajax. Tente novamente e caso obtenha erro novamente, contate o nosso suporte técnico.");
                        }
                    });
                }
            }
        </script>
        <link href="login.css" rel="stylesheet" type="text/css">
    </head>
    <body onLoad="document.flogin.loginusr.focus()">
    {"mensagem":"Sistema sem conex\u00e3o, entre em contato com o suporte.","status":"erro"}