function submitFormAlert(countdown) {var msg = "\u0044\u0069\u0065\u0073\u0065\u0073\u0020\u0046\u006f\u0072\u006d\u0075\u006c\u0061\u0072\u0020\u0077\u0075\u0072\u0064\u0065\u0020\u0073\u0063\u0068\u006f\u006e\u0020\u0076\u0065\u0072\u0073\u0061\u006e\u0064\u0074\u002e";alert(msg.replace("{0}", countdown));}Calendar._DN = new Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag");Calendar._SDN = new Array("So","Mo","Di","Mi","Do","Fr","Sa","So");Calendar._MN = new Array("Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember");Calendar._SMN = new Array("Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez");Calendar._TT = {};Calendar._TT["ABOUT"] = "Nutzen Sie die xab und xbb Buttons um das Jahr zu wählen. Nutzen Sie die {0} und {1} Buttons um den Monat zu wählen. Halten Sie die linke Maustaste auf einem Button gedrückt um eine schnellere Auswahl zu ermöglichen.";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"] = "Schließen";Calendar._TT["DAY_FIRST"] = "Display %s First";Calendar._TT["DRAG_TO_MOVE"] = "";Calendar._TT["GO_TODAY"] = "Heute";Calendar._TT["INFO"] = "Hilfe";Calendar._TT["NEXT_MONTH"] = "Nächster Monat";Calendar._TT["NEXT_YEAR"] = "Nächstes Jahr";Calendar._TT["PART_TODAY"] = "";Calendar._TT["PREV_MONTH"] = "Vorheriger Monat";Calendar._TT["PREV_YEAR"] = "Vorheriges Jahr";Calendar._TT["SEL_DATE"] = "Datum auswählen";Calendar._TT["SUN_FIRST"] = "";Calendar._TT["TIME_PART"] = "";Calendar._TT["TODAY"] = "Heute";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 =  "/simrit-themes-4.1.3/html/themes/simrit-new/images/progress_bar/loading_animation.gif";function addPortlet(plid, portletId, doAsUserId) {var refreshPortletList = ",";refreshPortletList += "simrit_auth,";refreshPortletList += "simrit_userbar,";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('\u0053\u0069\u006e\u0064\u0020\u0053\u0069\u0065\u0020\u0073\u0069\u0063\u0068\u0020\u0073\u0069\u0063\u0068\u0065\u0072\u002c\u0020\u0064\u0061\u0073\u0073\u0020\u0053\u0069\u0065\u0020\u0064\u0069\u0065\u0020\u004b\u006f\u006d\u0070\u006f\u006e\u0065\u006e\u0074\u0065\u0020\u006c\u00f6\u0073\u0063\u0068\u0065\u006e\u0020\u0077\u006f\u006c\u006c\u0065\u006e\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("Wiederherstellen", "Minimieren");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("Minimieren", "Wiederherstellen");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 = "#AAAAAA";function trashPortletFill() {var imgPath = " ";if (is_ie_5_5_up) {var imgPath = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/simrit-themes-4.1.3/html/themes/simrit-new/images/icons/icon-trash-full.png', sizingMethod='scale')"trashBin.style.filter = imgPath;}else {var imgPath = "/simrit-themes-4.1.3/html/themes/simrit-new/images/icons/icon-trash-full.png"trashBin.src = imgPath;}}  var mouseOverEventHandler = function(e) {    var el = null;    if (e.target) {      el = e.target;    } else if (e.srcElement) {      el = window.event.srcElement;    }    var children = el.getElementsByTagName('img');        var img = null;    for (var i = 0; i < children.length; i++) {      if ("simrit-link-right" == children[i].className) {        children[i].src = "/simrit-themes-4.1.3/html/themes/simrit-new/images/simrit-link/button-right-hover.jpg";        break;      }     }    el.style.background="url('/simrit-themes-4.1.3/html/themes/simrit-new/images/simrit-link/button-bg-hover.jpg')";  }    var mouseOutEventHandler = function(e) {    var el = null;    if (e.target) {      el = e.target;    } else if (e.srcElement) {      el = window.event.srcElement;    }    var children = el.getElementsByTagName('img');    var img = null;    for (var i = 0; i < children.length; i++) {      if ("simrit-link-right" == children[i].className) {        children[i].src = "/simrit-themes-4.1.3/html/themes/simrit-new/images/simrit-link/button-right.jpg";        break;      }     }        el.style.background="url('/simrit-themes-4.1.3/html/themes/simrit-new/images/simrit-link/button-bg.jpg')";  }    var createSimritLinkButton = function(id, href, text, target) {    var a = document.createElement('a');    a.className = "simrit-link";        var arLeft = document.createElement('img');    arLeft.src = "/simrit-themes-4.1.3/html/themes/simrit-new/images/simrit-link/arrow-left.jpg";    arLeft.className = "simrit-link-arrow-left";    var arrow = document.createElement('img');    arrow.src = "/simrit-themes-4.1.3/html/themes/simrit-new/images/simrit-link/arrow-body.jpg";    arrow.className = "simrit-link-arrow-body";    var btnRight = document.createElement('img');    btnRight.src = "/simrit-themes-4.1.3/html/themes/simrit-new/images/simrit-link/button-right.jpg";    btnRight.className = "simrit-link-right";        a.appendChild(arLeft);    a.appendChild(arrow);    a.appendChild(btnRight);    a.appendChild(document.createTextNode(text));    a.href = href;     if (target == null) {      a.target = "_self";    } else {      a.target = target;    }        if (a.addEventListener) {      a.addEventListener('mouseover', mouseOverEventHandler, true);      a.addEventListener('mouseout', mouseOutEventHandler, true);    } else if (a.attachEvent) {      a.attachEvent('onmouseover', mouseOverEventHandler);      a.attachEvent('onmouseout', mouseOutEventHandler);    } else {      a.onmouseover = mouseOverEventHandler;      a.onmouseout = mouseOutEventHandler;    }    var div = document.getElementById(id);    div.innerHTML = "";    div.className = "";    div.appendChild(a);  }cockpitOver = function(element) {var children = element.getElementsByTagName("img");for (var i = 0; i < children.length; i++) {if (children[i].className == "mysimrit-cockpit-left") {children[i].src = "/simrit-themes-4.1.3/html/themes/simrit/images/mysimrit-cockpit/mysimrit-btn-left-hover.jpg";} else if (children[i].className == "mysimrit-cockpit-list") {children[i].src = "/simrit-themes-4.1.3/html/themes/simrit/images/mysimrit-cockpit/mysimrit-btn-list-hover.jpg";}}element.style.background="url(/simrit-themes-4.1.3/html/themes/simrit/images/mysimrit-cockpit/mysimrit-btn-bg-hover.jpg) repeat-x";}cockpitOut = function(element) {var children = element.getElementsByTagName("img");for (var i = 0; i < children.length; i++) {if (children[i].className == "mysimrit-cockpit-left") {children[i].src = "/simrit-themes-4.1.3/html/themes/simrit/images/mysimrit-cockpit/mysimrit-btn-left.jpg";} else if (children[i].className == "mysimrit-cockpit-list") {children[i].src = "/simrit-themes-4.1.3/html/themes/simrit/images/mysimrit-cockpit/mysimrit-btn-list.jpg";}}element.style.background="url(/simrit-themes-4.1.3/html/themes/simrit/images/mysimrit-cockpit/mysimrit-btn-bg.jpg) repeat-x";}toggleTab = function(i) {  // closing all tabsvar li1 = $('tabHeader1');var li2 = $('tabHeader2');var li3 = $('tabHeader3');li1.removeClassName('currenttab');li2.removeClassName('currenttab');li3.removeClassName('currenttab');var li1childs = li1.down().childElements();var li2childs = li2.down().childElements();var li3childs = li3.down().childElements();for (var k = 0; k < 3; k++) {li1childs[k].show();li2childs[k].show();li3childs[k].show();}$('tabContent1').hide();$('tabContent2').hide();$('tabContent3').hide();  // activating the current element  var activeTabHeader = $('tabHeader' + i);  var activeTabContent = $('tabContent' + i);  activeTabHeader.down().firstDescendant().hide();  activeTabHeader.down().firstDescendant().next().hide();  activeTabHeader.down().firstDescendant().next().next().hide();    activeTabHeader.addClassName('currenttab');    activeTabContent.show();}function mysimritToggleTab(i) {  $('mysimrit-news-tabs').firstDescendant().childElements().each(function(li, index) {    li.removeClassName('currentTab');    li.down().childElements().each(Element.show);  });    $('mysimrit-tab-contents').childElements().each(Element.hide)    var activeTabHeader = $('tabHeader' + i);  activeTabHeader.down().childElements().each(Element.hide);  activeTabHeader.addClassName('currentTab');  $('tabContent' + i).show();}showLanguageSelector = function() {$('language-flyout').style.display = 'block';}hideLanguageSelector = function () {$('language-flyout').style.display = 'none';}/** * Open and close vertical tabs on th Simrit home page *  * @author Sandor Nemeth <sandor.nemeth@everit.biz>   */function toggleVerticalTab(el) {  var toOpen = true;    var b = el.getElementsByTagName("div")[0];    if (b.style.display != "none") {    toOpen = false;  }    var vTabs = el.parentNode;  var tabs = vTabs.childNodes;    for (var i = 0; i < tabs.length; i++) {    var liChildren = tabs[i].childNodes;    if (liChildren.length > 0) {      var header = tabs[i].getElementsByTagName("h1")[0];      var body = tabs[i].getElementsByTagName("div")[0];      var image = header.getElementsByTagName("img")[0];      image.style.display = "inline";      body.style.display = "none";      var clsNames = tabs[i].className.split();      var newClassNames = new Array();      var index = 0;      for (var k = 0; k < clsNames.length; k++) {        if (clsNames[k] != "activeVerticalTab") {          newClassNames[index] = clsNames[k];          index++;        }      }      tabs[i].className = newClassNames.join(" ");    }  }    if (toOpen == true) {    var header = el.getElementsByTagName("h1")[0];    var body = el.getElementsByTagName("div")[0];    var image = header.getElementsByTagName("img")[0];    body.style.display = "block";    image.style.display = "none";    var classNames = el.className.split();    classNames[classNames.length] = "activeVerticalTab";    el.className = classNames.join(" ");  }}search_submit = function(form) {  var q = $('simrit-search-query').value;   var type = form.searchType.value;    var actionString;  if (0 == type) {    actionString = "/?simritSearchKeywords=" + q;     document.location.href = actionString;  } else {    actionString = "http://ecatalog.simrit.com/JPBC/index.jsp?";        actionString = actionString + "&COMPANYID=" + $('simrit-search-companyid').value;    actionString = actionString + "&LOGINNAME=" + $('simrit-search-loginname').value;    actionString = actionString + "&LANGUAGE=" + $('simrit-search-language').value;    actionString = actionString + "&TERRITORY=" + $('simrit-search-territory').value;    actionString = actionString + "&function=" + $('simrit-search-function').value;    actionString = actionString + "&HOOK_URL=" + $('simrit-search-hook_url').value;        if (1 == type) {      actionString = actionString + "&search_aid=" + escape(q);    }    if (2 == type) {      actionString = actionString + "&search_fulltext=" + escape(q);    }    window.open(actionString);  }    return false;}/** * Show a large version of the image on the page on onmouseover event *  * @author Sandor Nemeth <sandor.nemeth@everit.biz>    */ function showLargeImage(id) {  new Effect.Move(id, {    x: $(id).previous().firstDescendant().getWidth(),    y: $(id).up().positionedOffset().top + $(id).previous().firstDescendant().getHeight() - 2,    mode: 'absolute',    transition: Effect.Transitions.full,    duration: 0.0,    afterFinish: function() {      $(id).style.display = 'block';    }  });}  /** * Hide the large version of the image on onmouseout event *  * @author Sandor Nemeth <sandor.nemeth@everit.biz>    */ function hideLargeImage(id) {  setTimeout('hideLargeImageCallback('+ id +')', 200);  clearTimeout();}function hideLargeImageCallback(id) {  $(id).style.display = 'none';}/** * Show a large version of the image on the page on onmouseover event on  * the Latest News Page  *  * @author Sandor Nemeth <sandor.nemeth@everit.biz>    */ function showLargeImageLatestNews(id, smallId) {  var mx = $(smallId).up().up().positionedOffset().left + $(smallId).getWidth();  var my = $(smallId).up().up().positionedOffset().top + $(smallId).getHeight();      new Effect.Move(id, {    x: mx,    y: my,    mode: 'absolute',    transition: Effect.Transitions.full,    duration: 0.0,    afterFinish: function() {      $(id).style.display = 'block';    }  });}/**s * Show a large version of the image on the page on onmouseover event in  * the MySimrit news box  *  * @author Sandor Nemeth <sandor.nemeth@everit.biz>    */ function showLargeImageMySimritNewsBox(id, smallId) {  var mx = $(smallId).positionedOffset().left + $(smallId).getWidth();  var my = $(smallId).positionedOffset().top + $(smallId).getHeight();        new Effect.Move(id, {    x: mx,    y: my,    mode: 'absolute',    transition: Effect.Transitions.full,    duration: 0.0,    afterFinish: function() {      $(id).style.display = 'block';    }  });}