function showClosedMessage(){ document.getElementById('indhold').style.visibility="visible"; document.getElementById('skygge').style.visibility="visible"; if(document.getElementById('c')){document.getElementById('c').style.visibility="hidden";} if(document.getElementById('R')){document.getElementById('R').style.visibility="hidden";} if(document.getElementById('PE')){document.getElementById('PE').style.visibility="hidden";} if(document.getElementById('Q51')){document.getElementById('Q51').style.visibility="hidden";} } function subcal(s) { addWindow = window.open(s,"calendar","width=203,height=140,resizable=1,status=0,menubar=0,scrollbars=0,fullscreen=0"); addWindow.focus() } function subwin(s, t, w, h) { addWindow = window.open(s,t,"width="+w+",height="+h+",resizable=1,status=1,menubar=0,scrollbars=1,fullscreen=0"); addWindow.focus() } function makeLink(f,dateField,country) { findValue = document.forms[f].elements[dateField].value.split('-') myMonth = findValue[1] myYear = findValue[2] var calname = f if (f=='camp') { subcal('/NOV/756.nsf/x/campcalendar?opendocument&dateField='+dateField+'&m='+myMonth+'&y='+myYear+'&formname='+f+'&country='+country) } else if (calname.search(/alpine/) > -1) { subcal('/NOV/756.nsf/x/calendaralpine?opendocument&dateField='+dateField+'&m='+myMonth+'&y='+myYear+'&formname='+f+'&country='+country) } else { subcal('/NOV/756.nsf/x/calendar?opendocument&dateField='+dateField+'&m='+myMonth+'&y='+myYear+'&formname='+f+'&country='+country) } } function SetIndex( indextext ) { var index; if ( navigator.appName == 'Netscape' ) { for ( var i = 0; i < document.search.R.options.length; i++ ) { if ( indextext == document.search.R.options[i].value ) { index = i } } document.search.R.options[index].selected=true; } else { document.search.R.value = indextext; } } function SetArea( indextext ) { var index; if ( navigator.appName == 'Netscape' ) { for ( var i = 0; i < document.searchalpine.R.options.length; i++ ) { if ( indextext == document.searchalpine.R.options[i].value ) { index = i } } document.searchalpine.R.options[index].selected=true; } else { document.searchalpine.R.value = indextext; } } function SetIndexRS( indextext ) { var index; if ( navigator.appName == 'Netscape' ) { for ( var i = 0; i < document.search.RS.options.length; i++ ) { if ( indextext == document.search.RS.options[i].value ) { index = i } } document.search.RS.options[index].selected=true; } else { document.search.RS.value = indextext; } } function getSelectedRadio(buttonGroup) { // returns the array number of the selected radio button or -1 if no button is selected if (buttonGroup[0]) { // if the button group is an array (one button is not an array) for (var i=0; i'); writeln('<' + 'SCRIPT LANGUAGE="VBScript">'); writeln('Sub window_onunload'); writeln(' On Error Resume Next'); writeln(' Set WB = nothing'); writeln('End Sub'); writeln('Sub vbPrintPage'); writeln(' OLECMDID_PRINT = 6'); writeln(' OLECMDEXECOPT_DONTPROMPTUSER = 2'); writeln(' OLECMDEXECOPT_PROMPTUSER = 1'); writeln(' On Error Resume Next'); writeln(' WB.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER'); writeln('End Sub'); writeln('<' + '/SCRIPT>'); } function setCookie( param, value, e ) { var expires = new Date(); expires.setTime( expires.getTime() + ((e)?e:12)*60*60*1000 ); var curCookie = param + "=" + value + ((expires) ? "; expires=" + expires.toGMTString() : "") + "; path=/"; document.cookie = curCookie; } var ref=document.referrer.indexOf("engodsag.dk"); if (ref!=-1){ setCookie ('2035002 ', '960');} function redirectAgency() { pw = prompt("Zum Zugang der Reisebüroseiten, geben Sie bitte den CRS-Kode von NOVASOL ein:","") if ((pw =="NOSO") || (pw=="noso")) { document.location.href='http://buro.novasol.de' } } function searchhouse( elm, housenumber, agency, showit ) { var elementsBeforeCheckboxes = 0 var elementsAfterCheckboxes = 1 var startDatoStr = null; for (var i = elementsBeforeCheckboxes; i < elm.elements.length-elementsAfterCheckboxes; i++) { if(elm.elements[i].type=='hidden') {continue;} if (elm.elements[i].checked) { startDatoStr = elm.elements[i].value var start = i; break; } else { startDatoStr = null; } } for (var i = start; i < elm.elements.length-elementsAfterCheckboxes; i++) { if (elm.elements[i+1].type=='checkbox') { if (!elm.elements[i+1].checked) { slutDatoStr = elm.elements[i+1].value break; } } else { slutDatoStr = elm.elements[i+1].value break; } } if ( startDatoStr == null ) { var url = "/NOV/756.nsf/"+showit+"/house?opendocument&H="+housenumber+"&S="+elm.season.value+"&PE="+elm.people.value+"&A="+agency; if ( showit == 'x' ) { subwin(url, housenumber, '750', '440'); } else { location.href = url; } } else { house( housenumber, '-1', startDatoStr, slutDatoStr, elm.people.value, elm.season.value, agency, showit) } } function house(housenumber, price, startdate, enddate, people, season, agency, showit) { var domain = ' '; var comp = 'NOV'; var lang = '756'; if (comp == 'nov') { domain = 'Http://www.novasol.dk'; } else { domain = 'Http://www.dansommer.dk'; } var url = domain + "/house.nsf/0/756NOV?opendocument&H="+housenumber+"&P="+price+"&PE="+people+"&SD="+startdate+"&ED="+enddate+"&S="+season+"&A="+agency; if ( showit == 'x' ) { subwin(url, housenumber, '760', '440'); } else { location.href = url; } } function housealpine(housenumber, price, startdate, enddate, people, season, agency, showit) { var url = "/NOV/756.nsf/"+showit+"/housealpine?opendocument&H="+housenumber+"&P="+price+"&PE="+people+"&SD="+startdate+"&ED="+enddate+"&S="+season+"&A="+agency; if ( showit == 'x' ) { subwin(url, housenumber, '760', '540'); } else { location.href = url; } } function danhouse(housenumber, price, startdate, enddate, people, season, agency, showit) { var url = "/web/ds.nsf/house?readform&Valuta=9&COMPANY=DAN&Katalognr="+housenumber+"&SEASON="+season+"&showallpic=N&stop=J"; if ( showit == 'x' ) { subwin(url, housenumber, '660', '500'); } else { location.href = url; } } function checkEmail (strng) { var error=""; if (strng == "") { error = "Sie haben keine E-Mail Adresse eingegeben"; } var emailFilter=/^.+@.+..{2,3}$/; if (!(emailFilter.test(strng))) { error = "Bitte eine gültige E-Mail Adresse ein"; } else { var illegalChars= /[()<>,;:\"[]]/ if (strng.match(illegalChars)) { error = "Die E-Mail Adresse beinhaltet illegale Zeichen"; } } return error; } function required(which) { if (which.FN.value=="") { alert ("Bitte Name eingeben"); which.FN.focus(); return false; } if (which.S.value=="") { alert ("Bitte Adresse eingeben"); which.S.focus(); return false; } if (which.STN.value=="") { alert (""); which.STN.focus(); return false; } if (which.Z.value=="") { alert ("Bitte Postleitzahl eingeben"); which.Z.focus(); return false; } if (which.ZC.value=="") { alert ("Bitte Stadt eingeben"); which.ZC.focus(); return false; } if (which.PH.value=="") { alert ("Bitte geben Sie Ihre Telefonnummer an"); which.PH.focus(); return false; } var EmailOK = checkEmail(which.E.value); if (!(EmailOK=="")) { alert (EmailOK); which.E.focus(); return false; } else return true; } function reqfields(which, fn, sn, s, z, zc, co, ph, e, wf, stn) { if (fn==1) {if (which.FN.value=="") {alert ("Bitte Name eingeben");which.FN.focus();return false;}} if (sn==1) {if (which.SN.value=="") {alert ("Bitte Name eingeben");which.SN.focus();return false;}} if (s==1) {if (which.S.value=="") {alert ("Bitte Adresse eingeben");which.S.focus();return false;}} if (stn==1) {if (which.STN.value=="") {alert ("");which.STN.focus();return false;}} if (z==1) {if (which.Z.value=="") {alert ("Bitte Postleitzahl eingeben");which.Z.focus();return false;}} if (zc==1) {if (which.ZC.value=="") {alert ("Bitte Stadt eingeben");which.ZC.focus();return false;}} if (co==1) {if (which.CO[which.CO.selectedIndex].value=='') {alert (" ");which.CO.focus();return false;} else {if (which.CO[which.CO.selectedIndex].value=='000' && which.OC.value=='') {alert (" ");which.OC.focus();return false;}} if (ph==1) {if (which.PH.value=="") {alert ("Bitte geben Sie Ihre Telefonnummer an");which.PH.focus();return false;}} if (e==1) {var EmailOK = checkEmail(which.E.value);if (!(EmailOK=="")) {alert (EmailOK);which.E.focus();return false;}else return true;}} if (wf==1) {if (which.W[which.W.selectedIndex].value=='') {alert (" ");which.W.focus();return false;}} return true; } function showhouse2( elm, housenumber, price, people, season, a, lang ) { var elementsBeforeCheckboxes = 0 var elementsAfterCheckboxes = 1 var startDatoStr = null; // Startdatoen fastlægges for (var i = elementsBeforeCheckboxes; i < elm.elements.length-elementsAfterCheckboxes; i++) { if(elm.elements[i].type=='hidden') {continue;} if (elm.elements[i].checked) { startDatoStr = elm.elements[i].value var start = i; break; } else { startDatoStr = null; } } for (var i = start; i < elm.elements.length-elementsAfterCheckboxes; i++) { if (elm.elements[i+1].type=='checkbox') { if (!elm.elements[i+1].checked) { slutDatoStr = elm.elements[i+1].value break; } } else { slutDatoStr = elm.elements[i+1].value break; } } if ( startDatoStr == null ) { // var url = "/web/nov.nsf/house?openagent&H="+housenumber+"&O=1&L=&S="+elm.season.value+"&COM="; var url = "/NOV/756.nsf/x/house?opendocument&H="+housenumber+"&O=1&S="+elm.season.value+"&A="+a; anotherwin = window.open(url, housenumber, 'width=750,height=440,toolbar=no,scrollbars=yes,resizable=yes'); anotherwin.focus; } else { showhouse( housenumber, '756', price, startDatoStr, slutDatoStr, people, 'NOV', '&A='+a) } } function showhouse1(housenumber, language, price, startdate, enddate, people, company, season) { location.href = "/"+company+"/"+language+".nsf/0/house?opendocument&H="+housenumber+"&P="+price+"&SD="+startdate+"&ED="+enddate+"&PE="+people+"&"+ "&S="+season; } function showhouse(housenumber, language, price, startdate, enddate, people, company, a) { var season = startdate.substr( startdate.lastIndexOf( '-' )+1 ); // anotherwin = window.open( "/web/nov.nsf/house?openagent&H="+housenumber+"&P="+price+"&SD="+startdate+"&ED="+enddate+"&PE="+people+"&L=756&S=" + season + "&"+login, housenumber,'width=760,height=440,toolbar=no,status=yes,scrollbars=yes,resizable=yes'); anotherwin = window.open( "/"+company+"/"+language+".nsf/x/house?opendocument&H="+housenumer+"&P="+price+"&SD="+startdate+"&ED="+enddate+"&PE="+people+"&"+ "&S=" + season + "&"+a, housenumber,'width=760,height=440,toolbar=no,status=yes,scrollbars=yes,resizable=yes'); anotherwin.focus; } function go2house(housenumber) { if ( housenumber.length == 6 ) { var url = "/NOV/756.nsf/0/house?opendocument&H="+housenumber+""; location.href = url; } else { var errDesc = "Error" alert(errDesc) } } function showMarkers(house_x, house_y, index) { // Array to hold coordinats of map cropping geocodes (map_x1,map_y1,map_x2,map_y2) var country_map_array = new Array(16); country_map_array["denmark"]= new Array(430000,6055000,747000,6440000); country_map_array["sweden"]= new Array(239444,6190000,1550556,7810000); country_map_array["norway"]= new Array(142380,6470000,1487619,8100000); country_map_array["holland"]= new Array(100000,5631904,387000,5988095); country_map_array["belgium"]= new Array(41000,5448571,325000,5791429); country_map_array["germany"]= new Array(280000,5260000,930000,6150000); country_map_array["austria"]= new Array(540000,4984444,1120000,5695556); country_map_array["hungary"]= new Array(1040000,4996667,1520000,5613333); country_map_array["poland"]= new Array(840000,5432414,1580000,6287586); country_map_array["czechrep"]= new Array(720000,5249746,1220000,5880254); country_map_array["slovakia"]= new Array(1070000,5211842,1480000,5738158); country_map_array["italy"]= new Array(300000,4080000,1340000,5320000); country_map_array["france"]= new Array(-550000,4517647,580000,5882353); country_map_array["croatia"]= new Array(850000,4706733,1300000,5253267); country_map_array["greece"]= new Array(1420000,3843636,2360000,5016364); country_map_array["spain"]= new Array(-1255859,3787594,95393,5298646); country_map_array["switzerl"]= new Array(265000,5540000,615000,5040000); // array of house-geocodes var webhouses = new Array(1); webhouses[1]= new Array(house_x,house_y); // array of country-maps var webmaps = new Array(2); for (var loop = 1; loop < webmaps.length; loop++) { if (index != undefined) {webmaps[loop]= document.getElementById("houseMap_"+ index); } else { webmaps[loop]= document.getElementById("houseMap_"+loop); } } // array of map-markers var webmarkers = new Array(2); for (var loop = 1; loop < webmarkers.length; loop++) { if (index != undefined) {webmarkers[loop]= document.getElementById("marker_"+ index); } else { webmarkers[loop]= document.getElementById("marker_"+loop); } } for (var loop = 1; loop < webmaps.length; loop++) { //get geomap coordinates geomap_coordinates = country_map_array[webmaps[loop].name]; //calculate map-size i geocodes geomap_width=(geomap_coordinates[2]-geomap_coordinates[0]); geomap_height=(geomap_coordinates[3]-geomap_coordinates[1]); // calculate number of geocodes per pixel geocodes_per_pixel_width = (geomap_width / webmaps[loop].width); geocodes_per_pixel_height = (geomap_height / webmaps[loop].height); // calculate position of marker if ((webhouses[loop][0] > 855464 & webhouses[loop][0] < 897022) & (webhouses[loop][1] > 6104899 & webhouses[loop][1] < 6152359)) { //bornholm leftmarker = ((webhouses[loop][0] - geomap_coordinates[0])/ geocodes_per_pixel_width)- 47 +"px"; topmarker = ((geomap_coordinates[3]- webhouses[loop][1])/ geocodes_per_pixel_height)- 64 +"px"; } else if ((webhouses[loop][0] < -1700000 & webhouses[loop][0] > -2200000) & (webhouses[loop][1] > 3100000 & webhouses[loop][1] < 3600000)) { //canary islands leftmarker = ((webhouses[loop][0] - geomap_coordinates[0])/ geocodes_per_pixel_width)+ 67 +"px"; topmarker = ((geomap_coordinates[3]- webhouses[loop][1])/ geocodes_per_pixel_height)- 47 +"px"; } else { leftmarker = ((webhouses[loop][0] - geomap_coordinates[0])/ geocodes_per_pixel_width)- 3 +"px"; topmarker = ((geomap_coordinates[3]- webhouses[loop][1])/ geocodes_per_pixel_height)- 3 +"px"; } //place marker on maplayer, and make in visible webmarkers[loop].style.left = leftmarker; webmarkers[loop].style.top = topmarker; webmarkers[loop].style.visibility = "visible"; } } function showMarker(house_x,house_y) { // Array to hold coordinats of map cropping geocodes (map_x1,map_y1,map_x2,map_y2) var country_map_array = new Array(16); country_map_array["denmark"]= new Array(430000,6055000,747000,6440000); country_map_array["sweden"]= new Array(600000,6160000,1190000,7790000); country_map_array["norway"]= new Array(250000,6470000,1380000,8100000); country_map_array["holland"]= new Array(100000,5640000,387000,5980000); country_map_array["belgium"]= new Array(41000,5500000,325000,5740000); country_map_array["germany"]= new Array(280000,5260000,930000,6150000); country_map_array["austria"]= new Array(540000,5180000,1120000,5500000); country_map_array["hungary"]= new Array(1040000,5120000,1520000,5490000); country_map_array["poland"]= new Array(840000,5550000,1580000,6170000); country_map_array["czechrep"]= new Array(720000,5410000,1220000,5720000); country_map_array["slovakia"]= new Array(1070000,5350000,1480000,5600000); country_map_array["italy"]= new Array(300000,4080000,1340000,5320000); country_map_array["france"]= new Array(-550000,4620000,580000,5780000); country_map_array["croatia"]= new Array(850000,4750000,1300000,5210000); country_map_array["greece"]= new Array(1420000,4000000,2360000,4860000); country_map_array["spain"]= new Array(-1255859,3976475,95393,5109764); country_map_array["switzerl"]= new Array(265000,5540000,615000,5040000); // array of house-geocodes var webhouses = new Array(1); webhouses[1]= new Array(house_x,house_y); // array of country-maps var webmaps = new Array(2); for (var loop = 1; loop < webmaps.length; loop++) { webmaps[loop]= document.getElementById("houseMap_"+loop); } // array of map-markers var webmarkers = new Array(2); for (var loop = 1; loop < webmarkers.length; loop++) { webmarkers[loop]= document.getElementById("marker_"+loop); } for (var loop = 1; loop < webmaps.length; loop++) { //get geomap coordinates geomap_coordinates = country_map_array[webmaps[loop].name]; //calculate map-size i geocodes geomap_width=(geomap_coordinates[2]-geomap_coordinates[0]); geomap_height=(geomap_coordinates[3]-geomap_coordinates[1]); // calculate number of geocodes per pixel geocodes_per_pixel_width = (geomap_width / webmaps[loop].width); geocodes_per_pixel_height = (geomap_height / webmaps[loop].height); // calculate position of marker if ((webhouses[loop][0] > 855464 & webhouses[loop][0] < 897022) & (webhouses[loop][1] > 6104899 & webhouses[loop][1] < 6152359)) { //bornholm leftmarker = ((webhouses[loop][0] - geomap_coordinates[0])/ geocodes_per_pixel_width)- 47 +"px"; topmarker = ((geomap_coordinates[3]- webhouses[loop][1])/ geocodes_per_pixel_height)- 64 +"px"; } else if ((webhouses[loop][0] < -1700000 & webhouses[loop][0] > -2200000) & (webhouses[loop][1] > 3100000 & webhouses[loop][1] < 3600000)) { //canary islands leftmarker = ((webhouses[loop][0] - geomap_coordinates[0])/ geocodes_per_pixel_width)+ 67 +"px"; topmarker = ((geomap_coordinates[3]- webhouses[loop][1])/ geocodes_per_pixel_height)- 47 +"px"; } else { leftmarker = ((webhouses[loop][0] - geomap_coordinates[0])/ geocodes_per_pixel_width)- 3 +"px"; topmarker = ((geomap_coordinates[3]- webhouses[loop][1])/ geocodes_per_pixel_height)- 3 +"px"; } //place marker on maplayer, and make in visible webmarkers[loop].style.left = leftmarker; webmarkers[loop].style.top = topmarker; webmarkers[loop].style.visibility = "visible"; } } function SelectCountry(Country) { window.location.href = "/nov/756.nsf/0/" + Country + "searchalpine?OpenDocument"; } function chgs(c,s){ var URLString = location.href; oldValue = "S=" + c; newValue = "S=" + s; if (URLString.indexOf(oldValue) > 0){ URLString = URLString.replace(oldValue, newValue);} else { URLString = location.href + "&" + newValue;} location.replace(URLString); } function check_gb_form() { var error_message = ''; if (document.gb_form.gb_email.value=="") { error_message +='Email \n'; ; } if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.gb_form.gb_email.value)==false) { error_message += 'eine korrekte E-mail Adresse'; } if(error_message !=''){ error_message = 'Bitte angeben:\n' + error_message; alert(error_message); return false; } return true; }; function openSitemapWindow(URL) { sitemapWin=window.open(URL,'sitemap','width=815,height=600,directories=no,status=yes,scrollbars=yes,resizable=no,menubar=no,toolbar=no'); } function VisHusPopup(URL) { w = window.open(URL,"",'width=650,height=500,directories=no,status=yes,scrollbars=yes,resizable=yes,menubar=yes,toolbar=no'); } function openWindow(URL) { window.open(URL,"",'width=580,height=460,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=yes,toolbar=no'); }