var clearTimeOut; function CKUpdate(){ if(typeof(CKEDITOR) != "undefined"){ for ( instance in CKEDITOR.instances ) CKEDITOR.instances[instance].updateElement(); } } function processForm(json, b, c, d){ try { var reply = eval(json); } catch (e) { open_error(language.get('__erro_act')); d.find("INPUT[type='submit']").prop("disabled", false).removeClass("disabled"); return false; } //console.log(reply); if(reply.message){ open_notice(reply.message, 3000); } if(reply.update && typeof(reply.update) == 'object' && Object.keys(reply.update).length){ for(var field in reply.update) { $("INPUT[name='__h["+field+"]']").val(reply.update[field]); } } if(reply.seoTarget != 'undefined' && reply.seoTarget && typeof(ga) == 'function'){ ga('send', 'pageview', reply.seoTarget); } if(reply.success && reply.url){ $(document).on('cbox_closed', function(){ $(document).off('cbox_closed'); location.href=reply.url; }); } d.find("INPUT[type='submit']").prop("disabled", false).removeClass("disabled"); } function processLogin(json){ try { var reply = eval(json); } catch (e) { open_error(language.get('erro_act')); return false; } if(reply.success && reply.url){ location.href=reply.url; } else if(reply.success && !reply.url){ location.reload(); } else if(reply.message){ open_notice(reply.message); } } function processError(json, b, c, d){ open_error(language.get('__erro_act')); d.find("INPUT[type='submit']").prop("disabled", false).removeClass("disabled"); } function getPrice(attrib, p, target){ $.post("services/getPrice.php", {"attrib":attrib, "pID":p},function(data) { target.html(data); }); } function setPage(url){ window.location.href = url; } function show_log(source, vars){ $.fn.colorbox({href:source+'?'+vars, open:true, maxHeight:200}); } function show_pesquisa(){ $.fn.colorbox({href:"#pesquisa", inline:true, open:true, maxHeight:400}); } function open_image(imageID){ $.fn.colorbox({href:'ajax_image.php?imageID='+imageID, open:true, maxHeight:700}); } function show_help(mID, lang){ $gallery.dialog("destroy"); $.post("ajax_help.php", { moduleID: mID, languageID: lang, }, function(data) { $gallery.html(data) .dialog( { autoOpen: false, draggable: true, minHeight:600, minWidth:820, title: "Logs", open: function(event, ui){}, close : function(event, ui){ $gallery.dialog("destroy"); }, buttons: [ //BUTTON FOR CANCEL { text:cancel, click:function(){ $(this).dialog("close"); } } ] }); $gallery.dialog('open'); } ); } function open_notice(msg, timeout){ timeout = typeof timeout !== 'undefined' ? timeout : 1000; /* object test for iframe popups */ if(typeof(parent.$) != 'undefined') $ = parent.$; $.colorbox({html:'

'+msg+'

', open:true}); $(document).bind('cbox_complete', function(){ setTimeout($.colorbox.close, timeout); $(document).unbind('cbox_complete'); }); } function open_cart_added(msg, image, name, description){ var html=''; html += '
'; html += '
'+name+'
'+description+'
'; html += '
'; html += '
'+msg+'


'+language.get('cart_go')+'
'+language.get('cart_stay')+'
'; $.colorbox({"html": html, open:true,height:'auto', close:false}); $(document).bind('cbox_complete', function(){ //setTimeout($.colorbox.close, timeout); //$(document).unbind('cbox_complete'); }); } function open_error(msg){ /* object test for iframe popups */ if(typeof(parent.$) != 'undefined') $ = parent.$; $.fn.colorbox({html:'

'+msg+'

', open:true}); $(document).bind('cbox_complete', function(){ setTimeout($.fn.colorbox.close, 1000); $(document).unbind('cbox_complete'); }); } function open_required(msg){ /* object test for iframe popups */ if(typeof(parent.$) != 'undefined') $ = parent.$; $.fn.colorbox({html:'

'+msg+'

', open:true}); $(document).bind('cbox_complete', function(){ setTimeout($.fn.colorbox.close, 2000); $(document).unbind('cbox_complete'); }); } function open_cart(msg){ if(typeof(parent.$) != 'undefined') $ = parent.$; $.fn.colorbox({html:'

'+msg+'

'+ stayButton()+goButton()+'

', open:true, close:''}); $(document).bind('cbox_complete', function(){ clearTimeOut = setTimeout(function(){location.href='/cart.php';}, 5000); $(document).unbind('cbox_complete'); }); } function lock(msg){ /* object test for iframe popups */ if(typeof(parent.$) != 'undefined') $ = parent.$; $.fn.colorbox({html:'

'+msg+'

', open:true, overlayClose:false, close:""}); } function unlock(){ /* object test for iframe popups */ if(typeof(parent.$) != 'undefined') $ = parent.$; if(typeof($.fn.colorbox) != 'undefined') $.fn.colorbox.close(); } function excluir(removeID, pagina, query){ $.fn.colorbox({html:'

'+conf_itm+'

'+ yButton('yesButton')+noButton()+'

', open:true}); $("#yesButton").click(function(){location.href = pagina + '?removeID=' + removeID +'&' + query; }); } function exclude(doThis){ $.fn.colorbox({html:'

'+conf_itm+'

'+ yButton('yesButton')+noButton()+'

', open:true}); $("#yesButton").click(doThis); } function approve(doThis){ $.colorbox({html:'

'+language.get('conf_act')+'

'+ yButton('yesButton')+noButton()+'

', open:true}); $("#yesButton").click(doThis); } function excluirCv(removeID, pagina, query){ $.fn.colorbox({html:'

'+conf_itm+'

'+ yesButtonCv(removeID, pagina, query)+noButton()+'

', open:true}); } function excluirImg(removeID,type){ $.fn.colorbox({html:'

'+conf_itm+'

'+ yButton('yesButtonImg')+noButton()+'

', open:true}); $("#yesButtonImg").click( function() { $.post( "components/img_remove.php", { remImgID: removeID}, function(data){ $.fn.colorbox.close(); if(eval(data)) open_notice(imgrem); else open_error(erro_img); eval('getImg'+type+'()'); } ); } ); } function excluirDoc(removeID){ $.fn.colorbox({html:'

'+conf_itm+'

'+ yButton('yesButtonDoc')+noButton()+'

', open:true}); $("#yesButtonDoc").click( function() { $.post( "components/doc_remove.php", { remDocID: removeID}, function(data){ $.fn.colorbox.close(); if(eval(data)) open_notice(docrem); else open_error(erro_doc); getDocs(); } ); } ); } function excluirImgGal(){ $.fn.colorbox({html:'

'+conf_sel+'

'+ yButton('yesButtonImg')+noButton()+'

', open:true}); $("#yesButtonImg").click(function() {removeImages();}); } function excluirLink(removeID){ $.fn.colorbox({html:'

'+conf_itm+'

'+ yButton('yesButtonLnk')+noButton()+'

', open:true}); $("#yesButtonLnk").click( function() { $.post( "components/lnk_remove.php", { remLnkID: removeID}, function(data){ $.fn.colorbox.close(); if(eval(data)) open_notice(lnkrem); else open_error(erro_lnk); getLinks(); } ); } ); } function yesButton(removeID, pagina, query){ return ''; } function yesButtonCv(removeID, pagina, query){ return ''; } function yButton(btnID){ return ''; } function noButton(){ return ''; } function stayButton(){ return ''; } function goButton(){ return ''; } function show_fields(fields){ if(fields == 1){ if($("#home_promo:checked").val() != undefined){ $("#home_title").parent().show(); $("#home_desc").parent().show(); } else{ $("#home_title").parent().hide(); $("#home_desc").parent().hide(); } } else if(fields == 3){ if($("#fixed:checked").val() != undefined){ $("#aberto").parent().hide(); } else{ $("#aberto").parent().show(); } } } function show_promo(fields){ var swap; if($("#home_promo:checked").val() != undefined){ swap = $("#home_promo").parent().next(); for(var idx = 0; idx0){ $("#descricao").parent().parent().show(); } else{ $("#descricao").parent().parent().hide(); } } function setin(field, value){ if(field.value==value) field.value =''; } function setout(field, value){ if(field.value=='') field.value=value; else field.value = field.value.replace(",", "."); } /*-------------------------------------------------------------------------------------------------*/ function checkTermos(campo, nome) { if (campo) { if(!campo.checked){ open_required(erro_terms); return(false); } return true; } return(true); } function checkRadio(campo, nome) { if (campo) { var checked = false; for(idx = 0; idx < campo.length; idx++){ if(campo[idx].checked == true) checked = true; } if(!checked){ open_required(fill_1 + " " + nome + "!"); return(false); } return true; } return(true); } function vazio(campo, nome) { if (campo && campo.value == "") { open_required(fill_1 + " " + nome + "!"); return(false); } return(true); } function vazioArray(campo, nome) { if (campo) { for(var idx = 0; idx0) { open_required(fill_2 + " " + nome + "!"); return(false); } return(true); } function numeric(campo, nome) { if (campo && !IsNumeric(campo.value)) { open_required(fill_4 + " " + nome + "!"); return(false); } return(true); } function paradoMultiple(campo, nome) { if (campo && campo.type == "select-multiple") { if (campo && campo.selectedIndex == -1) { open_required(fill_2 + " " + nome + "!"); return(false); } return(true); } return(true); } function validaPassword(campo, nome) { if (campo && campo.value == "") { open_required(fill_3 + " " + nome + "!"); return(false); } else if(campo.value != document.formulario.password2.value){ open_required(fill_3 + " " + nome + "!"); return(false); } return(true); } // valida campo de email function validaEmail(email, nome) { valido = /^.*\@.*\..*$/i; if (email && email.value.search(valido) == -1) { open_required(fill_3 + " " + nome + "!"); return(false); } return(true); } function checkDates(campo, nome) { if (campo) { var checked = false; for(idx = 0; idx < campo.length; idx++){ if(campo[idx].checked == true) checked = true; } if(!checked){ open_required(fill_1 + " " + nome + "!"); return(false); } else{ if(campo[0].checked && document.formulario.dataInicio1.value == ""){ open_required(fill_1 + " " + nome + "!"); return(false); } else if (campo[1].checked && (document.formulario.dataInicio2.value == "" || document.formulario.dataFim.value == "")){ open_required(fill_1 + " " + nome + "!"); return(false); } } return true; } return(true); } function validateDates(){ var startDate = $("INPUT[name='startDate']").datepicker("getDate"); var applyDate = $("INPUT[name='applyDate']").datepicker("getDate"); var openDate = $("INPUT[name='openDate']").datepicker("getDate"); var questionDate = $("INPUT[name='questionDate']").datepicker("getDate"); var answerDate = $("INPUT[name='answerDate']").datepicker("getDate"); var answerDate = $("INPUT[name='answerDate']").datepicker("getDate"); var errataDate = $("INPUT[name='errataDate']").datepicker("getDate"); var endDate = $("INPUT[name='endDate']").datepicker("getDate"); if(startDate.dateDiff(questionDate)>0){ if(questionDate.dateDiff(answerDate)>0){ if(answerDate.dateDiff(errataDate)>0){ if(errataDate.dateDiff(applyDate)>0){ if(applyDate.dateDiff(openDate)>0){ if(startDate.dateDiff(endDate)>66){ return true; } open_required("Erro: A data de menuten��o de propostas tem de ser no minimo de 66 dias �teis"); return(false); } open_required("Erro: A data de abertura de propostas n�o pode ser inferior � data de entrega de propostas"); return(false); } open_required("Erro: A data final para entrega de propostas n�o pode ser inferior � data de envio de erros/omiss�es"); return(false); } open_required("Erro: A data final para para o envio de erros/omiss�es n�o pode ser inferior � data de presta��o de esclarecimentos."); return(false); } open_required("Erro: A data final para presta��o de esclarecimentos n�o pode ser inferior � data de solicita��o de esclarecimentos."); return(false); } open_required("Erro: A data final para solicita��o de esclarecimentos n�o pode ser inferior � data de inicio."); return(false); } function checkCrit(campo, nome) { var total = 0; var p = Array(); var v = Array(); if (campo[1].checked) { var params = document.formulario.elements['crit_name[]']; var values = document.formulario.elements['crit_val[]']; for(var idx=0; idx<(params.length-1); idx++) p.push(params[idx]); for(var idx=0; idx<(values.length-1); idx++) v.push(values[idx]); for(idx=0; idx<(p.length); idx++){ if(p[idx].value == ""){ open_required("Erro: preencha correctamente os crit�rios de avalia��o"); return(false); } } for(idx=0; idx<(v.length); idx++){ if(!IsNumeric(v[idx].value)){ open_required("Erro: preencha correctamente os valores de pondera��o"); return(false); } else { total += parseInt(v[idx].value); } } if(total != 100){ open_required("Erro: O total dos factores de pondera��o tem te somar 100%"); return(false); } } return(true); } function loading(msg){ var loading = '
'+msg+'
'; return loading; } function pop_page(form, w, h){ $.fn.colorbox({href:form, width: w, height: h, open:true, iframe:true}); } function open_update(mensagem) { createAlert(0, "", "", contentUpdate(mensagem)); } function contentAlert(mensagem){ createLayer(); var html; html = '
'+ok+'

' + mensagem + '
'; return html; } function contentPrompt(id, pagina, query){ createLayer(); var html; html='
'+ok+'

'+conf_itm+'
'; return html; } function contentUpdate(mensagem){ createLayer(); var html; html = '
'+ok+'

' + mensagem + '
'; return html; } function linkPrompt(id, pagina, query){ createLayer(); var html; html='
'+ok+'

'+conf_lnk+'
'; return html; } function imagemPrompt(id, pagina, query){ createLayer(); var html; html='
'+ok+'

'+conf_img+'
'; return html; } function documentoPrompt(id, pagina, query){ createLayer(); var html; html='
'+ok+'

'+conf_doc+'
'; return html; } var checkflag = false; function selectItem(row, cor1, cor2, id){ if(document.getElementById('list_item_'+id).checked==true){ document.getElementById('list_item_'+id).checked=false; row.bgColor=cor1; } else { document.getElementById('list_item_'+id).checked=true; row.bgColor=cor2; } } function mouse_over(row, cor1, bg){ if(row.bgColor==bg) row.bgColor = cor1; } function mouse_out(row, cor1, cor2){ if(row.bgColor==cor2) row.bgColor = cor1; } function selectAll(field){ if (!checkflag) { for (i = 0; i < field.length; i++) { field[i].checked = true; } checkflag = true; } else { for (i = 0; i < field.length; i++) { field[i].checked = false; } checkflag = false; } } function IsNumeric(n) { return !isNaN(parseFloat(n)) && isFinite(n); } Array.prototype.rotate = (function() { // save references to array functions to make lookup faster var push = Array.prototype.push, splice = Array.prototype.splice; return function(count) { var len = this.length >>> 0, // convert to uint count = count >> 0; // convert to int // convert count to value in range [0, len[ count = ((count % len) + len) % len; // use splice.call() instead of this.splice() to make function generic push.apply(this, splice.call(this, 0, count)); return this; }; })(); Array.prototype.inArray = function (needle){ var length = this.length; for(var i = 0; i < length; i++) { if(this[i] == needle) return i; } return -1; } Number.prototype.mod = function(n) { return ((this%n)+n)%n; } Date.prototype.addBusDays = function(dd) { var wks = Math.floor(dd/5); var dys = dd.mod(5); var dy = this.getDay(); if (dy === 6 && dys > -1) { if (dys === 0) { dys-=2; dy+=2; } dys++; dy -= 6; } if (dy === 0 && dys < 1) { if (dys === 0) { dys+=2; dy-=2; } dys--; dy += 6; } if (dy + dys > 5) dys += 2; if (dy + dys < 1) dys -= 2; this.setDate(this.getDate()+wks*7+dys); return this; } Date.prototype.dateDiff = function compute(d) { var oneDay = (1000 * 60 * 60 * 24); var diff = 0; var scale = 1; //d.setHours(0).setMinutes(0).setSeconds(0).setMilliseconds(0); //this.setHours(0).setMinutes(0).setSeconds(0).setMilliseconds(0); var swap = new Date(this.getTime()); var delta = d.getTime() - this.getTime(); delta = delta/( 1000 * 60 * 60 * 24 ); // units are now days. if (delta < 0){ delta = -delta; scale = -scale; oneDay = -oneDay; } delta = Math.round(delta); for(var idx = 1; idx<=delta; idx++){ swap.setTime(swap.getTime()+oneDay); if(!swap.isWeekend()){ diff += scale; } } return diff; } Date.prototype.getUTCTime = function(){ return this.getTime()+(this.getTimezoneOffset()*60*1000); } Date.prototype.isWeekend = function(){ if(this.getDay() == 6 || this.getDay() == 0) return true; return false; } var MAX_DUMP_DEPTH = 3; function dumpObj(obj, name, indent, depth) { if (depth > MAX_DUMP_DEPTH) { return indent + name + ": \n"; } if (typeof obj == "object") { var child = null; var output = indent + name + "\n"; indent += "\t"; for (var item in obj) { try { child = obj[item]; } catch (e) { child = ""; } if (typeof child == "object") { output += dumpObj(child, item, indent, depth + 1); } else { output += indent + item + ": " + child + "\n"; } } return output; } else { return obj; } } //jquery.form.min.js /* * jQuery Form Plugin; v20131017 * http://jquery.malsup.com/form/ * Copyright (c) 2013 M. Alsup; Dual licensed: MIT/GPL * https://github.com/malsup/form#copyright-and-license */ ;(function(e){"use strict";function t(t){var r=t.data;t.isDefaultPrevented()||(t.preventDefault(),e(t.target).ajaxSubmit(r))}function r(t){var r=t.target,a=e(r);if(!a.is("[type=submit],[type=image]")){var n=a.closest("[type=submit]");if(0===n.length)return;r=n[0]}var i=this;if(i.clk=r,"image"==r.type)if(void 0!==t.offsetX)i.clk_x=t.offsetX,i.clk_y=t.offsetY;else if("function"==typeof e.fn.offset){var o=a.offset();i.clk_x=t.pageX-o.left,i.clk_y=t.pageY-o.top}else i.clk_x=t.pageX-r.offsetLeft,i.clk_y=t.pageY-r.offsetTop;setTimeout(function(){i.clk=i.clk_x=i.clk_y=null},100)}function a(){if(e.fn.ajaxSubmit.debug){var t="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(t):window.opera&&window.opera.postError&&window.opera.postError(t)}}var n={};n.fileapi=void 0!==e("").get(0).files,n.formdata=void 0!==window.FormData;var i=!!e.fn.prop;e.fn.attr2=function(){if(!i)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e:this.attr.apply(this,arguments)},e.fn.ajaxSubmit=function(t){function r(r){var a,n,i=e.param(r,t.traditional).split("&"),o=i.length,s=[];for(a=0;o>a;a++)i[a]=i[a].replace(/\+/g," "),n=i[a].split("="),s.push([decodeURIComponent(n[0]),decodeURIComponent(n[1])]);return s}function o(a){for(var n=new FormData,i=0;a.length>i;i++)n.append(a[i].name,a[i].value);if(t.extraData){var o=r(t.extraData);for(i=0;o.length>i;i++)o[i]&&n.append(o[i][0],o[i][1])}t.data=null;var s=e.extend(!0,{},e.ajaxSettings,t,{contentType:!1,processData:!1,cache:!1,type:u||"POST"});t.uploadProgress&&(s.xhr=function(){var r=e.ajaxSettings.xhr();return r.upload&&r.upload.addEventListener("progress",function(e){var r=0,a=e.loaded||e.position,n=e.total;e.lengthComputable&&(r=Math.ceil(100*(a/n))),t.uploadProgress(e,a,n,r)},!1),r}),s.data=null;var l=s.beforeSend;return s.beforeSend=function(e,r){r.data=t.formData?t.formData:n,l&&l.call(this,e,r)},e.ajax(s)}function s(r){function n(e){var t=null;try{e.contentWindow&&(t=e.contentWindow.document)}catch(r){a("cannot get iframe.contentWindow document: "+r)}if(t)return t;try{t=e.contentDocument?e.contentDocument:e.document}catch(r){a("cannot get iframe.contentDocument: "+r),t=e.document}return t}function o(){function t(){try{var e=n(g).readyState;a("state = "+e),e&&"uninitialized"==e.toLowerCase()&&setTimeout(t,50)}catch(r){a("Server abort: ",r," (",r.name,")"),s(k),j&&clearTimeout(j),j=void 0}}var r=f.attr2("target"),i=f.attr2("action");w.setAttribute("target",d),(!u||/post/i.test(u))&&w.setAttribute("method","POST"),i!=m.url&&w.setAttribute("action",m.url),m.skipEncodingOverride||u&&!/post/i.test(u)||f.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"}),m.timeout&&(j=setTimeout(function(){T=!0,s(D)},m.timeout));var o=[];try{if(m.extraData)for(var l in m.extraData)m.extraData.hasOwnProperty(l)&&(e.isPlainObject(m.extraData[l])&&m.extraData[l].hasOwnProperty("name")&&m.extraData[l].hasOwnProperty("value")?o.push(e('').val(m.extraData[l].value).appendTo(w)[0]):o.push(e('').val(m.extraData[l]).appendTo(w)[0]));m.iframeTarget||v.appendTo("body"),g.attachEvent?g.attachEvent("onload",s):g.addEventListener("load",s,!1),setTimeout(t,15);try{w.submit()}catch(c){var p=document.createElement("form").submit;p.apply(w)}}finally{w.setAttribute("action",i),r?w.setAttribute("target",r):f.removeAttr("target"),e(o).remove()}}function s(t){if(!x.aborted&&!F){if(M=n(g),M||(a("cannot access response document"),t=k),t===D&&x)return x.abort("timeout"),S.reject(x,"timeout"),void 0;if(t==k&&x)return x.abort("server abort"),S.reject(x,"error","server abort"),void 0;if(M&&M.location.href!=m.iframeSrc||T){g.detachEvent?g.detachEvent("onload",s):g.removeEventListener("load",s,!1);var r,i="success";try{if(T)throw"timeout";var o="xml"==m.dataType||M.XMLDocument||e.isXMLDoc(M);if(a("isXml="+o),!o&&window.opera&&(null===M.body||!M.body.innerHTML)&&--O)return a("requeing onLoad callback, DOM not available"),setTimeout(s,250),void 0;var u=M.body?M.body:M.documentElement;x.responseText=u?u.innerHTML:null,x.responseXML=M.XMLDocument?M.XMLDocument:M,o&&(m.dataType="xml"),x.getResponseHeader=function(e){var t={"content-type":m.dataType};return t[e.toLowerCase()]},u&&(x.status=Number(u.getAttribute("status"))||x.status,x.statusText=u.getAttribute("statusText")||x.statusText);var l=(m.dataType||"").toLowerCase(),c=/(json|script|text)/.test(l);if(c||m.textarea){var f=M.getElementsByTagName("textarea")[0];if(f)x.responseText=f.value,x.status=Number(f.getAttribute("status"))||x.status,x.statusText=f.getAttribute("statusText")||x.statusText;else if(c){var d=M.getElementsByTagName("pre")[0],h=M.getElementsByTagName("body")[0];d?x.responseText=d.textContent?d.textContent:d.innerText:h&&(x.responseText=h.textContent?h.textContent:h.innerText)}}else"xml"==l&&!x.responseXML&&x.responseText&&(x.responseXML=X(x.responseText));try{E=_(x,l,m)}catch(b){i="parsererror",x.error=r=b||i}}catch(b){a("error caught: ",b),i="error",x.error=r=b||i}x.aborted&&(a("upload aborted"),i=null),x.status&&(i=x.status>=200&&300>x.status||304===x.status?"success":"error"),"success"===i?(m.success&&m.success.call(m.context,E,"success",x),S.resolve(x.responseText,"success",x),p&&e.event.trigger("ajaxSuccess",[x,m])):i&&(void 0===r&&(r=x.statusText),m.error&&m.error.call(m.context,x,i,r),S.reject(x,"error",r),p&&e.event.trigger("ajaxError",[x,m,r])),p&&e.event.trigger("ajaxComplete",[x,m]),p&&!--e.active&&e.event.trigger("ajaxStop"),m.complete&&m.complete.call(m.context,x,i),F=!0,m.timeout&&clearTimeout(j),setTimeout(function(){m.iframeTarget?v.attr("src",m.iframeSrc):v.remove(),x.responseXML=null},100)}}}var l,c,m,p,d,v,g,x,b,y,T,j,w=f[0],S=e.Deferred();if(S.abort=function(e){x.abort(e)},r)for(c=0;h.length>c;c++)l=e(h[c]),i?l.prop("disabled",!1):l.removeAttr("disabled");if(m=e.extend(!0,{},e.ajaxSettings,t),m.context=m.context||m,d="jqFormIO"+(new Date).getTime(),m.iframeTarget?(v=e(m.iframeTarget),y=v.attr2("name"),y?d=y:v.attr2("name",d)):(v=e('