function webcam(){window.open("http://www.domradio.de/webCam/webcam.asp","webcam","align='center',toolbar=no,scrollbars=no,resizable=no,status=no,width=538,height=426");}
function domcam(){window.open("http://www.domradio.de/WebCam/domCam.asp","domcam","align='center',toolbar=no,scrollbars=no,resizable=no,status=no,width=538,height=426");}
function MM_openBrWindow(theURL,winName,features){window.open(theURL,winName,features);}
function WindowAudio(theAudioID){window.open('http://www.domradio.de/includes/audioplayer_popup.asp?beitrag='+theAudioID,'domradioMedia','width=250,height=225');}
function WindowVideoH2O(TheLink){window.open(TheLink,'h2onews.org Video','toolbar=no,width=320,height=255');}
function WindowVideo(theVideoID){window.open('http://www.domradio.de/includes/videoplayer_popup.asp?i='+theVideoID,'domradioMedia','width=470,height=500');}
function InfoFenster400(theURL){window.open(theURL,"Galerie","align='center',toolbar=no,scrollbars=yes,resizable=no,status=no,width=415,height=420");}
function OpenWindowImgRotator(theURL){window.open(theURL,"Galerie","align='center',toolbar=no,scrollbars=yes,resizable=no,status=no,width=620,height=425");}
function InfoFenster500(theURL){window.open(theURL,"Originalgröße","align='center',toolbar=no,scrollbars=yes,resizable=yes,status=no,width=500,height=480");}
function MM_displayStatusMsg(msgStr){status=msgStr;}
function isValidEmail(strEmail){validRegExp=/^[^@]+@[^@]+.[a-z]{2,}$/i;if(strEmail.search(validRegExp)==-1){alert("Bitte Empfängeradresse >> "+strEmail+" << prüfen.");return false;}
return true;}
function emailCheck(emailStr){var checkTLD=1;var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;var emailPat=/^(.+)@(.+)$/;var specialChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]";var validChars="\[^\\s"+specialChars+"\]";var quotedUser="(\"[^\"]*\")";var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;var atom=validChars+'+';var word="("+atom+"|"+quotedUser+")";var userPat=new RegExp("^"+word+"(\\."+word+")*$");var domainPat=new RegExp("^"+atom+"(\\."+atom+")*$");var matchArray=emailStr.match(emailPat);if(matchArray==null){alert("Mailadresse ungültig ( @ und . überprüfen!)");return false;}
var user=matchArray[1];var domain=matchArray[2];for(i=0;i<user.length;i++){if(user.charCodeAt(i)>127){alert("Ungültige Zeichen enthalten!");return false;}}
for(i=0;i<domain.length;i++){if(domain.charCodeAt(i)>127){alert("Ungültige Zeichen im Domänenamen!");return false;}}
if(user.match(userPat)==null){alert("Ungültigen Benutzernamen eingegeben!");return false;}
var IPArray=domain.match(ipDomainPat);if(IPArray!=null){for(var i=1;i<=4;i++){if(IPArray[i]>255){alert("Ungültige IP Adresse!");return false;}}
return true;}
var atomPat=new RegExp("^"+atom+"$");var domArr=domain.split(".");var len=domArr.length;for(i=0;i<len;i++){if(domArr[i].search(atomPat)==-1){alert("Domäne ungültig!");return false;}}
if(checkTLD&&domArr[domArr.length-1].length!=2&&domArr[domArr.length-1].search(knownDomsPat)==-1){alert("Ungültiger Domänename eingegeben "+"country.");return false;}
if(len<2){alert("Keinen Hostnamen in der Mailadresse gefunden!");return false;}
return true;}
function elementVisibleToggle(theElement){var theStyle=document.getElementById(theElement).style;if(theStyle.visibility=="hidden"){theStyle.visibility="visible";}else{theStyle.visibility="hidden";}
return false;}
function special_expand(zap){if(document.getElementById){var img1="bilder/layout/icon_nav_e1.gif";var img2="bilder/layout/icon_nav_e1up.gif";var abra=document.getElementById(zap).style;var exp_img=document.getElementById('expand2');if(abra.display=="block"){abra.display="none";exp_img.src=img1;}else{abra.display="block";exp_img.src=img2;}
return false;}else{return true;}}
