function submitFormAlert(countdown) { var msg = "\u0045\u0073\u0074\u0065\u0020\u0066\u006f\u0072\u0075\u006d\u0075\u006c\u0061\u0069\u0072\u006f\u0020\u0079\u0061\u0020\u0068\u0061\u0020\u0073\u0069\u0064\u006f\u0020\u0065\u006e\u0076\u0069\u0061\u0064\u006f\u002e\u0020\u0045\u006c\u0020\u0065\u006e\u0076\u00ed\u006f\u0020\u0073\u0065\u0072\u00e1\u0020\u0072\u0065\u0061\u0063\u0074\u0069\u0076\u0061\u0064\u006f\u0020\u0065\u006e\u0020\u007b\u0030\u007d\u0020\u0073\u0065\u0067\u0075\u006e\u0064\u006f\u0073\u002e"; alert(msg.replace("{0}", countdown)); } Calendar._DN = new Array( "domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado", "domingo" ); Calendar._SDN = new Array( "dom", "lun", "mar", "mié", "jue", "vie", "sáb", "dom" ); Calendar._MN = new Array( "enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre" ); Calendar._SMN = new Array( "ene", "feb", "mar", "abr", "may", "jun", "jul", "ago", "sep", "oct", "nov", "dic" ); Calendar._TT = {}; Calendar._TT["ABOUT"] = "Use los botones xab y xbb para seleccionar el año. Use los botones {0} y {1} para seleccionar el mes. Mantenga el botón del ratón pulsado en cualquiera de los botones anteriores para una selección más rápida."; Calendar._TT["ABOUT"] = Calendar._TT["ABOUT"].replace("{0}", String.fromCharCode(0x2039)); Calendar._TT["ABOUT"] = Calendar._TT["ABOUT"].replace("{1}", String.fromCharCode(0x203a)); Calendar._TT["ABOUT_TIME"] = ""; Calendar._TT["CLOSE"] = "Cerrar"; Calendar._TT["DAY_FIRST"] = "Display %s First"; Calendar._TT["DRAG_TO_MOVE"] = ""; Calendar._TT["GO_TODAY"] = "Hoy"; Calendar._TT["INFO"] = "Ayuda"; Calendar._TT["NEXT_MONTH"] = "Siguiente mes"; Calendar._TT["NEXT_YEAR"] = "Siguiente año"; Calendar._TT["PART_TODAY"] = ""; Calendar._TT["PREV_MONTH"] = "Mes anterior"; Calendar._TT["PREV_YEAR"] = "Año anterior"; Calendar._TT["SEL_DATE"] = "Seleccionar fecha"; Calendar._TT["SUN_FIRST"] = ""; Calendar._TT["TIME_PART"] = ""; Calendar._TT["TODAY"] = "Hoy"; Calendar._TT["WK"] = ""; Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d"; Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e"; Calendar._TT["WEEKEND"] = "0,6"; var loadingAnimation = new Image(); loadingAnimation.src = "/html/themes/ayuntamientoSantomeraInterior/images/progress_bar/loading_animation.gif"; function addPortlet(plid, portletId, doAsUserId) { var refreshPortletList = ","; refreshPortletList += "96,"; refreshPortletList += "95,"; refreshPortletList += "94,"; if (refreshPortletList.match("," + portletId + ",")) { self.location = "/c/portal/update_layout?p_l_id=" + plid + "&p_p_id=" + portletId + "&doAsUserId=" + doAsUserId + "&cmd=add&referer=" + encodeURIComponent("/c/portal/layout?p_l_id=" + plid + "&doAsUserId=" + doAsUserId) + "&refresh=1"; } else { loadPage("/c/portal/update_layout", "p_l_id=" + plid + "&p_p_id=" + portletId + "&doAsUserId=" + doAsUserId + "&cmd=add", addPortletReturn); var loadingDiv = document.createElement("div"); var container = document.getElementById("layout-column_column-1"); if (container == null) { return; } loadingDiv.className = "portlet-loading"; container.insertBefore(loadingDiv, null); } } function addPortletReturn(xmlHttpReq) { var container = document.getElementById("layout-column_column-1"); var portletId = addPortletHTML(xmlHttpReq.responseText, container, null); if (window.location.hash) { window.location.hash = "p_" + portletId; } } function addPortletHTML(html, container, placeHolder) { if (container == null) { return; } var addDiv = document.createElement("div"); var loadingDiv = document.getElementsByClassName("portlet-loading", container)[0]; addDiv.style.display = "none"; addDiv.innerHTML = html; var portletBound = document.getElementsByClassName("portlet-boundary", addDiv)[0]; portletBound.parentNode.removeChild(portletBound); var portletId = portletBound.id; portletId = portletId.replace(/^p_p_id_/,""); portletId = portletId.replace(/_$/,""); portletBound.portletId = portletId; if (loadingDiv) { container.removeChild(loadingDiv); } container.insertBefore(portletBound, placeHolder); executeLoadedScript(addDiv); executeLoadedScript(portletBound); if (!portletBound.isStatic) { LayoutColumns.initPortlet(portletBound); } return portletId; } function closePortlet(plid, portletId, doAsUserId) { if (confirm('\u00bf\u0045\u0073\u0074\u00e1\u0020\u0073\u0065\u0067\u0075\u0072\u006f\u0020\u0064\u0065\u0020\u0071\u0075\u0065\u0020\u0064\u0065\u0073\u0065\u0061\u0020\u0071\u0075\u0069\u0074\u0061\u0072\u0020\u0065\u0073\u0074\u0065\u0020\u0063\u006f\u006d\u0070\u006f\u006e\u0065\u006e\u0074\u0065\u003f')) { var curItem = document.getElementById("p_p_id_" + portletId + "_"); var parent = curItem.parentNode; parent.removeChild(curItem); if (curItem = document.getElementById(portletId)) { parent = curItem.parentNode; parent.removeChild(curItem); } if (LayoutConfiguration) { LayoutConfiguration.initialized = false; } if (LayoutColumns.layoutMaximized) { self.location = "/c/portal/update_layout?p_l_id=" + plid + "&p_p_id=" + portletId + "&doAsUserId=" + doAsUserId + "&cmd=delete&referer=" + encodeURIComponent("/c/portal/layout?p_l_id=" + plid + "&doAsUserId=" + doAsUserId) + "&refresh=1"; } else { loadPage("/c/portal/update_layout", "p_l_id=" + plid + "&p_p_id=" + portletId + "&doAsUserId=" + doAsUserId + "&cmd=delete"); } } else { self.focus(); } } function minimizePortlet(plid, portletId, restore, doAsUserId) { if (LayoutColumns.layoutMaximized) { self.location = "/c/portal/update_layout?p_l_id=" + plid + "&p_p_id=" + portletId + "&p_p_restore=" + restore + "&doAsUserId=" + doAsUserId + "&cmd=minimize&referer=" + encodeURIComponent("/c/portal/layout?p_l_id=" + plid + "&doAsUserId=" + doAsUserId) + "&refresh=1"; } else { if (restore) { var portletEl = document.getElementById("p_p_body_" + portletId); portletEl.style.display = "block"; portletEl.style.overflow = "hidden"; portletEl.style.height = "1px"; var buttonsEl = document.getElementById("p_p_body_" + portletId + "_min_buttons"); var html = buttonsEl.innerHTML; html = html.replace(", true", ", false"); html = html.replace("restore.gif", "minimize.gif"); html = html.replace("Restaurar", "Minimizar"); buttonsEl.innerHTML = html; loadPage("/c/portal/update_layout", "p_l_id=" + plid + "&p_p_id=" + portletId + "&p_p_restore=" + restore + "&doAsUserId=" + doAsUserId + "&cmd=minimize"); slideMaximize("p_p_body_" + portletId, 1, 20); } else { var portletEl = document.getElementById("p_p_body_" + portletId); portletEl.style.overflow = "hidden"; slideMinimize("p_p_body_" + portletId, portletEl.offsetHeight, 20); var buttonsEl = document.getElementById("p_p_body_" + portletId + "_min_buttons"); var html = buttonsEl.innerHTML; html = html.replace(", false", ", true"); html = html.replace("minimize.gif", "restore.gif"); html = html.replace("Minimizar", "Restaurar"); buttonsEl.innerHTML = html; loadPage("/c/portal/update_layout", "p_l_id=" + plid + "&p_p_id=" + portletId + "&p_p_restore=" + restore + "&doAsUserId=" + doAsUserId + "&cmd=minimize"); } } } function movePortlet(plid, portletId, columnId, columnPos, doAsUserId) { loadPage("/c/portal/update_layout", "p_l_id=" + plid + "&p_p_id=" + portletId + "&p_p_col_id=" + columnId + "&p_p_col_pos=" + columnPos + "&doAsUserId=" + doAsUserId + "&cmd=move"); } LayoutColumns.highlight = "#FFFFFF"; if (!is_ie) { Event.addHandler(window, "onscroll", function() { if (document.body.scrollHeight) { $("layout-outer-side-decoration").style.height = (document.body.scrollHeight) + "px"; } }); }