// Version 0.1 // 04. Apr. 2007 function setClass(id,ClassNm) { if (typeof document.getElementById(id) != 'undefined') { document.getElementById(id).className = ClassNm; } } function addClass(id, ClassNm){ if (typeof document.getElementById(id) != 'undefined') { var oldClass = (document.getElementById(id).className)?document.getElementById(tagType)[tagIndex].className:''; document.getElementById(id).className=oldClass+' '+ClassNm; } } function getAbsLeft(id) { o = document.getElementById(id); oL = o.offsetLeft; while(o.offsetParent!=null) { oP = o.offsetParent; oL += oP.offsetLeft; o = oP; } return oL; } function getAbsTop(id) { o = document.getElementById(id); oT = o.offsetTop; while(o.offsetParent!=null) { oP = o.offsetParent; oT += oP.offsetTop; o = oP; } return oT; } function writeIntoLayer(id,cont) { if (typeof document.getElementById(id) != 'undefined') { document.getElementById(id).innerHTML = cont; } } function setDisplay(id,dis) { if (typeof document.getElementById(id) != 'undefined') { if(dis) { document.getElementById(id).style.display = 'block'; } else { document.getElementById(id).style.display = 'none'; } } } function helperDivInfo(id,attr) { if (typeof document.getElementById(id) != 'undefined') { dInfo = new Array(); dInfo['l'] = parseInt(id.style.left); dInfo['t'] = parseInt(id.style.top); dInfo['w'] = id.offsetWidth; dInfo['h'] = id.offsetHeight; dInfo['osL'] = id.offsetLeft; dInfo['osT'] = id.offsetTop; dInfo['v'] = id.style.visibility; dInfo['d'] = id.style.display; dInfo['zI'] = id.style.zIndex; return dInfo[attr]; } } function helperWinInfo(attr) { wInfo = new Array(); wInfo['scrL'] = document.body.scrollLeft; wInfo['scrT'] = document.body.scrollTop; wInfo['wW'] = document.body.clientWidth; if (document.body.clientHeight == 0) { wInfo['winH'] = window.innerHeight; } else { wInfo['winH'] = document.body.clientHeight; } wInfo['docW'] = document.body.scrollWidth; wInfo['docH'] = document.body.scrollHeight; return wInfo[attr]; } function openPopup(url,name,w,h,scroll,center,l,t,res) { if(!l) {l = 5;} if(!t) {t = 15;} if(!res) {res = 'yes';} if(!scroll){scroll = 1;} if(!center){center = false;} pLeft = (window.screen.width/2) - (w/2 + l); pTop = (window.screen.height/2) - (h/2 + t); if (center) { xPos = 'left=' + pLeft; yPos = 'top=' + pTop; } else { xPos = 'screenX=' + pLeft; yPos = 'screenY=' + pTop; } pWin = window.open(url, name, "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=" + scroll + ",resizable=" + res + ",width=" + w + ",height=" + h + ",copyhistory=no," + xPos + "," + yPos +""); pWin.focus(); if (pWin) return false; else return true; } function openPopupByFlash(url,name,w,h,scroll,center,l,t,res) { if(!l) {l = 5;} if(!t) {t = 15;} if(!res) {res = 'yes';} if(!scroll){scroll = 1;} if(!center){center = false;} pLeft = (window.screen.width/2) - (w/2 + l); pTop = (window.screen.height/2) - (h/2 + t); if (center) { xPos = 'left=' + pLeft; yPos = 'top=' + pTop; } else { xPos = 'screenX=' + pLeft; yPos = 'screenY=' + pTop; } pWin = window.open(url, name, "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=" + scroll + ",resizable=" + res + ",width=" + w + ",height=" + h + ",copyhistory=no," + xPos + "," + yPos +""); pWin.focus(); } function checkfornumbers( xmlOnkz, xmlRufnr ) { var xmlRufnr = document.getElementById('xmlRufnr').value; var xmlOnkz = document.getElementById('xmlOnkz').value; if( Math.abs( xmlOnkz ) > 0 && Math.abs( xmlRufnr ) > 0 ) { document.getElementById('dslcheck_form').submit(); } else { document.getElementById('onlynumbers').style.display = 'block'; } } function swapimage( slidername, imglink ) { var slidername = slidername; var imglink = imglink; document.getElementById(slidername).src = imglink; } function imgpreload( imglink ) { //preload.src = imglink; } function swapTabContent(elementId) { var items = document.getElementById('tabbedmen_init').tab_items.value.split(","); for(var i=0; i