// functions js var globObj; var nLetter; window.onload = function() { if(location.href.indexOf('newsletter') == '-1') { nLetter = new fx.Combo('nLetter', {height: false, opacity: true, duration: 500}); nLetter.hide(); } onlineClicks = document.getElementsByClassName('online-click1'); onlineContents = document.getElementsByClassName('online-content1'); online1 = new fx.Accordion(onlineClicks, onlineContents); } function imgHover(obj) { obj.src = (obj.src.indexOf('_h.gif') == -1) ? obj.src.replace(/\.gif/g, "_h.gif") : obj.src.replace(/\_h.gif/g, ".gif"); } function menu(obj) { var mTxt = obj.childNodes[0]; var mIco = obj.childNodes[1].childNodes[0]; if(obj != globObj) { obj.style.cursor = 'pointer'; mTxt.className = (mTxt.className == 'red11px') ? '' : 'red11px'; mIco.src = (mIco.src.indexOf('_h.gif') == -1) ? mIco.src.replace(/\.gif/g, "_h.gif") : mIco.src.replace(/\_h.gif/g, ".gif"); } } function selecter(objId) { var obj = $(objId); if(obj.getAttribute('clicked') != '1') obj.setAttribute('clicked','1'); else obj.setAttribute('clicked','0'); obj.childNodes[0].className = (obj.getAttribute('clicked') == '1') ? 'red11px' : ''; obj.childNodes[1].childNodes[0].src = (obj.getAttribute('clicked') == '1') ? 'img/ico_minus_h.gif' : 'img/ico_plus.gif'; if(globObj && obj != globObj) { globObj.setAttribute('clicked','0'); globObj.childNodes[0].className = ''; globObj.childNodes[1].childNodes[0].src = 'img/ico_plus.gif'; } globObj = obj; } function currentMenu(objId,menuId) { var objIndex = accordionContents.indexOf($('content_'+objId)); accordion1.showThisHideOpen(accordionContents[objIndex]); $('link_'+menuId).className = 'redLink11px'; $(objId).childNodes[0].className = 'red11px'; $(objId).childNodes[1].childNodes[0].src = 'img/ico_minus_h.gif'; $(objId).setAttribute('clicked','1'); globObj = $(objId); } function clickIt(obj) { /* if(obj.getAttribute('clicked') != '1') obj.setAttribute(clicked,'1'); else obj.setAttribute(clicked,'0'); */ alert(); } function tableHover(obj) { if(obj.getAttribute('clicked') != '1') { var tableId = obj.getAttribute('tableId'); obj.style.background = (obj.style.background == '#E7EEF8') ? '' : '#E7EEF8'; $('ok_'+tableId).src = ($('ok_'+tableId).src.indexOf('id=259') == -1) ? $('ok_'+tableId).src.replace(/\id=258/g, "id=259") : $('ok_'+tableId).src.replace(/\id=259/g, "id=258"); } } function printOut() { window.print(); } function validateThis(formId) { var val = validate($(formId)); if(val) $(formId).submit(); } function swHide(obj) { //$(getId).style.display = ($(getId).style.display == 'none') ? 'inline' : 'none'; obj.toggle(); //showThisHideOpen($(getId)); }