
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<buttonGroup.length; i++) {
         if (buttonGroup[i].checked) {
            return i
         }
      }
   } else {
      if (buttonGroup.checked) { return 0; }
   }
   return -1;
}
function validateStartDate( theform )
{
 var s1 = theform.SD.value.indexOf( '-' );
 var s2 = theform.SD.value.lastIndexOf( '-' );
 var e1 = theform.ED.value.indexOf( '-' );
 var e2 = theform.ED.value.lastIndexOf( '-' );
 var sy = Math.abs(theform.SD.value.substr(s2+1,s2+5));
 var sm = Math.abs(theform.SD.value.substring(s1+1,s2));
 var sd = Math.abs(theform.SD.value.substr(0,s1));
 var ey = Math.abs(theform.ED.value.substr(e2+1,e2+5));
 var em = Math.abs(theform.ED.value.substring(e1+1,e2));
 var ed = Math.abs(theform.ED.value.substr(0,e1));
 var temp = new Date( sy, sm-1, sd+7);
   //  Netscape JS fix
 var zY = temp.getYear() < 1999 ? temp.getYear() + 1900 : temp.getYear();
 theform.ED.value = temp.getDate() + "-" + eval(temp.getMonth()+1) + "-" + zY;   
}
var da = (document.all) ? 1 : 0;
var pr = (window.print) ? 1 : 0;
var mac = (navigator.userAgent.indexOf("Mac") != -1); 
function printPage() {
 if (pr) // NS4, IE5
  window.print()
 else if (da && !mac) // IE4 (Windows)
  vbPrintPage()
}
if (da && !pr && !mac) with (document) {
 writeln('<OBJECT ID="WB" WIDTH="0" HEIGHT="0" CLASSID="clsid:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>');
 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 url = "/NOV/756.nsf/"+showit+"/house?opendocument&H="+housenumber+"&P="+price+"&PE="+people+"&SD="+startdate+"&ED="+enddate+"&S="+season+"&A="+agency;
if ( showit == 'x' )
{
url = url + "&_xview"; 
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=<Computed Value>&S="+elm.season.value+"&COM=<Computed Value>";
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 nmtrack() {
   function getElementsByClass(searchClass,node,tag) { var classElements = new Array(); if ( node == null ) node = document; if ( tag == null ) tag = '*'; var els = node.getElementsByTagName(tag); var elsLen = els.length; var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)"); for (i = 0, j = 0; i < elsLen; i++) { if ( pattern.test(els[i].className) ) { classElements[j] = els[i]; j++; }} return classElements;}
   function getInnerText(el) { if (!el) return ""; var txt = ""; for (var i=0; i<el.childNodes.length; i++) { switch (el.childNodes.item(i).nodeType) { case 1: txt += getInnerText(el.childNodes.item(i)); break; case 3: txt += el.childNodes.item(i).nodeValue; break; } } return txt; }
   function trim(str){ return str.replace(/^[\s\xA0]+|[\s\xA0]+$/g, '');}

   try{
   var cid = 'novasol';
   var nm_title = ''; 
   if(nm_title == '') {

      var bc = [];
      var navPathArea = document.getElementById('navPathArea');
      var cl = getElementsByClass('currentLocation');
      if(navPathArea != null) {
         var links = navPathArea.getElementsByTagName('a');
         for(var i = 0; i <links.length; i++)
            bc[bc.length] = links[i].innerHTML;

         var currentLocation = navPathArea.getElementsByTagName('span');
         bc[bc.length] = currentLocation[currentLocation.length-1].innerHTML;
      } else if(cl.length > 0) {

         bc = getInnerText(bc[0]).split(' > ');
      } else if(new String(document.location).indexOf('/booking') != -1) {
      
         bc[bc.length] = 'Home'; bc[bc.length] = 'Booking';
         var step = getElementsByClass('BOKSTPsteptable');
         var active = step[0].getElementsByTagName('b')[0].parentNode.parentNode.getElementsByTagName('img')[0].alt;
         bc[bc.length] = 'Step ' + active;
      }

      var bc2 = []; for(var i = 1; i < bc.length; i++) bc2[bc2.length] = trim(bc[i]); nm_title = bc2.join(' > ');
   }
   var loc=new String(window.document.location);var loc2=loc;try{var toploc=new String(top.document.location);loc2=toploc.indexOf('nm_extag')!=-1?toploc:loc2;}catch(e){} if(nm_title=='')nm_title=document.title;
   var ref = ''; var c = document.cookie; 
   if( c.indexOf('nm_exref')!=-1 ){var ca = c.split(';');for( i = 0; i < c.length; i++ ){var item = new String(ca[i]);var idx = item.indexOf('nm_exref');if( idx!=-1 )ref = new String(item.substr( idx+9 ));}document.cookie='nm_exref=';}
   if( ref == '' ){ ref=document.referrer;try{ref=top.document.referrer;}catch(e){}}
   var begext=loc2.indexOf('nm_extag='); var ext='';if( begext!=-1){ begext+=9;var endext=loc2.indexOf('&',begext); ext=endext==-1?loc2.substr(begext):loc2.substr(begext,endext-begext); ext=encodeURIComponent(ext);}
   nm_title=encodeURIComponent(nm_title);loc=encodeURIComponent(loc);ref=encodeURIComponent(ref);ext=encodeURIComponent(ext);
   if(nm_title.length>250)nm_title=nm_title.slice(0,246)+'...';if(loc.length>800)loc=loc.slice(0,796)+'...';if(ref.length>800)ref=ref.slice(0,796)+'...';
   var script = document.createElement('SCRIPT');
   script.language = 'javascript';
   script.src = 'http'+(document.location.protocol=='https:'?'s':'')+'://'+cid+'.netminers.dk/tracker/dispatch.aspx?action=log'+'&n='+Math.random()+'&nav='+loc+'&cid='+cid+(ref.length>0?('&ref='+ref):'') +'&ti1='+nm_title+'&ext='+ext;
   document.getElementsByTagName('body')[0].appendChild( script );
   }catch(e){}
}