var browser="FF"; function showloginfrommenu() { document.getElementById("logindiv").style.display="block"; setTimeout(function() {document.getElementById("userl").focus();},500); } function closelogin() { document.getElementById("logindiv").style.display="none"; } function check(formname) { var seite="anfrage"; gutefarbe1="00519E"; // text gutefarbe2="00519E"; // select fehler=false; for (i=0; i"" || tel2>"" || tel3>"") { if (!regex1.test(tel1)) {fehler=true; element.style.borderColor="#ff0000"; check_show_err(element,"Telnr",0);} if (!regex2.test(tel2) && !regex2.test(tel3)) { fehler=true; check_show_err(element,"Telnr",0); if (!regex2.test(tel2)) {document.forms[formname].elements[i+1].style.borderColor="#ff0000";} if (!regex2.test(tel3)) {document.forms[formname].elements[i+2].style.borderColor="#ff0000";} } } } if (r=="€") { // Preis element.value=element.value.replace(" ",""); element.value=element.value.replace(".",","); var regex1 = new RegExp("^([0-9]{1,4})[\,|\.]([0-9][0-9])$"); var regex2 = new RegExp("^([0-9]{1,4})$"); if (element.value>"" && !regex1.test(element.value) && !regex2.test(element.value)) {fehler=true; element.style.borderColor="#ff0000"; check_show_err(element,"€",m);} if (m>0 && element.value.length1) { fehler="Pole obowiązkowe, (co najmniej $ znaków)"; } else { fehler="Wymapana informacja"; } var txt=document.createTextNode(fehler.replace("$",m).replace("amp;","")); } if (typ=="select") { fehler="Pole obowiązkowe"; var txt=document.createTextNode(fehler); } if (typ=="€") { fehler="Przykład: 123,99"; var txt=document.createTextNode(fehler); } if (typ=="@") { fehler="Nie podałeś prawidłowego adresu e-mail!"; var txt=document.createTextNode(fehler); } if (typ=="Telnr") { fehler="Przykład: +49 2252 83322"; var txt=document.createTextNode(fehler); } e.appendChild(txt); element.parentNode.appendChild(e); document.getElementById(element.name+"error").className="formerror"; document.getElementById(element.name+"error").innerHTML=document.getElementById(element.name+"error").innerHTML.replace("amp;",""); } function check_remove_err(element) { if (document.getElementById(element.name+"error")) { element.parentNode.removeChild(document.getElementById(element.name+"error")); } // element.parentNode.removeChild(element.name+"error"); // document.getElementById(element.name+"error"). } function checkerrtext(element,typ,z) { a=element.parentNode.innerHTML; if (a.indexOf("inputerrortext")>-1) {return;} if (typ=="T") {b='
Wymapana informacja
'.replace("{x}",z);} // element.parentNode.innerHTML=a+b; } function addEvent( obj, type, fn ) { if (obj.addEventListener) { obj.addEventListener( type, fn, false ); } else if (obj.attachEvent) { obj["e"+type+fn] = fn; obj[type+fn] = function() { obj["e"+type+fn]( window.event ); } obj.attachEvent( "on"+type, obj[type+fn] ); } } function removeEvent( obj, type, fn ) { if (obj.removeEventListener) { obj.removeEventListener( type, fn, false ); } else if (obj.detachEvent) { obj.detachEvent( "on"+type, obj[type+fn] ); obj[type+fn] = null; obj["e"+type+fn] = null; } } function getPageSize() { var xScroll, yScroll; var scrollX, scrollY; if (window.innerHeight && window.scrollMaxY) { // z.B FF xScroll = document.body.scrollWidth; yScroll = window.innerHeight + window.scrollMaxY; scrollX = window.pageXOffset; scrollY = window.pageYOffset; } else if (document.body.scrollHeight > document.body.offsetHeight){ // z.B. IE8 xScroll = document.body.scrollWidth; yScroll = document.body.scrollHeight; scrollX = document.body.scrollLeft; scrollY = document.body.scrollTop; } else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari xScroll = document.body.offsetWidth; yScroll = document.body.offsetHeight; // scrollX = document.body.scrollWidth; // scrollY = document.body.scrollHeight; // alert("unbekannter Browser"); } var windowWidth, windowHeight; if (self.innerHeight) { // all except Explorer windowWidth = self.innerWidth; windowHeight = self.innerHeight; } else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode windowWidth = document.documentElement.clientWidth; windowHeight = document.documentElement.clientHeight; } else if (document.body) { // other Explorers windowWidth = document.body.clientWidth; windowHeight = document.body.clientHeight; } // for small pages with total height less then height of the viewport if(yScroll < windowHeight){ pageHeight = windowHeight; } else { pageHeight = yScroll; } // for small pages with total width less then width of the viewport if(xScroll < windowWidth){ pageWidth = windowWidth; } else { pageWidth = xScroll; } arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight,scrollX,scrollY) return arrayPageSize; } function setuniversalcontainer(inhalt) { // macht ein popup document.getElementById("ajaxdiv").backgroundImage="none" document.getElementById("ajaxdiv").innerHTML=inhalt arrayPageSize = getPageSize(); document.getElementById("universalcontainer").style.position="fixed"; document.getElementById("universalcontainer").style.display="block"; document.getElementById("universalcontainer").style.visibility="visible"; // document.getElementById("universalcontainer").style.left=document.getElementById("masterdiv").offsetLeft; // document.getElementById("universalcontainer").style.top=document.getElementById("masterdiv").offsetTop; // document.getElementById("universalcontainer").style.left=arrayPageSize[2]/2-document.getElementById("divumalles").offsetLeft-document.getElementById("universalcontainer").offsetWidth/2 // document.getElementById("universalcontainer").style.top=arrayPageSize[3]/2-document.getElementById("divumalles").offsetTop-document.getElementById("universalcontainer").offsetHeight/2+arrayPageSize[5] document.getElementById("universalcontainer").style.left=arrayPageSize[2]/2-document.getElementById("universalcontainer").offsetWidth/2; //+arrayPageSize[4]; document.getElementById("universalcontainer").style.top=arrayPageSize[3]/2-document.getElementById("universalcontainer").offsetHeight/2; //+arrayPageSize[5]; } function closecontainer() { // schließt ein popup wird von popups benutzt document.getElementById("universalcontainer").style.display="none"; moving=false; // damit bigview.js bescheid weiß step=0; } function loader() { // zeigt "loading" wird von popups benutzt document.getElementById("loader").style.top="0px"; } preloader=new Array("karte","de","fr","nl","uk","it","es","se","no","be","at","ch","pl","gr","pt","fi","hu","cz","hr","ie","tr","lu","lv","si","sk","ee","ro","lt","dk","bg","me","mk","al","rs","ba","by","ua","md","ru"); function correktscreenpos() { arrayPageSize = getPageSize(); // document.getElementById("topsuche").value=arrayPageSize[0]+"/"+arrayPageSize[2]+browser; if (browser=="IE") { if (arrayPageSize[2]<1004) { document.getElementById("masterdiv").style.left="-"+((1003-arrayPageSize[2])/2)+"px"; } else { document.getElementById("masterdiv").style.left="1px"; } document.getElementById("tabelleinhalt").style.height=document.body.offsetHeight-234+"px"; } if (browser=="FF") { if (arrayPageSize[2]<1019) { document.getElementById("masterdiv").style.left="-"+((1018-arrayPageSize[2])/2)+"px"; } else { document.getElementById("masterdiv").style.left="1px"; } document.getElementById("tabelleinhalt").style.height=document.body.offsetHeight+"px"; } if (browser=="Safari") { if (arrayPageSize[2]<1019) { document.getElementById("masterdiv").style.left="-"+((1018-arrayPageSize[2])/2)+"px"; } else { document.getElementById("masterdiv").style.left="1px"; } document.getElementById("tabelleinhalt").style.height=document.body.offsetHeight+"px"; } //alert(document.getElementById("tabelleinhalt").offsetHeight+"\n"+document.body.offsetHeight) // document.getElementById("tabelleinhalt").style.height=document.body.offsetHeight-234+"px"; } var maps=new Array(); function preloadkarte2() { for (i=0; i"" && a!="karte") { clearTimeout(top_timer); document.images["map"].src=maps[a].src; } } function clearmap(a) { document.images["map"].src=maps[a].src; } function download(a) { window.open("/download.php?id="+a); } function countbanner(c) { /* neuer counter */ a=new Image(); a.src="http://www.camps-in.eu/count_banner.php?banner="+c+"&nc="+Math.random(); return true; } function countcampclick(c) { /* neuer counter */ a=new Image(); a.src="http://www.camps-in.eu/count_camp.php?c="+c+"&nc="+Math.random(); return true; } function drucken() { var a=''; a=a+''; a=a+''; a=a+''; a=a+''; a=a+''; a=a+''; a=a+'
'; a=a+document.getElementById("mittelteil").innerHTML; a=a+'
'; a=a+''; a=a+''; var w=window.open(); w.document.open(); w.document.write(a); w.document.close(); } /* ajax4db */ var myajax; var funcajax; var interajax; function ajax4db(t,s,w,g,l,f) { funcajax=f; interajax=setInterval("waitforajax()",1000); var ajaxRequest; // The variable that makes Ajax possible! try{ // Opera 8.0+, Firefox, Safari ajaxRequest = new XMLHttpRequest(); } catch (e){ // Internet Explorer Browsers try{ ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try{ ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e){ // Something went wrong alert("Your browser broke!"); return false; } } } // Create a function that will receive data sent from the server ajaxRequest.onreadystatechange = function(){ if(ajaxRequest.readyState == 4){ // document.myForm.time.value = ajaxRequest.responseText; myajax=ajaxRequest.responseText; } } var queryString = "?t=" + t + "&s=" + s + "&w=" + w + "&l=" + l + "&g=" + g; ajaxRequest.open("GET", "/scripts/ajax4db.php" + queryString, true); ajaxRequest.send(null); } function waitforajax() { if (myajax>"") { eval (funcajax)(myajax); clearTimeout(interajax); } } var iconabsx=0; var iconabsy=0; function showiconpulldown(iconname,element) { if (document.getElementById("iconpulldown"+iconname).style.display=="block") { document.getElementById("iconpulldown"+iconname).style.display="none"; } else { iconabsx=-document.getElementById("divumalles").offsetLeft; iconabsy=element.offsetHeight; //-document.getElementById("masterdiv").offsetTop; getabsposiscon(element) document.getElementById("iconpulldown"+iconname).style.left=iconabsx+"px"; document.getElementById("iconpulldown"+iconname).style.top=iconabsy+"px"; document.getElementById("iconpulldown"+iconname).style.display="block"; } } function getabsposiscon(a) { iconabsx=iconabsx+a.offsetLeft; iconabsy=iconabsy+a.offsetTop; if (a.offsetParent) {getabsposiscon(a.offsetParent);} } function initcie() { // correktscreenpos(); // preloadkarte2(); enl_init(); } function tofavorits(campid) { inhalt=''; document.getElementById("universalcontainer").style.width="300px"; document.getElementById("universalcontainer").style.height="170px"; setuniversalcontainer(inhalt); } function loginpopup(gotopage,text) { if (text=="" || text=="undefined" || !text) {text="Zaloguj";} a='
'; a=a+'
'; a=a+''; a=a+''; a=a+''; a=a+''; a=a+''; a=a+''; a=a+''; a=a+''; a=a+''; a=a+''; a=a+''; a=a+'
'+text+'
Jeśli posiada Pani/Pan konto gościa, prosimy kliknąć tu:
www.kempingi-w-europie.pl
Zaloguj
Urzytkownik:
Hasło:
 
Nie masz konta?Zapomniałeś hasła?
'; a=a+'
'; a=a+'
'; setuniversalcontainer(a,true); document.poplogin.userl.focus(); }