/* Default Code */ if (document.all) { document.execCommand('BackgroundImageCache', false, true); } var DHTML = false, DOM = false, MSIE4 = false, NS4 = false, OP = false; if (document.getElementById) { DHTML = true; DOM = true; } else { if (document.all) { DHTML = true; MSIE4 = true; } else { if (document.layers) { DHTML = true; NS4 = true; } } } if (window.opera) { OP = true; } function getElement (Mode, Identifier, ElementNumber) { var Element; if (DOM) { if (Mode.toLowerCase() == "id") { if (typeof document.getElementById(Identifier) == "object") { Element = document.getElementById(Identifier); } else { Element = false; } return Element; } if (Mode.toLowerCase() == "name") { var ElementList = document.getElementsByName(Identifier); if (typeof ElementList == "object" || (OP && typeof ElementList == "function")) { Element = ElementList[ElementNumber]; } else { Element = false; } return Element; } if (Mode.toLowerCase() == "tagname") { var ElementList = document.getElementsByTagName(Identifier); if (typeof ElementList == "object" || (OP && typeof ElementList == "function")) { Element = ElementList[ElementNumber]; } else { Element = false; } return Element; } return null; } if (MSIE4) { if (Mode.toLowerCase() == "id") { if (typeof document.all[Identifier] == "object") { Element = document.all[Identifier]; } else { Element = false; } return Element; } if (Mode.toLowerCase() == "tagname") { if (typeof document.all.tags(Identifier) == "object") { Element = document.all.tags(Identifier)[ElementNumber]; } else { Element = false; } return Element; } if (Mode.toLowerCase() == "name") { if (typeof document[Identifier] == "object") { Element = document[Identifier]; } else { Element = false; } return Element; } return false; } if (NS4) { if (Mode.toLowerCase() == "id" || Mode.toLowerCase() == "name") { if (typeof document[Identifier] == "object") { Element = document[Identifier]; } else { Element = false; } return Element; } if (Mode.toLowerCase() == "index") { if (typeof document.layers[Identifier] == "object") { Element = document.layers[Identifier]; } else { Element = false; } return Element; } return false; } return false; } function getInnerHeight() { if (window.innerHeight){ // NS 4, Opera 5.12, Firefox 1, return window.innerHeight; }else{ if (document.documentElement && document.documentElement.clientHeight){ // IE 6 return document.body.clientHeight; }else{ if(document.body){ // others IE return document.body.clientHeight; }else{ return 0; // others ? } } } } function getInnerWidth() { if (window.innerWidth){ // NS 4, Opera 5.12, Firefox 1, return window.innerWidth; }else{ if (document.documentElement && document.documentElement.clientWidth){ // IE 6 return document.body.clientWidth; }else{ if(document.body){ // others IE return document.body.clientWidth; }else{ return 0; // others ? } } } } function setifrSize() { //passt die IFramegrösse an. getElement("id", "ifr").style.height = getInnerHeight()-205; var breiteabst=240; var breite=708; if((getInnerWidth()-breiteabst)>breite){ w=breite }else{ w = getInnerWidth()-breiteabst; } getElement("id", "ifr").style.width = w ; } function OpenDocument(docunid){ docunid=docunid.replace(/ /g, ""); location.href=getwebdb()+"/vw_docnavi/"+docunid+"!opendocument"; } function OpenDocumentStart(docunid){ docunid=docunid.replace(/ /g, ""); location.href=jswebdb+"/vw_docnavi/"+docunid+"!opendocument"; } function OpenDocumentShowOnlyBody(docunid){ docunid=docunid.replace(/ /g, ""); location.href=getwebdb()+"/fm_showonlybody!openform&ParentUNID="+docunid; } function OpenSpecialForm(formname, mychan){ if (mychan=="") {mychan=chanpos}; var fname=""; formname=formname.toLowerCase(); switch (formname){ case "a-z": fname="fm_az"+mychan; break; case "faq": fname="fm_faq"+mychan; break; case "event": fname="fm_event"+mychan; break; case "partner links": fname="fm_link"+mychan; break; case "contact": var mypos=""; var p=contactpos.split(';'); for(i=1;i= 1 && s.lastIndexOf('.') > s.search('@') && s.lastIndexOf('.') >= s.length-5) } return(res); } Event_init ();