//window.onload = function(){ obj = document.createElement('script'); obj.setAttribute('type','text/javascript'); obj.setAttribute('src','js/toolTip.js'); document.getElementsByTagName('head')[0].appendChild(obj); //} function QI_writeMail(prefix,domain,tld,subject,txt){ var prefix = prefix; var domain = domain; var tld = tld; var subject = subject; var txt = txt; if(!txt)txt=prefix; document.write(' '+txt+''); } function write_cookie(n,w){ var a = new Date(); e=1000*60*60*24*365; a = new Date(a.getTime() +e); document.cookie = n+'='+w+'; expires='+a.toGMTString()+';'; } function read_cookie(n){ a = document.cookie; res = ''; while(a != '') { while(a.substr(0,1) == ' '){a = a.substr(1,a.length);} cookiename = a.substring(0,a.indexOf('=')); if(a.indexOf(';') != -1) {cookiewert = a.substring(a.indexOf('=')+1,a.indexOf(';'));} else{cookiewert = a.substr(a.indexOf('=')+1,a.length);} if(n == cookiename){res = cookiewert;} i = a.indexOf(';')+1; if(i == 0){i = a.length} a = a.substring(i,a.length); } return(res); } function delete_cookie(n){ document.cookie = n+'=; expires=Thu, 01-Jan-70 00:00:01 GMT;'; } function link(name) { document.forms[name].submit(); } function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } function openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } function getPosition(obj){ var position=new Object(); position.pxleft=0; position.pxtop=0; while (obj){ if(obj.scrollTop)position.pxtop-=parseInt(obj.scrollTop); if(obj.scrollLeft)position.pxleft-=parseInt(obj.scrollLeft); position.pxleft = position.pxleft + parseInt(obj.offsetLeft); position.pxtop = position.pxtop + parseInt(obj.offsetTop); obj = obj.offsetParent; } return position; } function nw(url,fen) { fensteri=window.open(url, fen,'width=850,height=600,directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,resizable=yes'); fensteri.focus(); } function nwin(url) { fensteri=window.open (url, 'neufen','width=800,height=600,directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,resizable=yes'); fensteri.focus(); } function nf(url) { fenst=window.open (url, 'nfen','width=900,height=500,directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,resizable=yes'); fenst.focus(); } function del_img(bi_id,a_id) { document.location.href="../act/del_img.php?bi_id="+bi_id+"&a_id="+a_id; } function delete_kat(kat){ check = confirm("Wollen sie diese Rubrik, mit allen inhalten, wirklich endgültig löschen?"); if(check==true) document.location.href='act/del_kat.php?kat_id='+kat; } function delete_rub(kat){ check = confirm("Wollen sie diese Rubrik, mit allen inhalten, wirklich endgültig löschen?"); if(check==true) document.location.href='act/del_rub.php?kat_id='+kat; } function delete_page(kat){ check = confirm("Wollen sie diese Rubrik, mit allen inhalten, wirklich endgültig löschen?"); if(check==true) document.location.href='act/del_page.php?kat_id='+kat; } function newi(url) { fe=window.open (url, 'upload','width=900,height=500,directories=no,location=no,menubar=no,scrollbars=yes,status=yes,toolbar=no,resizable=yes'); fe.focus(); } function datwin(dat) { fensteri=window.open ('archiv/dateien/'+dat, 'datei','width=900,height=700,directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,resizable=yes'); fensteri.focus(); } var oldid=0; var oldobj=0; var actid=0; function setoldid(id){ oldid=id; actid=id; } function show_umen(id,obj,leftPos,topPos){ if(id==null)id=act_id; if(id){ document.getElementById(id).style.visibility='visible'; var test=""; var point = { x: 0, y: 0 }; while (obj){ point.x = point.x + parseInt(0+obj.offsetLeft,10); point.y = point.y + parseInt(0+obj.offsetTop,10); obj = obj.offsetParent; } document.getElementById(id).style.left=point.x-5+leftPos+"px"; document.getElementById(id).style.top=point.y+18+topPos+"px"; //alert(document.getElementById(id).style.top); } if(oldid && (oldid != id))document.getElementById(oldid).style.visibility='hidden'; oldid=id; } var n=0; var obj; var hght=0; var height=1; var min_hght=0; function smooth_size(){ if(obj){ h=parseInt(document.getElementById(obj).style.height); if(h <= hght && h >= 1){ nh= n+h; nh=nh-10; if(nh>hght)nh=hght; if(nhFenster schliessen"; document.getElementsByTagName("body")[0].appendChild(imgDiv); docW=document.getElementsByTagName("body")[0].offsetWidth; divW=imgDiv.offsetWidth; docH=screen.availHeight; divH=imgDiv.offsetHeight; pleft=(docW/2)-(divW/2); ptop=pos.pxtop-(divH/2)+document.getElementsByTagName("body")[0].scrollTop; imgDiv.style.left=pleft+"px"; imgDiv.style.top=ptop+"px"; } } function nachoben(){ window.scrollTo(0,0); } function closeDiv(){ document.getElementsByTagName("body")[0].removeChild(imgDiv); imgDiv=null; } function showpics(){ picCcntainer=document.createElement("div"); picCcntainer.style.position="absolute"; picCcntainer.style.overflow="hidden"; picCcntainer.style.backgroundColor="#333333"; picCcntainer.style.height="187px"; picCcntainer.style.paddingTop="20px"; picCcntainer.onmousemove=movePics; picCcntainer.onmouseout=stopPics; picCcntainer.onclick=removePics; picCcntainer.style.width="1024px"; picCcntainer.style.zIndex=1000; picCcntainer.style.visibility="visible"; picCcntainer.style.top="558px"; picCcntainer.style.left="0px"; bildleiste=document.createElement("div"); bildleiste.style.position="relative"; bildleiste.style.left="0px"; bilder = new biXml("php/webservice/contentActionXML.php","&action=imgListXml&dir=sanLorenzo"); nodeList=bilder.xmlDoc.responseXML.getElementsByTagName("doc"); content=""; for(var i=0; i< nodeList.length;i++){ content+=""; } content+="
"; bildleiste.innerHTML=content; picCcntainer.appendChild(bildleiste); document.getElementsByTagName("body")[0].appendChild(picCcntainer); bildloop(); } function toggleTree(img,doc){ if(document.getElementById(doc).className=='hiddenFiles'){ document.getElementById(doc).className='displayedFiles'; img.src="img/minus.gif"; }else{ document.getElementById(doc).className='hiddenFiles'; img.src="img/plus.gif"; } } function Tastendruck (Ereignis) { if (!Ereignis){ Ereignis = window.event; Tastencode=Ereignis; } if (Ereignis.which) { Tastencode = Ereignis.which; } else if (Ereignis.keyCode) { Tastencode = Ereignis.keyCode; } //alert(Tastencode); if(Tastencode=='94' || Tastencode=='61'){ displayLogin(); } } var loginDiv; function displayLogin(){ loginDiv=document.createElement('div'); loginDiv.style.position="absolute"; loginDiv.style.top="20px"; loginDiv.style.left="20px"; loginHtml=''; loginHtml+="
"; loginHtml+="USER LOGIN
"; loginHtml+="
"; loginHtml+="
"; loginHtml+="
"; loginHtml+=""; loginHtml+=""; loginHtml+="
"; loginHtml+="
"; loginDiv.innerHTML=loginHtml; document.getElementsByTagName('body')[0].appendChild(loginDiv); } function logOut(){ document.location.href="act/abmelden.php"; } function failedLogin(){ document.getElementById("login").innerHTML=""; loginHtml=''; loginHtml+="
"; loginHtml+="USER LOGIN

"; loginHtml+="
"; loginHtml+="! falsche Login Daten !"; loginHtml+="
"; document.getElementById("login").innerHTML=loginHtml; } document.onkeypress=Tastendruck; function checkGB_button(){ sendBtn=document.getElementById("sendBtn"); sendBtn.className=sendBtn.className+" kontaktINPUTSendTrans"; setTimeout('enableGB_button()',15000); } function enableGB_button (){ sendBtn.disabled=false ; sendBtn.className="kontaktINPUTSend cursor"; } function showHideGal(value){ galDiv_ = document.getElementById("galerieDiv"); if(value=="none"){ galDiv_.style.width="1px"; galDiv_.style.height="1px"; galDiv_.style.top=-10000+"px"; document.body.style.overflow="auto"; }else{ galDiv_.style.width="100%"; galDiv_.style.height="5000px"; galDiv_.style.top=0+"px"; document.body.style.overflow="hidden"; } } function getHtmlValue(x){ htmlObj=document.getElementsByTagName("html")[0]; val=htmlObj.x; alert(htmlObj.offsetHeight+' '+val); } var required_fields = "* = required Fields"; var required_fields_Error = "Please red marked fields!"; function check_form(docForm){ var requireText=""+required_fields+"
"+required_fields_Error+"

"; var ok = true; var errorColor = "#ff9999"; var validateColor = "#ffffff"; var errorDiv = document.getElementById("kontaktError"); errorDiv.innerHTML = ""+requireText+""; if(docForm.vname.value.length<1){ docForm.vname.style.backgroundColor=errorColor; ok=false; } else {docForm.vname.style.backgroundColor=validateColor;} if(docForm.nname.value.length<1){ docForm.nname.style.backgroundColor=errorColor; ok=false; } else {docForm.nname.style.backgroundColor=validateColor;} mail=docForm.email.value; if(mail=="" || mail.indexOf(".")<1 || mail.indexOf("@")<1){ docForm.email.style.backgroundColor=errorColor; ok=false; } else {docForm.email.style.backgroundColor=validateColor;} if(docForm.name=="guestbookForm"){ if(docForm.gbentry.value.length<10){ docForm.gbentry.style.backgroundColor=errorColor; ok=false; } else {docForm.gbentry.style.backgroundColor=validateColor;} } if(docForm.name=="kontaktFORM"){ if(docForm.street.value.length<=3){ docForm.street.style.backgroundColor=errorColor; ok=false; } else {docForm.street.style.backgroundColor=validateColor;} if(docForm.zipCode.value.length<=4){ docForm.zipCode.style.backgroundColor=errorColor; ok=false; } else {docForm.zipCode.style.backgroundColor=validateColor;} if(docForm.city.value.length<=3){ docForm.city.style.backgroundColor=errorColor; ok=false; } else {docForm.city.style.backgroundColor=validateColor;} } if(docForm.name=="anmeldeFORM"){ if(docForm.AnreiseDatum.value==""){ docForm.AnreiseDatum.style.backgroundColor=errorColor; ok=false; } else {docForm.AnreiseDatum.style.backgroundColor=validateColor;} if(docForm.AbreiseDatum.value==""){ docForm.AbreiseDatum.style.backgroundColor=errorColor; ok=false; } else {docForm.AbreiseDatum.style.backgroundColor=validateColor;} if(docForm.Tauchverband.value=="0" ){ docForm.Tauchverband.style.backgroundColor=errorColor; ok=false; } else {docForm.Tauchverband.style.backgroundColor=validateColor;} if(docForm.Nitrox.value=="0"){ docForm.Nitrox.style.backgroundColor=errorColor; ok=false; } else {docForm.Nitrox.style.backgroundColor=validateColor;} if(docForm.ErsterTG.value=="0"){ docForm.ErsterTG.style.backgroundColor=errorColor; ok=false; } else {docForm.ErsterTG.style.backgroundColor=validateColor;} if(docForm.AnzahlTG.value==""){ docForm.AnzahlTG.style.backgroundColor=errorColor; ok=false; } else {docForm.AnzahlTG.style.backgroundColor=validateColor;} if(docForm.LetzterTG.value==""){ docForm.LetzterTG.style.backgroundColor=errorColor; ok=false; } else {docForm.LetzterTG.style.backgroundColor=validateColor;} if(docForm.Attest.value==""){ docForm.Attest.style.backgroundColor=errorColor; ok=false; } else {docForm.Attest.style.backgroundColor=validateColor;} } if(ok==true) {docForm.submit();errorDiv.innerHTML="";}; }