window.onload=function(){externalLinks();stripe();}
function externalLinks(){if(!document.getElementsByTagName)return;var anchors=document.getElementsByTagName("a");for(var i=0;i<anchors.length;i++){var anchor=anchors[i];if(anchor.getAttribute("href")){if(anchor.getAttribute("rel")=="ext")anchor.target="_blank";}}}
var stripe=function(){var tables=document.getElementsByTagName("table");for(var x=0;x!=tables.length;x++){if(hasClass(tables[x])=="stripeTbl"||hasClass(tables[x])=="stripeTblBox"||hasClass(tables[x])=="mainTbl"){var table=tables[x];if(!table)return;var trs=table.getElementsByTagName("tr");var even=true;for(var i=0;i<trs.length;i++){if(even)trs[i].className+=" oddRow";even=!even;}}}}
function hasClass(obj){var result=false;if(obj.getAttributeNode("class")!=null)result=obj.getAttributeNode("class").value;return result;}
function wopen(url,popname,dim){win=window.open(url,popname,dim);win.focus();}
function gotosite(url,stat,liga,year){if(stat!="blank"&&stat!=null)location.href=(url+'?stat='+ stat+'&liga='+ liga);else location.href=(url+'?jahr='+ year);}
function selRadio(radioGroup,radioValue,other,layer){var doc=(layer&&document.layers)?eval("document."+ layer+".document"):document;doc.formular[radioGroup][radioValue].checked=true;doc.formular[other].value="";}
function selRadio1(radioGroup,radioValue,layer,txtValue){var doc=(layer&&document.layers)?eval("document."+ layer+".document"):document;doc.formular[radioGroup][radioValue].checked=true;doc.formular[radioGroup][radioValue].value=txtValue;}
function checkEMail(fieldName){var x=fieldName.value;var filter=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;if(filter.test(x))return true;else return false;}
function OneOptionChecked(){var i;for(i=0;i<document.getElementById("frmPoll").radPoll.length;i++)
if(document.getElementById("frmPoll").radPoll[i].checked)return true;alert("You must select what you want to vote for\nbefore you can submit your vote!");return false;}
var win;function viewPic(img){picFil=new Image();picFil.src=(img);fileCheck(img);}
function fileCheck(img){if((picFil.width!=0)&&(picFil.height!=0))popWin(img);else{func="fileCheck('"+img+"')";intr=setTimeout(func,10);}}
function popWin(img){ht=picFil.height+ 30;wd=picFil.width+ 20;var args="height="+ ht+",innerHeight="+ ht+",width="+ wd+",innerWidth="+ wd;if(window.screen){var avht=screen.availHeight;var avwd=screen.availWidth;var xcen=(avwd- wd)/2;var ycen=(avht- ht)/2;args+=",left="+ xcen+",screenX="+ xcen;args+=",top="+ ycen+",screenY="+ ycen+",resizable=1";}
if(!win){win=window.open(img,'pop_gallerie',args);win.focus();}
else{win.close();win=window.open(img,'pop_gallerie',args);win.focus();}}
function loadXMLDoc2(url){if(window.XMLHttpRequest){req=new XMLHttpRequest();req.onreadystatechange=processReqChange;req.open("GET",url,true);req.send(null);}
else if(window.ActiveXObject){isIE=true;req=new ActiveXObject("Microsoft.XMLHTTP");if(req){req.onreadystatechange=processReqChange;req.open("GET",url,true);req.send();}}}
var xmlhttp=false;/*@cc_on @*/if(!xmlhttp&&typeof XMLHttpRequest!='undefined')xmlhttp=new XMLHttpRequest();function loadXMLDoc(serverPage,objID){var obj=document.getElementById(objID);xmlhttp.open("GET",serverPage);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4&&xmlhttp.status==200)obj.innerHTML=xmlhttp.responseText;}
xmlhttp.send(null);}
