if(document&&document.execCommand){try{document.execCommand("BackgroundImageCache",false,true);}
catch(e){}}
function preloader(){}
function statinfo(info){if(info){window.status=info;return true;}}
function clearText(thefield){if(thefield.defaultValue==thefield.value)
thefield.value=""}
function pulldownChange(whatform,whatselect){top.location.href=document.forms[whatform].elements[whatselect].options[document.forms[whatform].elements[whatselect].selectedIndex].value;return false;}
function fensterln(theURL,winName,features){window.open(theURL,winName,features);}
function tooltip(elem){if(document.getElementById(elem).style.display!="block")document.getElementById(elem).style.display='block';else document.getElementById(elem).style.display='none';}
function bildrahmen(elem,zustand){if(zustand=="over")document.getElementById(elem).style.borderColor='#952722';else document.getElementById(elem).style.borderColor='#EADDD6';}
function bildrahmen_gal(elem,zustand){if(zustand=="over")document.getElementById(elem).style.borderColor='#952722';else document.getElementById(elem).style.borderColor='#FFFFFF';}
function bildpop(bildname){var temp=open('/includes/allgemeine/dynpop.php?bildname='+bildname,'popupfenster','width=50,height=50,top=0,left=0,resizable=no,scrollbars=auto,status=1');popgalerie=temp;popgalerie.focus();}
function bildpop_check(bildid){var temp=open('/includes/allgemeine/dynpop_check.php?bildid='+bildid,'popupfenster','width=50,height=50,top=0,left=0, resizable=no,scrollbars=auto');popgalerie_c=temp;popgalerie_c.focus();}
function bildpop_absolut(bildname){var cleanurl=document.URL.replace(/http:\/\//,"");var urlparts=cleanurl.split("/");var temp=open('http://'+urlparts[0]+'/includes/allgemeine/dynpop.php?bildname='+bildname,'popupfenster','width=50,height=50,top=0,left=0, resizable=no,scrollbars=auto');popgalerie=temp;popgalerie.focus();}
function videopop(video_id){var temp=open('/community/videorekorder/videoplayer.php?vidid='+video_id,'video','width=390,height=388');popvideo=temp;popvideo.focus();}
function ageCheck(){var agecheckpop=open('/ab18.php','piccheck','width=550,height=500');agecheckpop.focus();}
function formFocus(){if(document.forms.length>0){document.forms[0][0].focus();}}
function lw(ob){if(ob.blur)ob.blur();}
function uo_ro(){if(!uo_loadcheck){$('span[@name=onlineuserdiv]').cluetip({width:'82px',showTitle:false,waitImage:'/img/ajax-wait.gif',dropShadow:false});}}
function piccheck(){checkurl=piccheck.arguments.length>0?piccheck.arguments[0]:'';schickurl=piccheck.arguments.length>1?piccheck.arguments[1]:'';pop1name=piccheck.arguments.length>=3?piccheck.arguments[2]:'piccheck';pop1atrib=piccheck.arguments.length>=3?piccheck.arguments[3]:'width=620,height=500';pop2name=piccheck.arguments.length>=5?piccheck.arguments[4]:'';pop2atrib=piccheck.arguments.length>=5?piccheck.arguments[5]:'';pop3name=piccheck.arguments.length>=7?piccheck.arguments[6]:'';pop3atrib=piccheck.arguments.length>=7?piccheck.arguments[7]:'';piccheckimg=new Image();jetzt=new Date();var piccheckinfo="?piccheckinfo=";if(checkurl.indexOf("?")>-1)piccheckinfo="&piccheckinfo=";piccheckimg.src=checkurl+piccheckinfo+jetzt.getTime();if(schickurl!='')checkurl=schickurl;piccheckget(checkurl,pop1name,pop1atrib,pop2name,pop2atrib,pop3name,pop3atrib);}
function piccheck_payurl(checkurl,payurl){piccheckimg=new Image();jetzt=new Date();var piccheckinfo="?piccheckinfo=";if(checkurl.indexOf("?")>-1)piccheckinfo="&piccheckinfo=";piccheckimg.src=checkurl+piccheckinfo+jetzt.getTime();piccheckget_payurl(checkurl,payurl);}
function piccheck_paycheck(checkurl,checktime){piccheckimg=new Image();jetzt=new Date();var piccheckinfo="?piccheckinfo=";if(checkurl.indexOf("?")>-1)piccheckinfo="&piccheckinfo=";piccheckimg.src=checkurl+piccheckinfo+jetzt.getTime();piccheckget_paycheck(checkurl,checktime);}
function piccheckget(){checkurl=piccheckget.arguments[0];pop1name=piccheckget.arguments.length>=2?piccheckget.arguments[1]:'piccheck';pop1atrib=piccheckget.arguments.length>=2?piccheckget.arguments[2]:'width=620,height=500';pop2name=piccheckget.arguments.length>=4?piccheckget.arguments[3]:'';pop2atrib=piccheckget.arguments.length>=4?piccheckget.arguments[4]:'';pop3name=piccheckget.arguments.length>=6?piccheckget.arguments[5]:'';pop3atrib=piccheckget.arguments.length>=6?piccheckget.arguments[6]:'';if(piccheckimg.complete){var piccheckpop="?piccheckpop=1";if(checkurl.indexOf("?")>-1)piccheckpop="&piccheckpop=1";if(piccheckimg.width=='1'){if(pop1name==''){self.location=checkurl+piccheckpop;}else{window.open(checkurl+piccheckpop,pop1name,pop1atrib);}}else if(piccheckimg.width=='3'){if(pop3name==''){self.location='/sicher-bezahlen/';}else{window.open('/sicher-bezahlen/',pop3name,pop3atrib);}}else{if(pop2name==''){self.location=checkurl;}else{window.open(checkurl,pop2name,pop2atrib);}}}else{window.setTimeout("piccheckget('"+checkurl+"','"+pop1name+"','"+pop1atrib+"','"+pop2name+"','"+pop2atrib+"','"+pop3name+"','"+pop3atrib+"')",200)}}
function piccheckget_payurl(checkurl,payurl){if(piccheckimg.complete){var piccheckpop="?piccheckpop=1";if(checkurl.indexOf("?")>-1)piccheckpop="&piccheckpop=1";if(piccheckimg.width=='1'){self.location=payurl;}else if(piccheckimg.width=='3'){self.location='/sicher-bezahlen/';}else{self.location=checkurl;}}else{window.setTimeout("piccheckget_payurl('"+checkurl+"','"+payurl+"')",200)}}
function piccheckget_paycheck(checkurl,checktime){if(piccheckimg.complete){var flashcheckerr="?flashcheckerr=1";if(checkurl.indexOf("?")>-1)flashcheckerr="&flashcheckerr=1";if(piccheckimg.width=='1'){top.location=checkurl+flashcheckerr;}else if(piccheckimg.width=='3'){self.location='/sicher-bezahlen/';}else{window.setTimeout("piccheck_paycheck('"+checkurl+"',"+checktime+")",checktime)}}else{window.setTimeout("piccheckget_paycheck('"+checkurl+"',"+checktime+")",200)}}
function fullscreen(seite){var vBreite=screen.availWidth;var vHoehe=screen.availHeight;window.open(seite,'fullscreenfenster','scrollbars=0,width='+vBreite+',height='+vHoehe+',fullscreen=1,left=0,top=0');}
function rechtscomlogin(){isMac=(navigator.appVersion.indexOf("Mac")!=-1)?true:false;isPC=(navigator.appVersion.indexOf("Windows")!=-1)?true:false;isUnix=(navigator.appVersion.indexOf("Unix")!=-1)?true:false;var ie4=document.all
var ie5=document.getElementById&&document.all
var ie6=document.getElementById&&document.all&&(navigator.appVersion.indexOf("MSIE 6.")!=-1)
var ns4=document.layers
var ns6=document.getElementById&&!document.all
if(isPC&&((ie5&&ie4)||ie6)){if(this.event.keyCode==13)document.login_rechts.submit();}}
function activex_wmp_check(){var agt=navigator.userAgent.toLowerCase();var appVer=navigator.appVersion.toLowerCase();var is_konq=false;var kqPos=agt.indexOf('konqueror');if(kqPos!=-1)is_konq=true;var is_safari=((agt.indexOf('safari')!=-1)&&(agt.indexOf('mac')!=-1))?true:false;var is_khtml=(is_safari||is_konq);var is_gecko=((!is_khtml)&&(navigator.product)&&(navigator.product.toLowerCase()=="gecko"))?true:false;var is_gver=0;if(is_gecko)is_gver=navigator.productSub;if(is_gecko){var player;var plugin;var hasActiveX=false;try{if(window.ActiveXObject)
{hasActiveX=true;player=new ActiveXObject("WMPlayer.OCX.7");}
else if(window.GeckoActiveXObject)
{hasActiveX=true;player=new GeckoActiveXObject("WMPlayer.OCX.7");}}catch(oError){}
try{if(navigator.mimeTypes)
{plugin=navigator.mimeTypes['application/x-mplayer2'].enabledPlugin;}}catch(oError){}
var message="Your browser "+(hasActiveX?"does":" does not")+" support ActiveX. \n";message+="The WMP ActiveX control is"+(player?"":" not")+" installed. \n";message+="The WMP Plugin "+(plugin?"is":"is not")+" installed. \n";message+="Gecko "+(is_gecko?"":"nicht")+" gefunden. \n";if(!player||!hasActiveX){return false;}else{return true;}}else{return true;}}
function launchModal(sUrl,dialogWidth,dialogHeight,dialogTitle){var dialogInfo=new Object();dialogInfo.Title=dialogTitle;dialogInfo.returnWin=window;var iTop=(screen.height-dialogHeight)/2;var iLeft=(screen.width-dialogWidth)/2;if(typeof(window.showModalDialog)!='undefined'){var returnVal=window.showModalDialog(sUrl,dialogInfo,"dialogWidth:"+dialogWidth+"px;dialogHeight:"+dialogHeight+"px;help:no;scroll:no;status:no");}
else{sOption="alwaysRaised=yes,dependent=yes,status=no,dialog=yes,minimizable=no,modal=yes"+",width="+dialogWidth+",height="+dialogHeight+",top="+iTop+",left="+iLeft;var oWindow=window.open('',null,sOption,true);oWindow.location.href=sUrl;oWindow.dialogArguments=dialogInfo;this.Window=oWindow;}
return false;}
function remote(){newwin=false;newfocus='';newtarget='';url=remote.arguments[0];if(remote.arguments.length>1)
newtarget=remote.arguments[1];if(remote.arguments.length==3)
newfocus=remote.arguments[2];if(newtarget=='_blank')
window.open(url,'ab18','');if(newtarget!='_blank'){if(top.opener==null||top.opener.closed==true){if(window.ab18Win==null||window.ab18Win.closed){newwin=true;}else{ab18Win.location.href=url;if(newfocus!="self")
ab18Win.focus();}}else{if(top.opener.top.opener==null){top.opener.top.location=url;if(newfocus!="self")
top.opener.top.focus();}else{newwin=true;}}}
if(newfocus=="self")
self.focus();if(newwin){ab18Win=window.open(url,'ab18Win','');ab18Win.moveTo(0,0);if(document.all){ab18Win.resizeTo(screen.availWidth,screen.availHeight);}else if(document.layers||document.getElementById){if(ab18Win.outerHeight<screen.availHeight||ab18Win.outerWidth<screen.availWidth){ab18Win.window.outerHeight=screen.availHeight;ab18Win.window.outerWidth=screen.availWidth;}}}}
function validatePwd(fi,pm){f=document.getElementById(fi);sl=0;sm=5;if(f.value.length>=3){if(f.value.match(/\d/))
sl++;if(f.value.match(/^[a-zA-Z]+/))
sl++;if(f.value.match(/[A-Z]/)&&f.value.match(/[a-z]/))
sl++;if(f.value.match(/\W+/))
sl++;if(f.value.length>=7)
sl++;}
sp=(pm/sm)*sl;c='#ff0000';if(sl==3)
c='#fdef52';else if(sl>3)
c='#46ed35';document.getElementById(fi+'_meter').style.width=(sp)+'px';document.getElementById(fi+'_meter').style.backgroundColor=c;}
function disableFirstPulldownElement(pd){if(pd.selectedIndex==0){for(i=1;i<pd.options.length;i++){pd.options[i].selected=false;}}}
function decryptMail(s){var n=0;var r="";for(var i=0;i<s.length;i++){n=s.charCodeAt(i);if(n>=8364){n=128;}
r+=String.fromCharCode(n-(5));}
location.href=r;}
function formLenCheck(elem,outdiv,maxlen){var strLen=elem.value.length;if(strLen==1&&elem.value.substring(0,1)==" "){elem.value="";strLen=0;}
if(strLen>maxlen){elem.value=elem.value.substring(0,maxlen)
charsLeft=0;}else{charsLeft=maxlen-strLen;}
document.getElementById(outdiv).value=charsLeft;}
