endpoints.path: /
endpoints.endpoint_type: HTTP
endpoints.scan_time: 2025-10-09T14:18:07.721781
endpoints.uri: http://clubeseriemadetiro.com.br/
endpoints.protocol: HTTP/1.1
endpoints.status_reason: Moved Temporarily
endpoints.key: Content-Type
endpoints.headers: text/html; charset=UTF-8
endpoints.key: X-XSS-Protection
endpoints.headers: 1; mode=block
endpoints.key: Date
endpoints.headers: <REDACTED>
endpoints.key: Server
endpoints.headers: nginx
endpoints.key: X-Robots-Tag
endpoints.headers: all
endpoints.key: Location
endpoints.headers: login
endpoints.key: Connection
endpoints.headers: keep-alive
endpoints.key: Transfer-Encoding
endpoints.headers: chunked
endpoints.key: X-Content-Type-Options
endpoints.headers: nosniff
endpoints.key: X-Server-Powered-By
endpoints.headers: Scriptcase
endpoints.key: Cache-Control
endpoints.headers: s-maxage=10
endpoints.key: X-Nginx-Upstream-Cache-Status
endpoints.headers: MISS
endpoints.supported_versions: HTTP/1.1
endpoints.banner: HTTP/1.1 302 Moved Temporarily
  Server: nginx
  Date:  <REDACTED>
  Content-Type: text/html; charset=UTF-8
  Transfer-Encoding: chunked
  Connection: keep-alive
  Location: login
  Cache-Control: s-maxage=10
  X-XSS-Protection: 1; mode=block
  X-Content-Type-Options: nosniff
  X-Nginx-Upstream-Cache-Status: MISS
  X-Server-Powered-By: Scriptcase
  X-Robots-Tag: all
  
endpoints.ip: 198.50.160.198
endpoints.path: /login
endpoints.endpoint_type: HTTP
endpoints.scan_time: 2025-10-09T14:18:13.516023
endpoints.uri: http://clubeseriemadetiro.com.br/login
endpoints.protocol: HTTP/1.1
endpoints.status_reason: Moved Permanently
endpoints.key: X-Nginx-Upstream-Cache-Status
endpoints.headers: BYPASS
endpoints.key: X-Content-Type-Options
endpoints.headers: nosniff
endpoints.key: Content-Length
endpoints.headers: 247
endpoints.key: X-Server-Powered-By
endpoints.headers: Scriptcase
endpoints.key: Server
endpoints.headers: nginx
endpoints.key: Content-Type
endpoints.headers: text/html; charset=iso-8859-1
endpoints.key: Location
endpoints.headers: http://clubeseriemadetiro.com.br/login/
endpoints.key: Connection
endpoints.headers: keep-alive
endpoints.key: X-Robots-Tag
endpoints.headers: all
endpoints.key: Date
endpoints.headers: <REDACTED>
endpoints.key: X-XSS-Protection
endpoints.headers: 1; mode=block
endpoints.html_tags: <title>301 Moved Permanently</title>
endpoints.body: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
  <html><head>
  <title>301 Moved Permanently</title>
  </head><body>
  <h1>Moved Permanently</h1>
  <p>The document has moved <a href="http://clubeseriemadetiro.com.br/login/">here</a>.</p>
  </body></html>
  
endpoints.html_title: 301 Moved Permanently
endpoints.supported_versions: HTTP/1.1
endpoints.banner: HTTP/1.1 301 Moved Permanently
  Server: nginx
  Date:  <REDACTED>
  Content-Type: text/html; charset=iso-8859-1
  Content-Length: 247
  Connection: keep-alive
  Location: http://clubeseriemadetiro.com.br/login/
  X-XSS-Protection: 1; mode=block
  X-Content-Type-Options: nosniff
  X-Nginx-Upstream-Cache-Status: BYPASS
  X-Server-Powered-By: Scriptcase
  X-Robots-Tag: all
  
endpoints.ip: 198.50.160.198
endpoints.path: /login/
endpoints.endpoint_type: HTTP
endpoints.scan_time: 2025-10-09T14:18:18.492055
endpoints.uri: http://clubeseriemadetiro.com.br/login/
endpoints.protocol: HTTP/1.1
endpoints.status_reason: OK
endpoints.key: Transfer-Encoding
endpoints.headers: chunked
endpoints.key: Pragma
endpoints.headers: no-cache
endpoints.key: Set-Cookie
endpoints.headers: PHPSESSID=enetq976jeeqjiolbrp660ff27; path=/ sc_actual_lang_tiroseriema=pt_br; path=/
endpoints.key: Content-Type
endpoints.headers: text/html; charset=utf-8
endpoints.key: Expires
endpoints.headers: Thu, 19 Nov 1981 08:52:00 GMT
endpoints.key: Server
endpoints.headers: nginx
endpoints.key: X-Mod-Pagespeed
endpoints.headers: Powered by Scriptcase
endpoints.key: X-XSS-Protection
endpoints.headers: 1; mode=block 1; mode=block
endpoints.key: X-Server-Powered-By
endpoints.headers: Scriptcase
endpoints.key: Cache-Control
endpoints.headers: no-store, no-cache, must-revalidate max-age=0, no-cache, s-maxage=10
endpoints.key: Date
endpoints.headers: <REDACTED>
endpoints.key: Content-Encoding
endpoints.headers: gzip
endpoints.key: X-Nginx-Upstream-Cache-Status
endpoints.headers: BYPASS
endpoints.key: X-Robots-Tag
endpoints.headers: all
endpoints.key: X-Content-Type-Options
endpoints.headers: nosniff
endpoints.key: Vary
endpoints.headers: Accept-Encoding
endpoints.key: Connection
endpoints.headers: keep-alive
endpoints.html_tags: <TITLE>Clube Seriema de Tiro - CST</TITLE> <META http-equiv="Content-Type" content="text/html; charset=utf-8"/> <META http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT"/> <META http-equiv="Last-Modified" content="Thu, 09 Oct 2025 14:18:19 GMT"/> <META http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate"/> <META http-equiv="Cache-Control" content="post-check=0, pre-check=0"/> <META http-equiv="Pragma" content="no-cache"/>
endpoints.body: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
              "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
  
  <html DIR='LTR'>
  <HEAD>
   <TITLE>Clube Seriema de Tiro - CST</TITLE>
   <META http-equiv="Content-Type" content="text/html; charset=utf-8"/>
   <META http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT"/>
   <META http-equiv="Last-Modified" content="Thu, 09 Oct 2025 14:18:19 GMT"/>
   <META http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate"/>
   <META http-equiv="Cache-Control" content="post-check=0, pre-check=0"/>
   <META http-equiv="Pragma" content="no-cache"/>
   <link rel="shortcut icon" href="../_lib/img/scriptcase__NM__ico__NM__favicon.ico">
   <link rel="stylesheet" href="/_lib/prod/third/jquery_plugin/thickbox/thickbox.css" type="text/css" media="screen"/>
   <SCRIPT type="text/javascript">var sc_pathToTB='/_lib/prod/third/jquery_plugin/thickbox/';var sc_tbLangClose="Fechar";var sc_tbLangEsc="ou tecla Esc";var sc_userSweetAlertDisplayed=false;</SCRIPT>
   <SCRIPT type="text/javascript">var sc_blockCol='scriptcase__NM__treeviewMenos.png';var sc_blockExp='scriptcase__NM__treeviewMais.png';var sc_ajaxBg='#6e6e6e';var sc_ajaxBordC='#8DA0C8 ';var sc_ajaxBordS='solid';var sc_ajaxBordW='1px';var sc_ajaxMsgTime=2;var sc_img_status_ok='/_lib/img/scriptcase__NM__iconsuccess.png';var sc_img_status_err='/_lib/img/scriptcase__NM__iconfails.png';var sc_css_status='scFormInputError';</SCRIPT>
          <SCRIPT type="text/javascript" src="/_lib/prod/third/jquery/js/jquery.js"></SCRIPT>
  <input type="hidden" id="sc-mobile-lock" value='true'/>
   <SCRIPT type="text/javascript" src="/_lib/prod/third/jquery/js/jquery-ui.js"></SCRIPT>
   <link rel="stylesheet" href="/_lib/prod/third/jquery/css/smoothness/jquery-ui.css" type="text/css" media="screen"/>
   <style>.scSweetAlertHeader { background-image: none; font-family: Arial, sans-serif; opacity: 1; filter: alpha(opacity=100) }
  .swal2-container .swal2-modal .swal2-title { color: #595959 }
  .scSweetAlertMessage { background-image: none; font-family: Arial, sans-serif; padding: 0 0 0 10px; opacity: 1; filter: alpha(opacity=100) }
  .scSweetAlertPopup { background-image: none; opacity: 1; filter: alpha(opacity=100); padding: 1.5em }
  .swal2-container .swal2-popup.swal2-toast .swal2-icon { font-size: .7em }
  .swal2-container .swal2-modal { width: auto; padding: 2em 3em }
  .scToastHeader { background-image: none; font-family: Arial, sans-serif; opacity: 1; filter: alpha(opacity=100) }
  .scToastHeader,.swal2-container .swal2-title { color: #FFFFFF }
  .scToastMessage { background-image: none; color: #FFFFFF; font-family: Arial, sans-serif; padding: 0 0 0 10px; opacity: 1; filter: alpha(opacity=100) }
  .scToastPopup { background-color: #38485F; background-image: none; opacity: 1; filter: alpha(opacity=100); padding: 1.5em }
  .swal2-container .scToastPopup { box-shadow: 0 0 .25em #404040 }
  </style>
   <SCRIPT type="text/javascript" src="/_lib/prod/third/sweetalert/sweetalert2.all.min.js"></SCRIPT>
   <SCRIPT type="text/javascript" src="/_lib/prod/third/sweetalert/polyfill.min.js"></SCRIPT>
   <script type="text/javascript" src="../_lib/lib/js/frameControl.js"></script>
   <SCRIPT type="text/javascript" src="/_lib/lib/js/jquery.iframe-transport.js"></SCRIPT>
   <SCRIPT type="text/javascript" src="/_lib/lib/js/jquery.fileupload.js"></SCRIPT>
   <SCRIPT type="text/javascript" src="/_lib/prod/third/jquery_plugin/malsup-blockui/jquery.blockUI.js"></SCRIPT>
   <SCRIPT type="text/javascript" src="/_lib/prod/third/jquery_plugin/thickbox/thickbox-compressed.js"></SCRIPT>
  <style type="text/css">
  .sc-button-image.disabled {
  	opacity: 0.25
  }
  .sc-button-image.disabled img {
  	cursor: default !important
  }
  </style>
   <style type="text/css">
    .fileinput-button-padding {
     padding: 3px 10px !important;
    }
    .fileinput-button {
     position: relative;
     overflow: hidden;
     float: left;
     margin-right: 4px;
    }
    .fileinput-button input {
     position: absolute;
     top: 0;
     right: 0;
     margin: 0;
     border: solid transparent;
     border-width: 0 0 100px 200px;
     opacity: 0;
     filter: alpha(opacity=0);
     -moz-transform: translate(-300px, 0) scale(4);
     direction: ltr;
     cursor: pointer;
    }
   </style>
   <SCRIPT type="text/javascript" src="/_lib/lib/js/scInput.js"></SCRIPT>
   <SCRIPT type="text/javascript" src="/_lib/lib/js/jquery.scInput.js"></SCRIPT>
   <SCRIPT type="text/javascript" src="/_lib/lib/js/jquery.scInput2.js"></SCRIPT>
   <SCRIPT type="text/javascript" src="/_lib/lib/js/jquery.fieldSelection.js"></SCRIPT>
    <link rel="stylesheet" type="text/css" href="/_lib/css/Adelar_Menu/Adelar_Menu_form.css"/>
   <link rel="stylesheet" type="text/css" href="/_lib/css/Adelar_Menu/Adelar_Menu_formLTR.css"/>
     
   <link rel="stylesheet" type="text/css" href="/_lib/css/Adelar_Menu/Adelar_Menu_appdiv.css"/> 
   <link rel="stylesheet" type="text/css" href="/_lib/css/Adelar_Menu/Adelar_Menu_appdivLTR.css"/> 
   <link rel="stylesheet" type="text/css" href="/_lib/css/Adelar_Menu/Adelar_Menu_tab.css"/>
   <link rel="stylesheet" type="text/css" href="/_lib/css/Adelar_Menu/Adelar_Menu_tabLTR.css"/>
   <link rel="stylesheet" type="text/css" href="/_lib/buttons/scriptcase9_SweetBlue/scriptcase9_SweetBlue.css"/>
   <link rel="stylesheet" type="text/css" href="/_lib/prod/third/font-awesome/css/all.min.css"/>
   <link rel="stylesheet" type="text/css" href="/login/app_Login_ltr.css"/>
  
  <script>var scFocusFirstErrorField=true;var scFocusFirstErrorName="";</script>
  
  
   <form name="form_ajax_redir_1" method="post" style="display: none">
    <input type="hidden" name="nmgp_parms">
    <input type="hidden" name="nmgp_outra_jan">
    <input type="hidden" name="script_case_session" value="enetq976jeeqjiolbrp660ff27">
   </form>
   <form name="form_ajax_redir_2" method="post" style="display: none">
    <input type="hidden" name="nmgp_parms">
    <input type="hidden" name="nmgp_url_saida">
    <input type="hidden" name="script_case_init">
    <input type="hidden" name="script_case_session" value="enetq976jeeqjiolbrp660ff27">
   </form>
  
   <SCRIPT>var sajax_debug_mode=false;var sajax_request_type="POST";var sajax_target_id="";var sajax_failure_redirect="";function sajax_debug(text){if(sajax_debug_mode)alert(text);}function sajax_init_object(){sajax_debug("sajax_init_object() called..")
  var A;if(window.XMLHttpRequest){A=new XMLHttpRequest();}else{var msxmlhttp=new Array('Msxml2.XMLHTTP.5.0','Msxml2.XMLHTTP.4.0','Msxml2.XMLHTTP.3.0','Msxml2.XMLHTTP','Microsoft.XMLHTTP');for(var i=0;i<msxmlhttp.length;i++){try{A=new ActiveXObject(msxmlhttp[i]);}catch(e){A=null;}}if(!A&&typeof XMLHttpRequest!="undefined")A=new XMLHttpRequest();}if(!A)sajax_debug("Could not create connection object.");return A;}var sajax_requests=new Array();function sajax_cancel(){for(var i=0;i<sajax_requests.length;i++)sajax_requests[i].abort();}function sajax_do_call(func_name,args){var i,x,n;var uri;var post_data;var target_id;var charset_html=document.inputEncoding.toLowerCase();var charset_esp=["utf-8","windows-1250","windows-1253","windows-1254","windows-1255","windows-1256","windows-1257","iso-8859-2","iso-8859-4","iso-8859-6","iso-8859-7","iso-8859-8","iso-8859-8-i","iso-8859-9","iso-8859-13","euc-kr"];sajax_debug("in sajax_do_call().."+sajax_request_type+"/"+sajax_target_id);target_id=sajax_target_id;if(typeof(sajax_request_type)=="undefined"||sajax_request_type=="")sajax_request_type="GET";uri="/login/";if(-1!=uri.indexOf("?"))uri=uri.substr(0,uri.indexOf("?"));if(sajax_request_type=="GET"){if(uri.indexOf("?")==-1)uri+="?rs="+escape(func_name);else
  uri+="&rs="+escape(func_name);uri+="&rst="+escape(sajax_target_id);uri+="&rsrnd="+new Date().getTime();for(i=0;i<args.length-1;i++)uri+="&rsargs[]="+escape(args[i]);post_data=null;}else if(sajax_request_type=="POST"){post_data="rs="+escape(func_name);post_data+="&rst="+escape(sajax_target_id);post_data+="&rsrnd="+new Date().getTime();for(i=0;i<args.length-1;i++)post_data=post_data+"&rsargs[]="+(-1!=$.inArray(charset_html,charset_esp)?encodeURIComponent(args[i]):escape(args[i]));}else{alert("Illegal request type: "+sajax_request_type);}x=sajax_init_object();if(x==null){if(sajax_failure_redirect!=""){location.href=sajax_failure_redirect;return false;}else{sajax_debug("NULL sajax object for user agent:\n"+navigator.userAgent);return false;}}else{x.open(sajax_request_type,uri,true);sajax_requests[sajax_requests.length]=x;if(sajax_request_type=="POST"){x.setRequestHeader("Method","POST "+uri+" HTTP/1.1");x.setRequestHeader("Content-Type","application/x-www-form-urlencoded");}x.onreadystatechange=function(){if(x.readyState!=4)return;sajax_debug("received "+x.responseText);var status;var data;var txt=x.responseText.replace(/^\s*|\s*$/g,"");status=txt.charAt(0);data=txt.substring(2);if(status==""){}else if(status=="-")alert("Error: "+data);else{if(target_id!="")document.getElementById(target_id).innerHTML=eval(data);else{try{var callback;var extra_data=false;if(typeof args[args.length-1]=="object"){callback=args[args.length-1].callback;extra_data=args[args.length-1].extra_data;}else{callback=args[args.length-1];}callback(eval(data),extra_data);}catch(e){sajax_debug("Caught error "+e+": Could not eval "+data);if(document.getElementById("id_fatal_error")&&data.lastIndexOf('Fatal error')>-1){sc_ret_error="<table width=20%><tr><td>"+data+"</td></tr></table>";document.getElementById("id_fatal_error").style.display="";document.getElementById("id_fatal_error").innerHTML=sc_ret_error;}}}}}}sajax_debug(func_name+" uri = "+uri+"/post = "+post_data);x.send(post_data);sajax_debug(func_name+" waiting..");delete x;return true;}function x_ajax_app_Login_validate_login(){sajax_do_call("ajax_app_Login_validate_login",x_ajax_app_Login_validate_login.arguments);}function x_ajax_app_Login_validate_pswd(){sajax_do_call("ajax_app_Login_validate_pswd",x_ajax_app_Login_validate_pswd.arguments);}function x_ajax_app_Login_submit_form(){sajax_do_call("ajax_app_Login_submit_form",x_ajax_app_Login_submit_form.arguments);}function x_ajax_app_Login_navigate_form(){sajax_do_call("ajax_app_Login_navigate_form",x_ajax_app_Login_navigate_form.arguments);}function scCenterElement(oElem){var $oElem=$(oElem),$oWindow=$(this),iElemTop=Math.round(($oWindow.height()-$oElem.height())/2),iElemLeft=Math.round(($oWindow.width()-$oElem.width())/2);$oElem.offset({top:iElemTop,left:iElemLeft});}function scAjaxHideAutocomp(sFrameId){if(document.getElementById("id_ac_frame_"+sFrameId)){document.getElementById("id_ac_frame_"+sFrameId).style.display="none";}}function scAjaxShowAutocomp(sFrameId){if(document.getElementById("id_ac_frame_"+sFrameId)){document.getElementById("id_ac_frame_"+sFrameId).style.display="";document.getElementById("id_ac_"+sFrameId).focus();}}function scAjaxHideDebug(){if(document.getElementById("id_debug_window")){document.getElementById("id_debug_window").style.display="none";document.getElementById("id_debug_text").innerHTML="";}}function scAjaxShowDebug(oTemp){if(!document.getElementById("id_debug_window")){return;}if(oTemp&&oTemp!=null){oResp=oTemp;}if(oResp["htmOutput"]&&""!=oResp["htmOutput"]){document.getElementById("id_debug_window").style.display="";document.getElementById("id_debug_text").innerHTML=scAjaxFormatDebug(oResp["htmOutput"])+document.getElementById("id_debug_text").innerHTML;scCenterElement(document.getElementById("id_debug_window"));}}function scAjaxFormatDebug(sDebugMsg){return"<table class=\"scFormMessageTable\" style=\"margin: 1px; width: 100%\"><tr><td class=\"scFormMessageMessage\">"+scAjaxSpecCharParser(sDebugMsg)+"</td></tr></table>";}function scAjaxHideErrorDisplay_default(sErrorId,bForce){if(document.getElementById("id_error_display_"+sErrorId+"_frame")){document.getElementById("id_error_display_"+sErrorId+"_frame").style.display="none";document.getElementById("id_error_display_"+sErrorId+"_text").innerHTML="";if(null==bForce){bForce=true;}if(bForce){var $oField=$('#id_sc_field_'+sErrorId);if(0<$oField.length){$oField.removeClass(sc_css_status);}}}if(document.getElementById("id_error_display_fixed")){document.getElementById("id_error_display_fixed").style.display="none";}}function scAjaxShowErrorDisplay_default(sErrorId,sErrorMsg){if(oResp&&oResp['redirExitInfo']){sErrorMsg+="<br /><input type=\"button\" onClick=\"window.location='"+oResp['redirExitInfo']['action']+"'\" value=\"Ok\">";}sErrorMsg=scAjaxErrorSql(sErrorMsg);if(document.getElementById("id_error_display_"+sErrorId+"_frame")){document.getElementById("id_error_display_"+sErrorId+"_frame").style.display="";document.getElementById("id_error_display_"+sErrorId+"_text").innerHTML=sErrorMsg;if("table"==sErrorId){scCenterElement(document.getElementById("id_error_display_"+sErrorId+"_frame"));}var $oField=$('#id_sc_field_'+sErrorId);if(0<$oField.length){$oField.addClass(sc_css_status);}}if(ajax_error_list&&ajax_error_list[sErrorId]&&ajax_error_list[sErrorId]["timeout"]&&0<ajax_error_list[sErrorId]["timeout"]){setTimeout("scAjaxHideErrorDisplay('"+sErrorId+"', false)",ajax_error_list[sErrorId]["timeout"]*1000);}}var iErrorSqlId=1;function scAjaxErrorSql(sErrorMsg){var iTmpPos=sErrorMsg.indexOf("{SC_DB_ERROR_INI}"),sTmpId;while(-1<iTmpPos){sTmpId="sc_id_error_sql_"+iErrorSqlId;sErrorMsg=sErrorMsg.substr(0,iTmpPos)+"<br /><span style=\"text-decoration: underline\" onClick=\"$('#"+sTmpId+"').show(); scCenterElement(document.getElementById('"+sTmpId+"'))\">"+sErrorMsg.substr(iTmpPos+17);iTmpPos=sErrorMsg.indexOf("{SC_DB_ERROR_MID}");sErrorMsg=sErrorMsg.substr(0,iTmpPos)+"</span><table class=\"scFormErrorTable\" id=\""+sTmpId+"\" style=\"display: none; position: absolute\"><tr><td>"+sErrorMsg.substr(iTmpPos+17);iTmpPos=sErrorMsg.indexOf("{SC_DB_ERROR_CLS}");sErrorMsg=sErrorMsg.substr(0,iTmpPos)+"<br /><br /><span onClick=\"$('#"+sTmpId+"').hide()\">"+sErrorMsg.substr(iTmpPos+17);iTmpPos=sErrorMsg.indexOf("{SC_DB_ERROR_END}");sErrorMsg=sErrorMsg.substr(0,iTmpPos)+"</span></td></tr></table>"+sErrorMsg.substr(iTmpPos+17);iTmpPos=sErrorMsg.indexOf("{SC_DB_ERROR_INI}");iErrorSqlId++;}return sErrorMsg;}function scAjaxHideMessage_default(){if(document.getElementById("id_message_display_frame")){document.getElementById("id_message_display_frame").style.display="none";document.getElementById("id_message_display_text").innerHTML="";}}function scAjaxShowMessage_default(){if(!oResp["msgDisplay"]||!oResp["msgDisplay"]["msgText"]){return;}_scAjaxShowMessage_default({title:scMsgDefTitle,message:oResp["msgDisplay"]["msgText"],isModal:false,timeout:sc_ajaxMsgTime,showButton:false,buttonLabel:"Ok",topPos:0,leftPos:0,width:0,height:0,redirUrl:"",redirTarget:"",redirParam:"",showClose:false,showBodyIcon:true,isToast:false,toastPos:""});}var scMsgDefClose="";function _scAjaxShowMessage_default(params){var sTitle=params["title"],sMessage=params["message"],bModal=params["isModal"],iTimeout=params["timeout"],bButton=params["showButton"],sButton=params["buttonLabel"],iTop=params["topPos"],iLeft=params["leftPos"],iWidth=params["width"],iHeight=params["height"],sRedir=params["redirUrl"],sTarget=params["redirTarget"],sParam=params["redirParam"],bClose=params["showClose"],bBodyIcon=params["showBodyIcon"],bToast=params["isToast"],sToastPos=params["toastPos"];if(""==sMessage){if(bModal){scMsgDefClick="close_modal";}else{scMsgDefClick="close";}_scAjaxMessageBtnClick();document.getElementById("id_message_display_title").innerHTML=scMsgDefTitle;document.getElementById("id_message_display_text").innerHTML="";document.getElementById("id_message_display_buttone").value=scMsgDefButton;document.getElementById("id_message_display_buttond").style.display="none";}else{document.getElementById("id_message_display_title").innerHTML=scAjaxSpecCharParser(sTitle);document.getElementById("id_message_display_text").innerHTML=scAjaxSpecCharParser(sMessage);document.getElementById("id_message_display_buttone").value=sButton;document.getElementById("id_message_display_buttond").style.display=bButton?"":"none";document.getElementById("id_message_display_buttond").style.display=bButton?"":"none";document.getElementById("id_message_display_title_line").style.display=(bClose||""!=sTitle)?"":"none";document.getElementById("id_message_display_close_icon").style.display=bClose?"":"none";if(document.getElementById("id_message_display_body_icon")){document.getElementById("id_message_display_body_icon").style.display=bBodyIcon?"":"none";}$("#id_message_display_content").css('width',(0<iWidth?iWidth+'px':''));$("#id_message_display_content").css('height',(0<iHeight?iHeight+'px':''));if(bModal){iWidth=iWidth||250;iHeight=iHeight||200;scMsgDefClose="close_modal";tb_show('','#TB_inline?height='+(iHeight+6)+'&width='+(iWidth+4)+'&inlineId=id_message_display_frame&modal=true','');if(bButton){if(""!=sRedir&&""!=sTarget){scMsgDefClick="redir2_modal";document.form_ajax_redir_2.action=sRedir;document.form_ajax_redir_2.target=sTarget;document.form_ajax_redir_2.nmgp_parms.value=sParam;document.form_ajax_redir_2.script_case_init.value=scMsgDefScInit;}else if(""!=sRedir&&""==sTarget){scMsgDefClick="redir1";document.form_ajax_redir_1.action=sRedir;document.form_ajax_redir_1.nmgp_parms.value=sParam;}else{scMsgDefClick="close_modal";}}else if(null!=iTimeout&&0<iTimeout){scMsgDefClick="close_modal";setTimeout("_scAjaxMessageBtnClick()",iTimeout*1000);}}else{scMsgDefClose="close";$("#id_message_display_frame").css('top',(0<iTop?iTop+'px':''));$("#id_message_display_frame").css('left',(0<iLeft?iLeft+'px':''));document.getElementById("id_message_display_frame").style.display="";if(0==iTop&&0==iLeft){scCenterElement(document.getElementById("id_message_display_frame"));}if(bButton){if(""!=sRedir&&""!=sTarget){scMsgDefClick="redir2";document.form_ajax_redir_2.action=sRedir;document.form_ajax_redir_2.target=sTarget;document.form_ajax_redir_2.nmgp_parms.value=sParam;document.form_ajax_redir_2.script_case_init.value=scMsgDefScInit;}else if(""!=sRedir&&""==sTarget){scMsgDefClick="redir1";document.form_ajax_redir_1.action=sRedir;document.form_ajax_redir_1.nmgp_parms.value=sParam;}else{scMsgDefClick="close";}}else if(null!=iTimeout&&0<iTimeout){scMsgDefClick="close";setTimeout("_scAjaxMessageBtnClick()",iTimeout*1000);}}}}function _scAjaxMessageBtnClose(){switch(scMsgDefClose){case"close":document.getElementById("id_message_display_frame").style.display="none";break;case"close_modal":tb_remove();break;}}function _scAjaxMessageBtnClick(){switch(scMsgDefClick){case"close":document.getElementById("id_message_display_frame").style.display="none";break;case"close_modal":tb_remove();break;case"dismiss":scAjaxHideMessage();break;case"redir1":document.form_ajax_redir_1.submit();break;case"redir2":document.form_ajax_redir_2.submit();document.getElementById("id_message_display_frame").style.display="none";break;case"redir2_modal":document.form_ajax_redir_2.submit();tb_remove();break;}}function scAjaxHasError(){if(!oResp["result"]){return false;}return"ERROR"==oResp["result"];}function scAjaxIsOk(){if(!oResp["result"]){return false;}return"OK"==oResp["result"]||"SET"==oResp["result"];}function scAjaxIsSet(){if(!oResp["result"]){return false;}return"SET"==oResp["result"];}function scAjaxCalendarReload(){if(oResp["calendarReload"]&&"OK"==oResp["calendarReload"]){self.parent.calendar_reload();self.parent.tb_remove();}}function scAjaxUpdateErrors(sType){ajax_error_geral="";oFieldErrors={};if(oResp["errList"]){for(iFieldErrors=0;iFieldErrors<oResp["errList"].length;iFieldErrors++){sTestField=oResp["errList"][iFieldErrors]["fldName"];if("geral_app_Login"==sTestField){if(ajax_error_geral!=''){ajax_error_geral+='<br>';}ajax_error_geral+=scAjaxSpecCharParser(oResp["errList"][iFieldErrors]["msgText"]);}else{if(scFocusFirstErrorField&&''==scFocusFirstErrorName){scFocusFirstErrorName=sTestField;}if(oResp["errList"][iFieldErrors]["numLinha"]){sTestField+=oResp["errList"][iFieldErrors]["numLinha"];}if(!oFieldErrors[sTestField]){oFieldErrors[sTestField]=new Array();}oFieldErrors[sTestField][oFieldErrors[sTestField].length]=scAjaxSpecCharParser(oResp["errList"][iFieldErrors]["msgText"]);}}}for(iUpdateErrors=0;iUpdateErrors<ajax_field_list.length;iUpdateErrors++){sTestField=ajax_field_list[iUpdateErrors];if(oFieldErrors[sTestField]){ajax_error_list[sTestField][sType]=oFieldErrors[sTestField];}}}function scAjaxUpdateFieldErrors(sField,sType){aFieldErrors=new Array();if(oResp["errList"]){iErrorPos=0;for(iFieldErrors=0;iFieldErrors<oResp["errList"].length;iFieldErrors++){sTestField=oResp["errList"][iFieldErrors]["fldName"];if(oResp["errList"][iFieldErrors]["numLinha"]){sTestField+=oResp["errList"][iFieldErrors]["numLinha"];}if(sField==sTestField){aFieldErrors[iErrorPos]=scAjaxSpecCharParser(oResp["errList"][iFieldErrors]["msgText"]);iErrorPos++;}}}if(ajax_error_list[sField]){ajax_error_list[sField][sType]=aFieldErrors;}}function scAjaxListErrors(bLabel){bFirst=false;sAppErrorText="";if(""!=ajax_error_geral){bFirst=true;sAppErrorText+=ajax_error_geral;}for(iFieldList=0;iFieldList<ajax_field_list.length;iFieldList++){sFieldError=scAjaxListFieldErrors(ajax_field_list[iFieldList],bLabel);if(""!=sFieldError){if(bFirst){bFirst=false
  sAppErrorText+="<hr size=\"1\" width=\"80%\" />";}sAppErrorText+=sFieldError;}}return sAppErrorText;}function scAjaxListFieldErrors(sField,bLabel){sErrorText="";for(iErrorType=0;iErrorType<ajax_error_type.length;iErrorType++){if(ajax_error_list[sField]){for(iListErrors=0;iListErrors<ajax_error_list[sField][ajax_error_type[iErrorType]].length;iListErrors++){if(bLabel){sErrorText+=ajax_error_list[sField]["label"]+": ";}sErrorText+=ajax_error_list[sField][ajax_error_type[iErrorType]][iListErrors]+"<br />";}}}return sErrorText;}function scAjaxClearErrors(){var fieldName;for(fieldName in ajax_error_list){if(null!=ajax_error_list[fieldName]){ajax_error_list[fieldName]["valid"]=new Array();ajax_error_list[fieldName]["onblur"]=new Array();ajax_error_list[fieldName]["onchange"]=new Array();ajax_error_list[fieldName]["onclick"]=new Array();ajax_error_list[fieldName]["onfocus"]=new Array();}}}function scAjaxSetVariables(){if(!oResp["varList"]){return true;}for(var iVarFields=0;iVarFields<oResp["varList"].length;iVarFields++){var sVarName=oResp["varList"][iVarFields]["index"];var sVarValue=oResp["varList"][iVarFields]["value"];eval(sVarName+" = \""+sVarValue+"\";");}}function scAjaxSetFields(){if(!oResp["fldList"]){return true;}for(iSetFields=0;iSetFields<oResp["fldList"].length;iSetFields++){var sFieldName=oResp["fldList"][iSetFields]["fldName"];var sFieldType=oResp["fldList"][iSetFields]["fldType"];if("selectdd"==sFieldType){var bSelectDD=true;sFieldType="select";}else{var bSelectDD=false;}if("select2_ac"==sFieldType){var bSelect2AC=true;sFieldType="select";}else{var bSelect2AC=false;}if(oResp["fldList"][iSetFields]["valList"]){var oFieldValues=oResp["fldList"][iSetFields]["valList"];if(0==oFieldValues.length){oFieldValues=null;}}else{var oFieldValues=null;}if(oResp["fldList"][iSetFields]["optList"]){var oFieldOptions=oResp["fldList"][iSetFields]["optList"];}else{var oFieldOptions=null;}if("corhtml"==sFieldType){sFieldType='text';}if("_autocomp"==sFieldName.substr(sFieldName.length-9)&&iSetFields>0&&sFieldName.substr(0,sFieldName.length-9)==oResp["fldList"][iSetFields-1]["fldName"]&&document.getElementById("div_ac_lab_"+sFieldName.substr(0,sFieldName.length-9))){sLabel_auto_Comp=(oFieldValues[0]['value'])?oFieldValues[0]['value']:"";document.getElementById("div_ac_lab_"+sFieldName.substr(0,sFieldName.length-9)).innerHTML=sLabel_auto_Comp;}if(oResp["fldList"][iSetFields]["colNum"]){var iColNum=oResp["fldList"][iSetFields]["colNum"];}else{var iColNum=1;}if(oResp["fldList"][iSetFields]["row"]){var iRow=oResp["fldList"][iSetFields]["row"];var thisRow=oResp["fldList"][iSetFields]["row"];}else{var iRow=1;var thisRow="";}if(oResp["fldList"][iSetFields]["htmComp"]){var sHtmComp=oResp["fldList"][iSetFields]["htmComp"];sHtmComp=sHtmComp.replace(/__AD__/gi,'"');sHtmComp=sHtmComp.replace(/__AS__/gi,"'");}else{var sHtmComp=null;}if(oResp["fldList"][iSetFields]["imgFile"]){var sImgFile=oResp["fldList"][iSetFields]["imgFile"];}else{var sImgFile="";}if(oResp["fldList"][iSetFields]["imgOrig"]){var sImgOrig=oResp["fldList"][iSetFields]["imgOrig"];}else{var sImgOrig="";}if(oResp["fldList"][iSetFields]["keepImg"]){var sKeepImg=oResp["fldList"][iSetFields]["keepImg"];}else{var sKeepImg="N";}if(oResp["fldList"][iSetFields]["hideName"]){var sHideName=oResp["fldList"][iSetFields]["hideName"];}else{var sHideName="N";}if(oResp["fldList"][iSetFields]["imgLink"]){var sImgLink=oResp["fldList"][iSetFields]["imgLink"];}else{var sImgLink=null;}if(oResp["fldList"][iSetFields]["docLink"]){var sDocLink=oResp["fldList"][iSetFields]["docLink"];}else{var sDocLink="";}if(oResp["fldList"][iSetFields]["docIcon"]){var sDocIcon=oResp["fldList"][iSetFields]["docIcon"];}else{var sDocIcon="";}if(oResp["fldList"][iSetFields]["optComp"]){var sOptComp=oResp["fldList"][iSetFields]["optComp"];}else{var sOptComp="";}if(oResp["fldList"][iSetFields]["optClass"]){var sOptClass=oResp["fldList"][iSetFields]["optClass"];}else{var sOptClass="";}if(oResp["fldList"][iSetFields]["optMulti"]){var sOptMulti=oResp["fldList"][iSetFields]["optMulti"];}else{var sOptMulti="";}if(oResp["fldList"][iSetFields]["imgHtml"]){var sImgHtml=oResp["fldList"][iSetFields]["imgHtml"];}else{var sImgHtml="";}if(oResp["fldList"][iSetFields]["mulHtml"]){var sMULHtml=oResp["fldList"][iSetFields]["mulHtml"];}else{var sMULHtml="";}if(oResp["fldList"][iSetFields]["updInnerHtml"]){var sInnerHtml=scAjaxSpecCharParser(oResp["fldList"][iSetFields]["updInnerHtml"]);}else{var sInnerHtml=null;}if(oResp["fldList"][iSetFields]["lookupCons"]){var sLookupCons=scAjaxSpecCharParser(oResp["fldList"][iSetFields]["lookupCons"]);}else{var sLookupCons="";}if(oResp["clearUpload"]){var sClearUpload=scAjaxSpecCharParser(oResp["clearUpload"]);}else{var sClearUpload="N";}if(oResp["eventField"]){var sEventField=scAjaxSpecCharParser(oResp["eventField"]);}else{var sEventField="__SC_NO_FIELD";}if(oResp["fldList"][iSetFields]["switch"]){var bSwitch=true==oResp["fldList"][iSetFields]["switch"];}else{var bSwitch=false;}if("checkbox"==sFieldType){scAjaxSetFieldCheckbox(sFieldName,oFieldValues,oFieldOptions,iColNum,sHtmComp,sInnerHtml,sOptComp,sOptClass,sOptMulti,bSwitch,sEventField);}else if("duplosel"==sFieldType){scAjaxSetFieldDuplosel(sFieldName,oFieldValues,oFieldOptions);}else if("imagem"==sFieldType){scAjaxSetFieldImage(sFieldName,oFieldValues,sImgFile,sImgOrig,sImgLink,sKeepImg,sHideName);}else if("documento"==sFieldType){scAjaxSetFieldDocument(sFieldName,oFieldValues,sDocLink,sDocIcon,sClearUpload);}else if("label"==sFieldType){scAjaxSetFieldLabel(sFieldName,oFieldValues,oFieldOptions,sLookupCons);}else if("radio"==sFieldType){scAjaxSetFieldRadio(sFieldName,oFieldValues,oFieldOptions,iColNum,sHtmComp,sOptComp,bSwitch,sEventField);}else if("select"==sFieldType){scAjaxSetFieldSelect(sFieldName,oFieldValues,oFieldOptions,bSelectDD,bSelect2AC,iRow,sEventField,thisRow);}else if("text"==sFieldType){scAjaxSetFieldText(sFieldName,oFieldValues,sLookupCons,thisRow,sEventField);}else if("color_palette"==sFieldType){scAjaxSetFieldColorPalette(sFieldName,oFieldValues);}else if("editor_html"==sFieldType){scAjaxSetFieldEditorHtml(sFieldName,oFieldValues);}else if("imagehtml"==sFieldType){scAjaxSetFieldImageHtml(sFieldName,oFieldValues,sImgHtml);}else if("innerhtml"==sFieldType){scAjaxSetFieldInnerHtml(sFieldName,oFieldValues);}else if("multi_upload"==sFieldType){scAjaxSetFieldMultiUpload(sFieldName,sMULHtml);}else if("recur_info"==sFieldType){scAjaxSetFieldRecurInfo(sFieldName,sMULHtml);}else if("signature"==sFieldType){scAjaxSetFieldSignature(sFieldName,oFieldValues);}else if("rating"==sFieldType){scAjaxSetFieldRating(sFieldName,oFieldValues,thisRow);}scAjaxUpdateHeaderFooter(sFieldName,oFieldValues);}}function scAjaxUpdateHeaderFooter(sFieldName,oFieldValues){if(self.updateHeaderFooter){if(null==oFieldValues){sNewValue='';}else if(oFieldValues[0]["label"]){sNewValue=oFieldValues[0]["label"];}else{sNewValue=oFieldValues[0]["value"];}updateHeaderFooter(sFieldName,scAjaxSpecCharParser(sNewValue));}}function scAjaxSetFieldText(sFieldName,oFieldValues,sLookupCons,thisRow,sEventField){if(document.F1.elements[sFieldName]){var jqField=$("#id_sc_field_"+sFieldName),Temp_text=scAjaxReturnBreakLine(scAjaxSpecCharParser(scAjaxProtectBreakLine(oFieldValues[0]['value'])));if(jqField.length){jqField.val(Temp_text);if(sEventField!=sFieldName&&sEventField!="__SC_NO_FIELD"&&sEventField!=""){}}else{eval("document.F1."+sFieldName+".value = Temp_text");}if(scEventControl_data[sFieldName]){scEventControl_data[sFieldName]["calculated"]=Temp_text;}}if(document.getElementById("id_lookup_"+sFieldName)){document.getElementById("id_lookup_"+sFieldName).innerHTML=sLookupCons;}if(oFieldValues[0]['label']){scAjaxSetReadonlyArrayValue(sFieldName,oFieldValues);}else{oFieldValues[0]['value']=scAjaxBreakLine(oFieldValues[0]['value']);scAjaxSetReadonlyValue(sFieldName,oFieldValues[0]['value']);}scAjaxSetSliderValue(sFieldName,thisRow);}function scAjaxSetSliderValue(fieldName,thisRow){var sliderObject=$("#sc-ui-slide-"+fieldName);if(!sliderObject.length){return;}scJQSlideValue(fieldName,thisRow);}function scAjaxSetFieldColorPalette(sFieldName,oFieldValues){if(document.F1.elements[sFieldName]){var Temp_text=scAjaxReturnBreakLine(scAjaxSpecCharParser(scAjaxProtectBreakLine(oFieldValues[0]['value'])));eval("document.F1."+sFieldName+".value = Temp_text");}if(oFieldValues[0]['label']){scAjaxSetReadonlyArrayValue(sFieldName,oFieldValues);}else{oFieldValues[0]['value']=scAjaxBreakLine(oFieldValues[0]['value']);setaCorPaleta(sFieldName,oFieldValues[0]['value']);scAjaxSetReadonlyValue(sFieldName,oFieldValues[0]['value']);}}function scAjaxSetFieldSelect(sFieldName,oFieldValues,oFieldOptions,bSelectDD,bSelect2AC,iRow,sEventField,thisRow){sFieldNameHtml=sFieldName;if(!document.F1.elements[sFieldName]&&!document.F1.elements[sFieldName+"[]"]){return;}if(bSelectDD){$("#id_sc_field_"+sFieldName).dropdownchecklist("destroy");}if(!document.F1.elements[sFieldName]&&document.F1.elements[sFieldName+"[]"]){sFieldNameHtml+="[]";}if("hidden"==document.F1.elements[sFieldNameHtml].type){scAjaxSetFieldText(sFieldNameHtml,oFieldValues,"","",sEventField);return;}if(null!=oFieldOptions){$("#id_sc_field_"+sFieldName).children().remove()
  if("<select"!=oFieldOptions.substr(0,7)){var $oField=$("#id_sc_field_"+sFieldName);if(0<$oField.length){$oField.html(oFieldOptions);}else{document.getElementById("idAjaxSelect_"+sFieldName).innerHTML=oFieldOptions;}}else{document.getElementById("idAjaxSelect_"+sFieldName).innerHTML=oFieldOptions;}}var aValues=new Array();if(null!=oFieldValues){for(iFieldSelect=0;iFieldSelect<oFieldValues.length;iFieldSelect++){aValues[iFieldSelect]=scAjaxSpecCharParser(oFieldValues[iFieldSelect]["value"]);}}var oFormField=$("#id_sc_field_"+sFieldName);for(iFieldSelect=0;iFieldSelect<oFormField[0].length;iFieldSelect++){if(scAjaxInArray(oFormField[0].options[iFieldSelect].value,aValues)){oFormField[0].options[iFieldSelect].selected=true;}else{oFormField[0].options[iFieldSelect].selected=false;}}scAjaxSetReadonlyArrayValue(sFieldName,oFieldValues,"<br />");if(bSelectDD){scJQDDCheckBoxAdd(thisRow,true);}if(bSelect2AC){var newOption=new Option(oFieldValues[0]["label"],oFieldValues[0]["value"],true,true);$("#id_ac_"+sFieldName).append(newOption);$("#id_sc_field_"+sFieldName).val(oFieldValues[0]["value"]);}else if(oFormField.hasClass("select2-hidden-accessible")){$("#id_sc_field_"+sFieldName).select2("destroy");var select2Field=sFieldName;if(""!=thisRow){select2Field=select2Field.substr(0,select2Field.length-thisRow.toString().length);}scJQSelect2Add(thisRow,select2Field);}}function scAjaxSetFieldDuplosel(sFieldName,oFieldValues,oFieldOptions){var sFieldNameOrig=sFieldName+"_orig";var sFieldNameDest=sFieldName+"_dest";var oFormFieldOrig=document.F1.elements[sFieldNameOrig];var oFormFieldDest=document.F1.elements[sFieldNameDest];if(null!=oFieldOptions){scAjaxClearSelect(sFieldNameOrig);for(iFieldSelect=0;iFieldSelect<oFieldOptions.length;iFieldSelect++){oFormFieldOrig.options[iFieldSelect]=new Option(scAjaxSpecCharParser(oFieldOptions[iFieldSelect]["label"]),scAjaxSpecCharParser(oFieldOptions[iFieldSelect]["value"]));}}while(oFormFieldDest.length>0){oFormFieldDest.options[0]=null;}var aValues=new Array();if(null!=oFieldValues){for(iFieldSelect=0;iFieldSelect<oFieldValues.length;iFieldSelect++){sNewOptionLabel=oFieldValues[iFieldSelect]["label"]?scAjaxSpecCharParser(oFieldValues[iFieldSelect]["label"]):scAjaxSpecCharParser(oFieldValues[iFieldSelect]["value"]);sNewOptionValue=scAjaxSpecCharParser(oFieldValues[iFieldSelect]["value"]);if(sNewOptionValue.substr(0,8)=="@NMorder"){sNewOptionValue=sNewOptionValue.substr(8);oFormFieldDest.options[iFieldSelect]=new Option(scAjaxSpecCharParser(sNewOptionLabel),sNewOptionValue);sNewOptionValue=sNewOptionValue.substr(1);aValues[iFieldSelect]=sNewOptionValue;}else{aValues[iFieldSelect]=sNewOptionValue;oFormFieldDest.options[iFieldSelect]=new Option(scAjaxSpecCharParser(sNewOptionLabel),sNewOptionValue);}}}for(iFieldSelect=0;iFieldSelect<oFormFieldOrig.length;iFieldSelect++){oFormFieldOrig.options[iFieldSelect].selected=false;if(scAjaxInArray(oFormFieldOrig.options[iFieldSelect].value,aValues)){oFormFieldOrig.options[iFieldSelect].disabled=true;oFormFieldOrig.options[iFieldSelect].style.color="#A0A0A0";}else{oFormFieldOrig.options[iFieldSelect].disabled=false;}}scAjaxSetReadonlyArrayValue(sFieldName,oFieldValues,"<br />");}function scAjaxSetFieldCheckbox(sFieldName,oFieldValues,oFieldOptions,iColNum,sHtmComp,sInnerHtml,sOptComp,sOptClass,sOptMulti,bSwitch,sEventField){if(null==bSwitch){bSwitch=false;}if(document.getElementById("idAjaxCheckbox_"+sFieldName)&&null!=sInnerHtml){document.getElementById("idAjaxCheckbox_"+sFieldName).innerHTML=sInnerHtml;return;}if(null!=oFieldOptions){scAjaxClearCheckbox(sFieldName);}if(document.F1.elements[sFieldName]&&"hidden"==document.F1.elements[sFieldName].type){scAjaxSetFieldText(sFieldName,oFieldValues,"","",sEventField);return;}if(null!=oFieldOptions&&""!=oFieldOptions){scAjaxRecreateOptions("Checkbox","checkbox",sFieldName,oFieldValues,oFieldOptions,iColNum,sHtmComp,sOptComp,sOptClass,sOptMulti,bSwitch);}else{scAjaxSetCheckboxOptions(sFieldName,oFieldValues);}scAjaxSetSwitchOptions(sFieldName,"checkbox");scAjaxSetReadonlyArrayValue(sFieldName,oFieldValues,"<br />");}function scAjaxSetFieldRadio(sFieldName,oFieldValues,oFieldOptions,iColNum,sHtmComp,sOptComp,bSwitch,sEventField){if(null==bSwitch){bSwitch=false;}if(document.F1.elements[sFieldName]&&"hidden"==document.F1.elements[sFieldName].type){scAjaxSetFieldText(sFieldName,oFieldValues,"","",sEventField);return;}if(null!=oFieldOptions){scAjaxClearRadio(sFieldName);}if(null!=oFieldOptions&&""!=oFieldOptions){scAjaxRecreateOptions("Radio","radio",sFieldName,oFieldValues,oFieldOptions,iColNum,sHtmComp,sOptComp,"","",bSwitch);}else{scAjaxSetRadioOptions(sFieldName,oFieldValues);}scAjaxSetSwitchOptions(sFieldName,"radio");scAjaxSetReadonlyArrayValue(sFieldName,oFieldValues,"<br />");}function scAjaxSetSwitchOptions(fieldName,fieldType){var fieldOptions=$(".sc-ui-"+fieldType+"-"+fieldName+".lc-switch");if(!fieldOptions.length){return;}for(var i=0;i<fieldOptions.length;i++){if($(fieldOptions[i]).prop("checked")){$(fieldOptions[i]).lcs_on();}else{$(fieldOptions[i]).lcs_off();}}}function scAjaxSetFieldLabel(sFieldName,oFieldValues,oFieldOptions,sLookupCons){sFieldValue=oFieldValues[0]["value"];sFieldLabel=oFieldValues[0]["value"];sFieldLabel=scAjaxBreakLine(sFieldLabel);if(null!=oFieldOptions){for(iRecreate=0;iRecreate<oFieldOptions.length;iRecreate++){sOptText=scAjaxSpecCharParser(oFieldOptions[iRecreate]["value"]);sOptValue=scAjaxSpecCharParser(oFieldOptions[iRecreate]["label"]);if(sFieldValue==sOptText){sFieldLabel=sOptValue;}}}if(document.getElementById("id_ajax_label_"+sFieldName)){document.getElementById("id_ajax_label_"+sFieldName).innerHTML=scAjaxSpecCharParser(sFieldLabel);}if(document.F1.elements[sFieldName]){Temp_text=scAjaxProtectBreakLine(sFieldValue);Temp_text=scAjaxSpecCharParser(Temp_text);document.F1.elements[sFieldName].value=scAjaxReturnBreakLine(Temp_text);}if(document.getElementById("id_lookup_"+sFieldName)){document.getElementById("id_lookup_"+sFieldName).innerHTML=sLookupCons;}scAjaxSetReadonlyValue(sFieldName,scAjaxSpecCharParser(sFieldLabel));}function scAjaxSetFieldImage(sFieldName,oFieldValues,sImgFile,sImgOrig,sImgLink,sKeepImg,sHideName){if(!document.F1.elements[sFieldName]&&!document.F1.elements[sFieldName+"[]"]){return;}if("N"==sKeepImg&&document.getElementById("id_ajax_img_"+sFieldName)){document.getElementById("id_ajax_img_"+sFieldName).src=scAjaxSpecCharParser(sImgFile);document.getElementById("id_ajax_img_"+sFieldName).style.display=(""==sImgFile)?"none":"";}if(document.getElementById("id_ajax_link_"+sFieldName)&&null!=sImgLink){document.getElementById("id_ajax_link_"+sFieldName).innerHTML=oFieldValues[0]["value"];document.getElementById("id_ajax_link_"+sFieldName).href=scAjaxSpecCharParser(sImgLink);}if(document.getElementById("chk_ajax_img_"+sFieldName)){document.getElementById("chk_ajax_img_"+sFieldName).style.display=(""==oFieldValues[0]["value"])?"none":"";}if(""==oFieldValues[0]["value"]&&document.F1.elements[sFieldName+"_limpa"]){document.F1.elements[sFieldName+"_limpa"].checked=false;}if("N"==sKeepImg&&document.getElementById("txt_ajax_img_"+sFieldName)){document.getElementById("txt_ajax_img_"+sFieldName).innerHTML=oFieldValues[0]["value"];document.getElementById("txt_ajax_img_"+sFieldName).style.display=(""==oFieldValues[0]["value"]||"S"==sHideName)?"none":"";}if(""!=sImgOrig){eval("if (var_ajax_img_"+sFieldName+") var_ajax_img_"+sFieldName+" = '"+sImgOrig+"';");if(document.F1.elements["temp_out1_"+sFieldName]){document.F1.elements["temp_out_"+sFieldName].value=sImgFile;document.F1.elements["temp_out1_"+sFieldName].value=sImgOrig;}else if(document.F1.elements["temp_out_"+sFieldName]){document.F1.elements["temp_out_"+sFieldName].value=sImgOrig;}}if(""!=oFieldValues[0]["value"]){if(document.F1.elements[sFieldName+"_salva"])document.F1.elements[sFieldName+"_salva"].value=oFieldValues[0]["value"];}else if(oResp&&oResp["ajaxRequest"]&&"navigate_form"==oResp["ajaxRequest"]){if(document.F1.elements[sFieldName+"_salva"])document.F1.elements[sFieldName+"_salva"].value="";}scAjaxSetReadonlyValue(sFieldName,scAjaxSpecCharParser(oFieldValues[0]["value"]));}function scAjaxSetFieldDocument(sFieldName,oFieldValues,sDocLink,sDocIcon,sClearUpload){if(!document.F1.elements[sFieldName]&&!document.F1.elements[sFieldName+"[]"]){return;}document.getElementById("id_ajax_doc_"+sFieldName).innerHTML=scAjaxSpecCharParser(sDocLink);if(document.getElementById("id_ajax_doc_icon_"+sFieldName)){document.getElementById("id_ajax_doc_icon_"+sFieldName).src=scAjaxSpecCharParser(sDocIcon);}if(""==oFieldValues[0]["value"]){document.getElementById("chk_ajax_img_"+sFieldName).style.display="none";document.getElementById("id_ajax_doc_"+sFieldName).style.display="none";}else{document.getElementById("chk_ajax_img_"+sFieldName).style.display="";document.getElementById("id_ajax_doc_"+sFieldName).style.display="";}if(""==oFieldValues[0]["value"]&&document.F1.elements[sFieldName+"_limpa"]){document.F1.elements[sFieldName+"_limpa"].checked=false;}if("S"==sClearUpload&&document.F1.elements[sFieldName+"_ul_name"]){document.F1.elements[sFieldName+"_ul_name"].value="";}scAjaxSetReadonlyValue(sFieldName,scAjaxSpecCharParser(oFieldValues[0]["value"]));}function scAjaxSetFieldInnerHtml(sFieldName,oFieldValues){if(document.getElementById(sFieldName)){document.getElementById(sFieldName).innerHTML=scAjaxSpecCharParser(oFieldValues[0]["value"]);}}function scAjaxSetFieldMultiUpload(sFieldName,sMULHtml){if(!document.F1.elements[sFieldName]&&!document.F1.elements[sFieldName+"[]"]){return;}$("#id_sc_loaded_"+sFieldName).html(scAjaxSpecCharParser(sMULHtml));}function scAjaxExecFieldEditorHtml(strOption,bolUI,oField){if(tinymce.majorVersion>3){if(strOption=='mceAddControl'){tinymce.execCommand('mceAddEditor',bolUI,oField);}else
  if(strOption=='mceRemoveControl'){tinymce.execCommand('mceRemoveEditor',bolUI,oField);}}else{tinyMCE.execCommand(strOption,bolUI,oField);}}function scAjaxSetFieldEditorHtml(sFieldName,oFieldValues){if(!document.F1.elements[sFieldName]){return;}if(tinymce.majorVersion>3){var oFormField=tinyMCE.get(sFieldName);}else{var oFormField=tinyMCE.getInstanceById(sFieldName);}oFormField.setContent(scAjaxSpecCharParser(oFieldValues[0]["value"]));scAjaxSetReadonlyValue(sFieldName,scAjaxSpecCharParser(oFieldValues[0]["value"]));}function scAjaxSetFieldImageHtml(sFieldName,oFieldValues,sImgHtml){if(document.getElementById("id_imghtml_"+sFieldName)){document.getElementById("id_imghtml_"+sFieldName).innerHTML=scAjaxSpecCharParser(sImgHtml);}}function scAjaxSetFieldRecurInfo(sFieldName,oFieldValues){var jsonData=""!=oFieldValues[0]["value"]?JSON.parse(oFieldValues[0]["value"]):{repeat:"1",endon:"E",endafter:"",endin:""};$("#id_rinf_repeat_"+sFieldName).val(jsonData.repeat);$(".cl_rinf_endon_"+sFieldName).filter(function(index){return $(this).val()==jsonData.endon}).prop("checked",true),$("#id_rinf_endafter_"+sFieldName).val(jsonData.endafter);$("#id_rinf_endin_"+sFieldName).val(jsonData.endin);scAjaxSetReadonlyValue(sFieldName,scAjaxSpecCharParser(oFieldValues[0]["value"]));}function scAjaxSetFieldSignature(sFieldName,oFieldValues){var fieldValue=scAjaxSpecCharParser(oFieldValues[0]['value']);if("data:image/png;base64,"!=fieldValue.substr(0,22)&&"data:image/jsignature;base30,"!=fieldValue.substr(0,29)){scJQSignatureClear(sFieldName);return;}$("#id_sc_field_"+sFieldName).val(fieldValue);scJQSignatureRedraw(sFieldName);}function scAjaxSetFieldRating(sFieldName,oFieldValues,thisRow){$("#id_sc_field_"+sFieldName).val(oFieldValues[0]['value']);if(""!=thisRow){sFieldName=sFieldName.substr(0,sFieldName.lastIndexOf("_")+1);}scJQRatingRedraw(sFieldName,thisRow);}function scAjaxSetCheckboxOptions(sFieldName,oFieldValues){if(!document.F1.elements[sFieldName]&&!document.F1.elements[sFieldName+"[]"]&&!document.F1.elements[sFieldName+"[0]"]){return;}var aValues=new Array();if(null!=oFieldValues){for(iFieldSelect=0;iFieldSelect<oFieldValues.length;iFieldSelect++){aValues[iFieldSelect]=scAjaxSpecCharParser(oFieldValues[iFieldSelect]["value"]);}}if(document.F1.elements[sFieldName+"[]"]){var oFormField=document.F1.elements[sFieldName+"[]"];if(oFormField.length){for(iFieldCheckbox=0;iFieldCheckbox<oFormField.length;iFieldCheckbox++){if(scAjaxInArray(oFormField[iFieldCheckbox].value,aValues)){oFormField[iFieldCheckbox].checked=true;}else{oFormField[iFieldCheckbox].checked=false;}}}else{if(scAjaxInArray(oFormField.value,aValues)){oFormField.checked=true;}else{oFormField.checked=false;}}}else if(document.F1.elements[sFieldName+"[0]"]){for(iFieldCheckbox=0;iFieldCheckbox<document.F1.elements.length;iFieldCheckbox++){oFormElement=document.F1.elements[iFieldCheckbox];if(sFieldName+"["==oFormElement.name.substr(0,sFieldName.length+1)&&scAjaxInArray(oFormElement.value,aValues)){oFormElement.checked=true;}else if(sFieldName+"["==oFormElement.name.substr(0,sFieldName.length+1)){oFormElement.checked=false;}}}else{oFormElement=document.F1.elements[sFieldName];if(scAjaxInArray(oFormElement.value,aValues)){oFormElement.checked=true;}else{oFormElement.checked=false;}}}function scAjaxSetRadioOptions(sFieldName,oFieldValues){if(!document.F1.elements[sFieldName]){return;}var oFormField=document.F1.elements[sFieldName];var aValues=new Array();if(null!=oFieldValues){for(iFieldSelect=0;iFieldSelect<oFieldValues.length;iFieldSelect++){aValues[iFieldSelect]=scAjaxSpecCharParser(oFieldValues[iFieldSelect]["value"]);}}for(iFieldRadio=0;iFieldRadio<oFormField.length;iFieldRadio++){oFormField[iFieldRadio].checked=false;}for(iFieldRadio=0;iFieldRadio<oFormField.length;iFieldRadio++){if(scAjaxInArray(oFormField[iFieldRadio].value,aValues)){oFormField[iFieldRadio].checked=true;}}}function scAjaxSetReadonlyValue(sFieldName,sFieldValue){if(document.getElementById("id_read_on_"+sFieldName)){document.getElementById("id_read_on_"+sFieldName).innerHTML=sFieldValue;}}function scAjaxSetReadonlyArrayValue(sFieldName,oFieldValues,sDelim){if(null==oFieldValues){return;}if(null==sDelim){sDelim=" ";}sReadLabel="";for(iReadArray=0;iReadArray<oFieldValues.length;iReadArray++){if(oFieldValues[iReadArray]["label"]){if(""!=sReadLabel){sReadLabel+=sDelim;}sReadLabel+=oFieldValues[iReadArray]["label"];}else if(oFieldValues[iReadArray]["value"]){if(""!=sReadLabel){sReadLabel+=sDelim;}sReadLabel+=oFieldValues[iReadArray]["value"];}}scAjaxSetReadonlyValue(sFieldName,sReadLabel);}function scAjaxGetFieldValue(sFieldGet){sValue="";if(!oResp["fldList"]){return sValue;}for(iFieldValue=0;iFieldValue<oResp["fldList"].length;iFieldValue++){var sFieldName=oResp["fldList"][iFieldValue]["fldName"];if(oResp["fldList"][iFieldValue]["valList"]){var oFieldValues=oResp["fldList"][iFieldValue]["valList"];if(0==oFieldValues.length){oFieldValues=null;}}else{var oFieldValues=null;}if(sFieldGet==sFieldName&&null!=oFieldValues){if(1==oFieldValues.length){sValue=scAjaxSpecCharParser(oFieldValues[0]["value"]);}else{sValue=new Array();for(jFieldValue=0;jFieldValue<oFieldValues.length;jFieldValue++){sValue[jFieldValue]=scAjaxSpecCharParser(oFieldValues[jFieldValue]["value"]);}}}}return sValue;}function scAjaxGetKeyValue(sFieldGet){sValue="";if(!oResp["fldList"]){return sValue;}for(iKeyValue=0;iKeyValue<oResp["fldList"].length;iKeyValue++){var sFieldName=oResp["fldList"][iKeyValue]["fldName"];if(sFieldGet==sFieldName){if(oResp["fldList"][iKeyValue]["keyVal"]){return scAjaxSpecCharParser(oResp["fldList"][iKeyValue]["keyVal"]);}else{return scAjaxGetFieldValue(sFieldGet);}}}return sValue;}function scAjaxGetLineNumber(){sLineNumber="";if(oResp["errList"]){for(iLineNumber=0;iLineNumber<oResp["errList"].length;iLineNumber++){if(oResp["errList"][iLineNumber]["numLinha"]){sLineNumber=oResp["errList"][iLineNumber]["numLinha"];}}return sLineNumber;}if(oResp["fldList"]){return oResp["fldList"][0]["numLinha"];}if(oResp["msgDisplay"]){return oResp["msgDisplay"]["numLinha"];}return sLineNumber;}function scAjaxFieldExists(sFieldGet){bExists=false;if(!oResp["fldList"]){return bExists;}for(iFieldValue=0;iFieldValue<oResp["fldList"].length;iFieldValue++){var sFieldName=oResp["fldList"][iFieldValue]["fldName"];if(oResp["fldList"][iFieldValue]["valList"]){var oFieldValues=oResp["fldList"][iFieldValue]["valList"];if(0==oFieldValues.length){oFieldValues=null;}}else{var oFieldValues=null;}if(sFieldGet==sFieldName&&null!=oFieldValues){bExists=true;}}return bExists;}function scAjaxGetFieldText(sFieldName){$oHidden=$("input[name='"+sFieldName+"']");if(!$oHidden.length){$oHidden=$("input[name='"+sFieldName+"_']");}if($oHidden.length){for(var i=0;i<$oHidden.length;i++){if("hidden"==$oHidden[i].type&&$oHidden[i].form&&$oHidden[i].form.name&&"F1"==$oHidden[i].form.name){return scAjaxSpecCharProtect($oHidden[i].value);}}}$oField=$("#id_sc_field_"+sFieldName);if(!$oField.length){$oField=$("#id_sc_field_"+sFieldName+"_");}if($oField.length&&"select"!=$oField[0].type.substr(0,6)){return scAjaxSpecCharProtect($oField.val());}else if(document.F1.elements[sFieldName]){return scAjaxSpecCharProtect(document.F1.elements[sFieldName].value);}else if(document.F1.elements[sFieldName+'_']){return scAjaxSpecCharProtect(document.F1.elements[sFieldName+'_'].value);}else{return'';}}function scAjaxGetFieldHidden(sFieldName){for(i=0;i<document.F1.elements.length;i++){if(document.F1.elements[i].name==sFieldName){return scAjaxSpecCharProtect(document.F1.elements[i].value);}}}function scAjaxGetFieldSelect(sFieldName){sFieldNameHtml=sFieldName;if(!document.F1.elements[sFieldName]&&!document.F1.elements[sFieldName+"[]"]){return"";}if(!document.F1.elements[sFieldName]&&document.F1.elements[sFieldName+"[]"]){sFieldNameHtml+="[]";}if("hidden"==document.F1.elements[sFieldNameHtml].type){return scAjaxGetFieldHidden(sFieldNameHtml);}var oFormField=document.F1.elements[sFieldNameHtml];var iSelected=oFormField.selectedIndex;if(-1<iSelected){return scAjaxSpecCharProtect(oFormField.options[iSelected].value);}else{return"";}}function scAjaxGetFieldSelectMult(sFieldName,sFieldDelim){sFieldNameHtml=sFieldName;if(!document.F1.elements[sFieldName]&&document.F1.elements[sFieldName+"[]"]){sFieldNameHtml+="[]";}if("hidden"==document.F1.elements[sFieldNameHtml].type){return scAjaxGetFieldHidden(sFieldNameHtml);}var oFormField=document.F1.elements[sFieldNameHtml];var sFieldVals="";for(iFieldSelect=0;iFieldSelect<oFormField.length;iFieldSelect++){if(oFormField[iFieldSelect].selected){if(""!=sFieldVals){sFieldVals+=sFieldDelim;}sFieldVals+=scAjaxSpecCharProtect(oFormField[iFieldSelect].value);}}return sFieldVals;}function scAjaxGetFieldCheckbox(sFieldName,sDelim){var aValues=new Array();var sValue="";if(!document.F1.elements[sFieldName]&&!document.F1.elements[sFieldName+"[]"]&&!document.F1.elements[sFieldName+"[0]"]){return sValue;}if(document.F1.elements[sFieldName+"[]"]&&"hidden"==document.F1.elements[sFieldName+"[]"].type){return scAjaxGetFieldHidden(sFieldName+"[]");}if(document.F1.elements[sFieldName]&&"hidden"==document.F1.elements[sFieldName].type){return scAjaxGetFieldHidden(sFieldName);}if(document.F1.elements[sFieldName+"[]"]){var oFormField=document.F1.elements[sFieldName+"[]"];if(oFormField.length){for(iFieldCheck=0;iFieldCheck<oFormField.length;iFieldCheck++){if(oFormField[iFieldCheck].checked){aValues[aValues.length]=oFormField[iFieldCheck].value;}}}else{if(oFormField.checked){aValues[aValues.length]=oFormField.value;}}}else{for(iFieldCheck=0;iFieldCheck<document.F1.elements.length;iFieldCheck++){oFormElement=document.F1.elements[iFieldCheck];if(sFieldName+"["==oFormElement.name.substr(0,sFieldName.length+1)&&oFormElement.checked){aValues[aValues.length]=oFormElement.value;}else if(sFieldName==oFormElement.name&&oFormElement.checked){aValues[aValues.length]=oFormElement.value;}}}for(iFieldCheck=0;iFieldCheck<aValues.length;iFieldCheck++){sValue+=scAjaxSpecCharProtect(aValues[iFieldCheck]);if(iFieldCheck+1!=aValues.length){sValue+=sDelim;}}return sValue;}function scAjaxGetFieldRadio(sFieldName){if("hidden"==document.F1.elements[sFieldName].type){return scAjaxGetFieldHidden(sFieldName);}var sValue="";if(!document.F1.elements[sFieldName]){return sValue;}var oFormField=document.F1.elements[sFieldName];if(!oFormField.length){var sc_cmp_radio=eval("document.F1."+sFieldName);if(sc_cmp_radio.checked){sValue=scAjaxSpecCharProtect(sc_cmp_radio.value);}}else{for(iFieldRadio=0;iFieldRadio<oFormField.length;iFieldRadio++){if(oFormField[iFieldRadio].checked){sValue=scAjaxSpecCharProtect(oFormField[iFieldRadio].value);}}}return sValue;}function scAjaxGetFieldEditorHtml(sFieldName){if("hidden"==document.F1.elements[sFieldName].type){return scAjaxGetFieldHidden(sFieldName);}var sValue="";if(!document.F1.elements[sFieldName]){return sValue;}if(tinymce.majorVersion>3){var oFormField=tinyMCE.get(sFieldName);}else{var oFormField=tinyMCE.getInstanceById(sFieldName);}return scAjaxSpecCharParser(scAjaxSpecCharProtect(oFormField.getContent()));}function scAjaxGetFieldSignature(sFieldName){var signatureData=$("#sc-id-sign-"+sFieldName).jSignature("getData","base30");$("#id_sc_field_"+sFieldName).val("data:"+signatureData[0]+","+signatureData[1]);return $("#id_sc_field_"+sFieldName).val();}function scAjaxGetFieldRecurInfo(sFieldName){var repeatInList=$(".cl_rinf_repeatin_"+sFieldName).filter(":checked"),repeatInValues=[],jsonData,i;for(i=0;i<repeatInList.length;i++){repeatInValues.push($(repeatInList[i]).val());}jsonData={repeat:$("#id_rinf_repeat_"+sFieldName).val(),repeatin:repeatInValues.join(";"),endon:$(".cl_rinf_endon_"+sFieldName).filter(":checked").val(),endafter:$("#id_rinf_endafter_"+sFieldName).val(),endin:$("#id_rinf_endin_"+sFieldName).val()};return JSON.stringify(jsonData);}function scAjaxDoNothing(e){}function scAjaxInArray(mVal,aList){for(iInArray=0;iInArray<aList.length;iInArray++){if(aList[iInArray]==mVal){return true;}}return false;}function scAjaxSpecCharParser(sParseString){if(null==sParseString){return"";}var ta=document.createElement("textarea");ta.innerHTML=sParseString.replace(/</g,"&lt;").replace(/>/g,"&gt;");return ta.value;}function scAjaxSpecCharProtect(sOriginal){var sProtected;sProtected=sOriginal.replace(/[+]/g,"__NM_PLUS__");sProtected=sProtected.replace(/[%]/g,"__NM_PERC__");return sProtected;}function scAjaxRecreateOptions(sFieldType,sHtmlType,sFieldName,oFieldValues,oFieldOptions,iColNum,sHtmComp,sOptComp,sOptClass,sOptMulti,bSwitch){var sSuffix=("checkbox"==sHtmlType)?"[]":"";var sDivName="idAjax"+sFieldType+"_"+sFieldName;var sDivText="";var iCntLine=0;var aValues=new Array();var sClass;if(null!=oFieldValues){for(iRecreate=0;iRecreate<oFieldValues.length;iRecreate++){aValues[iRecreate]=scAjaxSpecCharParser(oFieldValues[iRecreate]["value"]);}}sDivText+="<table border=0>";for(iRecreate=0;iRecreate<oFieldOptions.length;iRecreate++){sOptText=scAjaxSpecCharParser(oFieldOptions[iRecreate]["label"]);sOptValue=scAjaxSpecCharParser(oFieldOptions[iRecreate]["value"]);if(0==iCntLine){sDivText+="<tr>";}iCntLine++;if(""!=sOptClass){sClass=" class=\""+sOptClass;if(""!=sOptMulti){sClass+=" "+sOptClass+sOptMulti;}sClass+="\"";}if(sHtmComp==null){sHtmComp="";}sChecked=(scAjaxInArray(sOptValue,aValues))?" checked":"";sDivText+="<td class=\"scFormDataFontOdd\">";if(bSwitch){sDivText+="<div class=\"sc ";if("Checkbox"==sFieldType){sDivText+="switch";}else{sDivText+="radio";}sDivText+="\">";}sDivText+="<input id=\"id-opt-"+sFieldName+"-"+iRecreate+"\" type=\""+sHtmlType+"\" name=\""+sFieldName+sSuffix+"\" value=\""+sOptValue+"\""+sChecked+" "+sHtmComp+" "+sOptComp+sClass+">";if(bSwitch){sDivText+="<span></span>";}sDivText+="<label for=\"id-opt-"+sFieldName+"-"+iRecreate+"\">"+sOptText+"</label>";if(bSwitch){sDivText+="</div>";}sDivText+="</td>";if(iColNum==iCntLine){sDivText+="</tr>";iCntLine=0;}}sDivText+="</table>";document.getElementById(sDivName).innerHTML=sDivText;}function scAjaxProcOn(bForce){if(null==bForce){bForce=false;}if(document.getElementById("id_div_process")){if($&&$.blockUI&&!bForce){$.blockUI({message:$("#id_div_process_block"),overlayCSS:{backgroundColor:sc_ajaxBg},css:{borderColor:sc_ajaxBordC,borderStyle:sc_ajaxBordS,borderWidth:sc_ajaxBordW}});}else{document.getElementById("id_div_process").style.display="";document.getElementById("id_fatal_error").style.display="none";if(null!=scCenterElement){scCenterElement(document.getElementById("id_div_process"));}}}}function scAjaxProcOff(bForce){if(null==bForce){bForce=false;}if(document.getElementById("id_div_process")){if($&&$.unblockUI&&!bForce){$.unblockUI();}else{document.getElementById("id_div_process").style.display="none";}}}function scAjaxSetMaster(){if(!oResp["masterValue"]){return;}if(scMasterDetailParentIframe&&""!=scMasterDetailParentIframe){var dbParentFrame=$(parent.document).find("[name='"+scMasterDetailParentIframe+"']");if(!dbParentFrame||!dbParentFrame[0]||!dbParentFrame[0].contentWindow.scAjaxDetailValue){return;}for(iMaster=0;iMaster<oResp["masterValue"].length;iMaster++){dbParentFrame[0].contentWindow.scAjaxDetailValue(oResp["masterValue"][iMaster]["index"],oResp["masterValue"][iMaster]["value"]);}}if(!parent||!parent.scAjaxDetailValue){return;}for(iMaster=0;iMaster<oResp["masterValue"].length;iMaster++){parent.scAjaxDetailValue(oResp["masterValue"][iMaster]["index"],oResp["masterValue"][iMaster]["value"]);}}function scAjaxSetFocus(){if(!oResp["setFocus"]&&''==scFocusFirstErrorName){return;}sFieldName=oResp["setFocus"];if(document.F1.elements[sFieldName]){scFocusField(sFieldName);}scAjaxFocusError();}function scAjaxFocusError(){if(''!=scFocusFirstErrorName){scFocusField(scFocusFirstErrorName);scFocusFirstErrorName='';}}function scAjaxSetNavStatus(sBarPos){if(!oResp["navStatus"]){return;}sNavRet="S";sNavAva="S";if(oResp["navStatus"]["ret"]){sNavRet=oResp["navStatus"]["ret"];}if(oResp["navStatus"]["ava"]){sNavAva=oResp["navStatus"]["ava"];}if("S"!=sNavRet&&"N"!=sNavRet){sNavRet="S";}if("S"!=sNavAva&&"N"!=sNavAva){sNavAva="S";}Nav_permite_ret=sNavRet;Nav_permite_ava=sNavAva;nav_atualiza(Nav_permite_ret,Nav_permite_ava,sBarPos);}function scAjaxSetSummary(){if(!oResp["navSummary"]){return;}sreg_ini=oResp["navSummary"].reg_ini;sreg_qtd=oResp["navSummary"].reg_qtd;sreg_tot=oResp["navSummary"].reg_tot;summary_atualiza(sreg_ini,sreg_qtd,sreg_tot);}function scAjaxSetNavpage(){navpage_atualiza(oResp["navPage"]);}function scAjaxRedir(oTemp){if(oTemp&&oTemp!=null){oResp=oTemp;}if(!oResp["redirInfo"]){return;}sMetodo=oResp["redirInfo"]["metodo"];sAction=oResp["redirInfo"]["action"];if("location"==sMetodo){if("parent.parent"==oResp["redirInfo"]["target"]){parent.parent.location=sAction;}else if("parent"==oResp["redirInfo"]["target"]){parent.location=sAction;}else if("_blank"==oResp["redirInfo"]["target"]){window.open(sAction,"_blank");}else{document.location=sAction;}}else if("html"==sMetodo){document.write(scAjaxSpecCharParser(oResp["redirInfo"]["action"]));}else{if(oResp["redirInfo"]["target"]=="modal"){tb_show('',sAction+'?script_case_init='+oResp["redirInfo"]["script_case_init"]+'&script_case_session=enetq976jeeqjiolbrp660ff27&nmgp_parms='+oResp["redirInfo"]["nmgp_parms"]+'&nmgp_outra_jan=true&nmgp_url_saida=modal&NMSC_modal=ok&TB_iframe=true&modal=true&height='+oResp["redirInfo"]["h_modal"]+'&width='+oResp["redirInfo"]["w_modal"],'');return;}sFormRedir=(oResp["redirInfo"]["nmgp_outra_jan"])?"form_ajax_redir_1":"form_ajax_redir_2";document.forms[sFormRedir].action=sAction;document.forms[sFormRedir].target=oResp["redirInfo"]["target"];document.forms[sFormRedir].nmgp_parms.value=oResp["redirInfo"]["nmgp_parms"];if("form_ajax_redir_1"==sFormRedir){document.forms[sFormRedir].nmgp_outra_jan.value=oResp["redirInfo"]["nmgp_outra_jan"];}else{document.forms[sFormRedir].nmgp_url_saida.value=oResp["redirInfo"]["nmgp_url_saida"];document.forms[sFormRedir].script_case_init.value=oResp["redirInfo"]["script_case_init"];}document.forms[sFormRedir].submit();}}function scAjaxSetDisplay(bReset){if(null==bReset){bReset=false;}var aDispData=new Array();var aDispCont={};var vertButton;if(bReset){for(iDisplay=0;iDisplay<ajax_block_list.length;iDisplay++){aDispCont[ajax_block_list[iDisplay]]=aDispData.length;aDispData[aDispData.length]=new Array(ajax_block_id[ajax_block_list[iDisplay]],"on");}for(iDisplay=0;iDisplay<ajax_field_list.length;iDisplay++){if(ajax_field_id[ajax_field_list[iDisplay]]){aFieldIds=ajax_field_id[ajax_field_list[iDisplay]];for(iDisplay2=0;iDisplay2<aFieldIds.length;iDisplay2++){aDispCont[aFieldIds[iDisplay2]]=aDispData.length;aDispData[aDispData.length]=new Array(aFieldIds[iDisplay2],"on");}}}}var blockDisplay={};if(oResp["blockDisplay"]){for(iDisplay=0;iDisplay<oResp["blockDisplay"].length;iDisplay++){if(bReset){aDispData[aDispCont[oResp["blockDisplay"][iDisplay][0]]][1]=oResp["blockDisplay"][iDisplay][1];}else{aDispData[aDispData.length]=new Array(ajax_block_id[oResp["blockDisplay"][iDisplay][0]],oResp["blockDisplay"][iDisplay][1]);}blockDisplay[oResp["blockDisplay"][iDisplay][0]]=oResp["blockDisplay"][iDisplay][1];}}var fieldDisplay={};if(oResp["fieldDisplay"]){for(iDisplay=0;iDisplay<oResp["fieldDisplay"].length;iDisplay++){for(iDisplay2=1;iDisplay2<ajax_field_mult[oResp["fieldDisplay"][iDisplay][0]].length;iDisplay2++){aFieldIds=ajax_field_id[ajax_field_mult[oResp["fieldDisplay"][iDisplay][0]][iDisplay2]];for(iDisplay3=0;iDisplay3<aFieldIds.length;iDisplay3++){if(bReset){aDispData[aDispCont[aFieldIds[iDisplay3]]][1]=oResp["fieldDisplay"][iDisplay][1];}else{aDispData[aDispData.length]=new Array(aFieldIds[iDisplay3],oResp["fieldDisplay"][iDisplay][1]);}if("hidden_field_data_"==aFieldIds[iDisplay3].substr(0,18)){fieldDisplay[aFieldIds[iDisplay3].substr(18)]=oResp["fieldDisplay"][iDisplay][1];}}}}}if(oResp["buttonDisplay"]){for(iDisplay=0;iDisplay<oResp["buttonDisplay"].length;iDisplay++){var sBtnName2="";switch(oResp["buttonDisplay"][iDisplay][0]){case"first":var sBtnName="sc_b_ini";break;case"back":var sBtnName="sc_b_ret";break;case"forward":var sBtnName="sc_b_avc";break;case"last":var sBtnName="sc_b_fim";break;case"insert":var sBtnName="sc_b_ins";break;case"update":var sBtnName="sc_b_upd";break;case"delete":var sBtnName="sc_b_del";break;default:var sBtnName="sc_b_"+oResp["buttonDisplay"][iDisplay][0];sBtnName2="sc_"+oResp["buttonDisplay"][iDisplay][0];sBtnName3="gbl_sc_"+oResp["buttonDisplay"][iDisplay][0];break;}if("sc_b_ini"==sBtnName||"sc_b_ret"==sBtnName||"sc_b_avc"==sBtnName||"sc_b_fim"==sBtnName){scAjaxNavigateButtonDisplay(sBtnName,oResp["buttonDisplay"][iDisplay][1]);}else{aDispData[aDispData.length]=new Array(sBtnName,oResp["buttonDisplay"][iDisplay][1]);aDispData[aDispData.length]=new Array(sBtnName+"_t",oResp["buttonDisplay"][iDisplay][1]);aDispData[aDispData.length]=new Array(sBtnName+"_b",oResp["buttonDisplay"][iDisplay][1]);}if(""!=sBtnName2){aDispData[aDispData.length]=new Array(sBtnName2,oResp["buttonDisplay"][iDisplay][1]);aDispData[aDispData.length]=new Array(sBtnName2+"_top",oResp["buttonDisplay"][iDisplay][1]);aDispData[aDispData.length]=new Array(sBtnName2+"_bot",oResp["buttonDisplay"][iDisplay][1]);}if(""!=sBtnName3){aDispData[aDispData.length]=new Array(sBtnName3,oResp["buttonDisplay"][iDisplay][1]);aDispData[aDispData.length]=new Array(sBtnName3+"_top",oResp["buttonDisplay"][iDisplay][1]);aDispData[aDispData.length]=new Array(sBtnName3+"_bot",oResp["buttonDisplay"][iDisplay][1]);}}}if(oResp["buttonDisplayVert"]){for(iDisplay=0;iDisplay<oResp["buttonDisplayVert"].length;iDisplay++){vertButton=oResp["buttonDisplayVert"][iDisplay];aDispData[aDispData.length]=new Array("sc_exc_line_"+vertButton.seq,vertButton.delete);if(vertButton.gridView){aDispData[aDispData.length]=new Array("sc_open_line_"+vertButton.seq,vertButton.update);}else{aDispData[aDispData.length]=new Array("sc_upd_line_"+vertButton.seq,vertButton.update);}}}for(iDisplay=0;iDisplay<aDispData.length;iDisplay++){scAjaxElementDisplay(aDispData[iDisplay][0],aDispData[iDisplay][1]);}for(var blockId in blockDisplay){displayChange_block(blockId,blockDisplay[blockId]);}for(var fieldId in fieldDisplay){displayChange_field(fieldId,"",fieldDisplay[fieldId]);}}function scAjaxNavigateButtonDisplay(sButton,sStatus){sButton2=sButton+"_off";if("off"==sStatus){sStatus2="off";}else{if("sc_b_ini"==sButton||"sc_b_ret"==sButton){if("S"==Nav_permite_ret){sStatus="on";sStatus2="off";}else{sStatus="off";sStatus2="on";}}else{if("S"==Nav_permite_ava){sStatus="on";sStatus2="off";}else{sStatus="off";sStatus2="on";}}}scAjaxElementDisplay(sButton,sStatus);scAjaxElementDisplay(sButton+"_t",sStatus);scAjaxElementDisplay(sButton+"_b",sStatus);scAjaxElementDisplay(sButton2,sStatus2);scAjaxElementDisplay(sButton2+"_t",sStatus2);scAjaxElementDisplay(sButton2+"_b",sStatus2);}function scAjaxElementDisplay(sElement,sAction){if(ajax_block_tab&&ajax_block_tab[sElement]&&""!=ajax_block_tab[sElement]){scAjaxElementDisplay(ajax_block_tab[sElement],sAction);}if(document.getElementById(sElement)){if("off"==sAction){$('#'+sElement).hide();}else{$('#'+sElement).show();}if(document.getElementById(sElement+"_dumb")){if("off"==sAction){$('#'+sElement+"_dumb").hide();}else{$('#'+sElement+"_dumb").show();}}}}function scAjaxSetLabel(bReset){if(null==bReset){bReset=false;}if(bReset){for(iLabel=0;iLabel<ajax_field_list.length;iLabel++){if(ajax_field_list[iLabel]&&ajax_error_list[ajax_field_list[iLabel]]){scAjaxFieldLabel(ajax_field_list[iLabel],ajax_error_list[ajax_field_list[iLabel]]["label"]);}}}if(oResp["fieldLabel"]){for(iLabel=0;iLabel<oResp["fieldLabel"].length;iLabel++){scAjaxFieldLabel(oResp["fieldLabel"][iLabel][0],scAjaxSpecCharParser(oResp["fieldLabel"][iLabel][1]));}}}function scAjaxFieldLabel(sField,sLabel){if(document.getElementById("id_label_"+sField)&&document.getElementById("id_label_"+sField).innerHTML!=sLabel){document.getElementById("id_label_"+sField).innerHTML=sLabel;}if(document.getElementById("hidden_field_label_"+sField)&&document.getElementById("hidden_field_label_"+sField).innerHTML!=sLabel){document.getElementById("hidden_field_label_"+sField).innerHTML=sLabel;}}function scAjaxSetReadonly(bReset){if(null==bReset){bReset=false;}if(bReset){for(iRead=0;iRead<ajax_field_list.length;iRead++){scAjaxFieldRead(ajax_field_list[iRead],ajax_read_only[ajax_field_list[iRead]]);}for(iRead=0;iRead<ajax_field_Dt_Hr.length;iRead++){scAjaxFieldRead(ajax_field_Dt_Hr[iRead],ajax_read_only[ajax_field_Dt_Hr[iRead]]);}}if(oResp["readOnly"]){for(iRead=0;iRead<oResp["readOnly"].length;iRead++){if(ajax_read_only[oResp["readOnly"][iRead][0]]){scAjaxFieldRead(oResp["readOnly"][iRead][0],oResp["readOnly"][iRead][1]);}else if(oResp["rsSize"]){for(var i=0;i<=oResp["rsSize"];i++){if(ajax_read_only[oResp["readOnly"][iRead][0]+i]){scAjaxFieldRead(oResp["readOnly"][iRead][0]+i,oResp["readOnly"][iRead][1]);}}}}}}function scAjaxFieldRead(sField,sStatus){if("on"==sStatus){var sDisplayOff="none";var sDisplayOn="";}else{var sDisplayOff="";var sDisplayOn="none";}if(document.getElementById("id_read_off_"+sField)){document.getElementById("id_read_off_"+sField).style.display=sDisplayOff;}if(document.getElementById("id_read_on_"+sField)){document.getElementById("id_read_on_"+sField).style.display=sDisplayOn;}}function scAjaxSetBtnVars(){if(oResp["btnVars"]){for(iBtn=0;iBtn<oResp["btnVars"].length;iBtn++){eval(oResp["btnVars"][iBtn][0]+" = scAjaxSpecCharParser('"+oResp["btnVars"][iBtn][1]+"');");}}}function scAjaxClearText(sFormField){document.F1.elements[sFormField].value="";}function scAjaxClearLabel(sFormField){
endpoints.html_title: Clube Seriema de Tiro - CST
endpoints.supported_versions: HTTP/1.1
endpoints.banner: HTTP/1.1 200 OK
  Server: nginx
  Date:  <REDACTED>
  Content-Type: text/html; charset=utf-8
  Transfer-Encoding: chunked
  Connection: keep-alive
  Vary: Accept-Encoding
  Expires: Thu, 19 Nov 1981 08:52:00 GMT
  Cache-Control: no-store, no-cache, must-revalidate
  Pragma: no-cache
  X-XSS-Protection: 1; mode=block
  Set-Cookie: PHPSESSID=enetq976jeeqjiolbrp660ff27; path=/
  Set-Cookie: sc_actual_lang_tiroseriema=pt_br; path=/
  X-Mod-Pagespeed: Powered by Scriptcase
  Cache-Control: max-age=0, no-cache, s-maxage=10
  X-XSS-Protection: 1; mode=block
  X-Content-Type-Options: nosniff
  X-Nginx-Upstream-Cache-Status: BYPASS
  X-Server-Powered-By: Scriptcase
  X-Robots-Tag: all
  Content-Encoding: gzip
  
endpoints.ip: 198.50.160.198
[binary data, 11 values, 322 bytes]