//script voor google analytics
document.write('<' + 'script');
document.write(' language="javascript"');
document.write(' type="text/javascript"');
document.write(' src="http://www.google-analytics.com/urchin.js">');
document.write('</' + 'script' + '>');

var window_height = 0;
var IE = document.all?true:false
document.onmousemove = getMouseXY;
var show_hidden = 0;
var body 		= top.document.body;
var div 		= new Array();

var tempX = 0
var tempY = 0
var popup = 0
var loaded = 0;

var Bestemmingen = {
	_current: 0 ,
	_count: 0 ,
	_items: [] ,
	_id: 0,
	show_item: function(item)
	{
		var current = item - 1;
		this._current = current;
		var old = item - 2;
		end_marker = parseFloat(this._items.length) -  parseFloat(this._count) - 1;
		if(old == end_marker){
		document.getElementById('next').style.display = 'none';
		}else{
		document.getElementById('next').style.display = '';
		}
		if(item > 1){
		document.getElementById('back').style.display = '';
		}else{
		document.getElementById('back').style.display = 'none';
		}
		for(i=0;i<=this.items;i++){
			if(document.getElementById('best_'+i)){
				nr = item - 1;
				if(i == nr){
				document.getElementById('best_'+i).src='/images/home/on_page.gif';
				}else{
				document.getElementById('best_'+i).src='/images/home/page.gif';
				}
			}
		this.hide( i );
		}
		start 	= parseFloat(item) - 1;
		end 	= start + 2;
		for(i=start;i<=end;i++){
		this.show( i );
		}
	},
	next: function(index)
	{
		document.getElementById('back').style.display = '';
		if( this._current + this._count >= this._items.length ) {
			return;
		}
		var old = this._current;
		this._current++;

		end_marker = parseFloat(this._items.length) -  parseFloat(this._count) - 1;
		if(old == end_marker){
		document.getElementById('next').style.display = 'none';
		}

		document.getElementById('best_'+old).src='/images/home/page.gif';
		document.getElementById('best_'+this._current).src='/images/home/on_page.gif';
		this.hide( old );
		this.show( this._current + this._count - 1 );
	} ,
	back: function(index)
	{
		if( this._current <= 0 ) {
			return;
		}
		var old = this._current;
		this._current--;

		start_marker = (parseFloat(this._count) + 1);
		if(old + this._count == start_marker){
		document.getElementById('back').style.display = 'none';
		}
		document.getElementById('next').style.display = '';

		document.getElementById('best_'+old).src='/images/home/page.gif';
		document.getElementById('best_'+this._current).src='/images/home/on_page.gif';
		this.hide( old + this._count - 1 );
		this.show( this._current );
	} ,
	hide: function( index )
	{
		if( index < 0 ) {
			index = this._items.length + index;
		}
		if( this._items[index] )
			document.getElementById( this._items[index] ).style.display='none';
	} ,
	show: function( index )
	{
		if( index < 0 ) {
			index = this._items.length + index;
		}
		if( this._items[index] )
			document.getElementById( this._items[index] ).style.display='';
	} ,
	initialize: function(rows , count , items )
	{
		if(document.getElementById('back')){
		document.getElementById('back').style.display = 'none';
		}
		row_tot = parseFloat(rows) * parseFloat(count);
		id_tot  = parseFloat(items.length) * parseFloat(count);
		if(id_tot <= row_tot){
			if(document.getElementById('next')){
			document.getElementById('next').style.display = 'none';
			}
		}
		for( var i = 0 , n = items.length ; i < n ; i++ ) {
			this._items.push( items[i] );
			if( i >= count ) {
				this.hide( i );
			}
		}
		if(document.getElementById('best_0')){
		document.getElementById('best_0').src='/images/home/on_page.gif';
		}
		this.items 	  = i;
		this._count   = count;
		this._current = 0;
	}
};
var interval = "";
var Info_interval = setInterval('run_goto_item()',6000);
var TimeOut = "";
//window.onload = loading;
function loading(){
	try{
		if(top.document.getElementById('site_part')){
			if(top.document.getElementById('site_part').value.indexOf('index.php') != '-1'){
			var timeout 	  = setTimeout('hide_index_menu()',10000);
			}else{
			hide_index_menu();
			}
		}
	} catch( exception ) {	}
	if(document.getElementById('teller')){
		if((document.getElementById('teller').value - 1) == 0) {
			document.getElementById("home_back").style.display = 'none';
			document.getElementById("home_next").style.display = 'none';
		}
	}
	if(document.getElementById('SI')){ // SI staat voor show info
		var SI = document.getElementById('SI').value;
		if(SI != ''){
			show_iframe();
			if(document.getElementById('deel').value == 'auto'){
			parent.resultaat.location.href='/phpscripts/unitext_display_auto/index.php?inethotelinfo='+SI;
			}else{
			parent.resultaat.location.href='/phpscripts/unitext_display/index.php?inethotelinfo='+SI;
			}
		}
	}
	try{
		if(top.document.getElementById('error')){
			if(top.document.getElementById('error').value != '' && typeof(top.document.getElementById('error').value) != 'undefined'){
			setTimeout("SetGlobalError(top.document.getElementById('error').value,'3')",'100');
			}
		}
	} catch( exception ) {	}
}
function show_index_menu()
{
//	vroeger top.document
	if(document.getElementById('menu_index')){
	document.getElementById('menu_index').style.zIndex = '99';
	document.getElementById('menu_index').style.display = '';
	clearTimeout(TimeOut);
	}
}
function hide_index_menu()
{
	TimeOut = setTimeout('hide_index_menu_info()',500);
}
function hide_index_menu_info()
{
	if(document.getElementById('menu_index')){
	document.getElementById('menu_index').style.display = 'none';
	}
}
function back()
{
	interval = setInterval('Bestemmingen.back()',500);
}
function next()
{
	interval = setInterval('Bestemmingen.next()',500);
}
function Cinterval()
{
	clearInterval(interval);
}
function change_pic_jpg(el)
{
	var name 			= el.src;
	var arr_name 		= name.split("/");
	var arrlen  		= arr_name.length - 1;
	var arr_pic_name	= arr_name[arrlen].split("\.");
	var arr_what		= arr_pic_name[0].split("_");
	var arrWlen 		= arr_what.length - 1;
	var pic_name 		= arr_pic_name[0];
	if(arr_what[arrWlen] == 'h') {
		var new_name 	= arr_pic_name[0].replace("_h","",pic_name);
	}else{
		var new_name 	= arr_pic_name[0].replace(arr_what[arrWlen],arr_what[arrWlen]+"_h");
	}
	var picture  		= name.replace(pic_name,new_name);
	el.src		= picture;
}
function run_goto_item()
{
	try{
	if(document.getElementById('site_part')){
		if(document.getElementById('site_part').value.indexOf('/redactie/') == '-1'){
			if(document.getElementById('item')){
			var item = document.getElementById('item').value;
				if(item == ''){
					item = 1;
				}
			goto_item(item);
			}
		}
	}
	}catch(excp){}
}
function home_but_dropdown(item)
{
	clearInterval(Info_interval);
	goto_item(item);
	show_info(item);
}
function home_but(item)
{
	opacity = 100;
	clearInterval(Info_interval);
	goto_item(item);
	document.getElementById("home_back").onclick 	= '';
	document.getElementById("home_next").onclick 	= '';
}
function home_all()
{
	var homeCount 	= document.getElementById('teller').value;
	var homeInfo 	= document.getElementById('picture');
	var div			= new Array();
	var img			= new Array();
	var Twidth		= 800;
	var Theight		= 300;
	if(homeCount <= 4){
		var Pwidth		= 250;
		var Pheight		= 76;
		if(homeCount <= 2){
		var Ptop		= 47;
		}else if(homeCount <= 4){
		var Ptop		= 0;
		}
	}else{
		var Pwidth		= Twidth/homeCount;
		var Pheight		= Theight/homeCount;
		var Ptop		= 20;
	}
	try{
	show_info();
	}catch(expc){}
	clearInterval(Info_interval);
	for(i=0;i<homeCount;i++){
		if(document.getElementById(i)){
			homeInfo.removeChild(document.getElementById(i));
		}
		if(show_all == 0){
		document.getElementById('picture_'+i).style.display = 'none';
		div[i] 					= document.createElement("div");
		div[i].style.position 	= "relative";
		div[i].style.top		= Ptop;
		div[i].style.left		= "30";
		div[i].style.styleFloat	= "left";
		div[i].style.cssFloat	= "left";
		div[i].style.paddingLeft= "10";
		div[i].style.paddingTop = "10";
		div[i].id				= i;
		div[i].onclick			= function(){document.getElementById('picture').style.display = 'none';fade_item(this.id,'');show_info(this.id);show_all = 0;};
		div[i].onmouseover		= function(){LogoInfo(document.getElementById('titel_'+this.id).value,"Info","","200");};
		div[i].onmouseout		= function(){document.getElementById('logo_info').style.visibility='hidden';};
		img[i]					= document.createElement("img");
		img[i].src 				= document.getElementById('picture_'+i).style.background.replace("url(","").replace(")","").replace("transparent ","").replace(" repeat","").replace(" 0%","").replace(" 0%","").replace(" scroll","");
		img[i].width			= Pwidth;
		img[i].height			= Pheight;
		div[i].appendChild(img[i]);
		homeInfo.appendChild(div[i]);
		}
	}
	if(show_all == 0){
		document.getElementById('picture').style.display = '';
		show_all = 1;
	}else{
		fade_item(0,'');
		Info_interval = setInterval('run_goto_item()',6000);
		show_all = 0;
	}
}

var show_all	= 0;
var opacity 	= 100;
var old_item 	= 0;
var cur 	= "";
var prev 	= "";
var back	= "";
var next	= "";
function fading(cur,prev)
{
	opacity 							= opacity - 5;
	var mozOp							= (opacity / 100);
	document.getElementById("picture_"+prev).style.filter 	= "alpha(style=0,opacity=" + opacity + ")";
	document.getElementById("picture_"+prev).style.MozOpacity= mozOp;
	if(opacity == 0){
		document.getElementById("picture_"+prev).style.display = 'none';
		var jh_titel 						= document.getElementById("titel_"+cur).value;
		document.getElementById("JH_TITLE").innerHTML 	= jh_titel;
		document.getElementById("pic_"+prev).src 		= '/images/home/page.gif';
		document.getElementById("pic2_"+prev).src 		= '/images/home/page.gif';
		document.getElementById("pic_"+cur).src 		= '/images/home/on_page.gif';
		document.getElementById("pic2_"+cur).src 		= '/images/home/on_page.gif';
		if(document.getElementById('home_info_div')){
		var body						= document.body;
		var div 						= document.getElementById('home_info_div');
		body.removeChild(div);
		show_info(cur);
		}
		document.getElementById("home_back").onclick = function(){home_but(back)};
		document.getElementById("home_next").onclick = function(){home_but(next)};
		clearInterval(fading_img);
	}
}
function fade_item(cur,prev)
{
	if(typeof(prev) != 'string'){
	document.getElementById("picture_"+prev).style.zIndex 	= 2;
	}
	document.getElementById("picture_"+cur).style.zIndex 	= 1;
	if(typeof(prev) != 'string'){
	document.getElementById("picture_"+prev).style.display 	= '';
	}
	document.getElementById("picture_"+cur).style.display 	= '';
	if(typeof(prev) != 'string'){
	document.getElementById("picture_"+prev).style.filter 	= "alpha(style=0,opacity=100)";
	}
	document.getElementById("picture_"+cur).style.filter 	= "alpha(style=0,opacity=100)";
	if(typeof(prev) != 'string'){
	document.getElementById("picture_"+prev).style.MozOpacity= 1;
	}
	document.getElementById("picture_"+cur).style.MozOpacity 	= 1;
	opacity = 100;
	if(typeof(prev) != 'string'){
	fading_img = setInterval('fading('+cur+','+prev+')',50);
	}
	
}
function goto_item(item)
{
	var aantal 	= document.getElementById('teller').value - 1;
	var aantalP 	= document.getElementById('teller').value;
	if(aantal > 0) {
		for(i=0;i<=aantal;i++) {
			if(i==item) {
				cur 	= item;
				prev 	= old_item;
				fade_item(cur,prev);
			} else {
			}
		}
		var page = parseFloat(item) + 1;
		back = parseFloat(item) - 1;

		if(back < 0) {
			back = aantal;
		}
		next = parseFloat(item) + 1;
		if(next > aantal) {
			next = 0;
		}
	}
	document.getElementById("home_back").onclick = function(){home_but(back)};
	document.getElementById("home_next").onclick = function(){home_but(next)};
	document.getElementById('item').value = next;
	old_item = item;
}
function show_info(id)
{
	var link	= document.getElementById('link_'+id).value;
	if(link != ''){
		var target	= document.getElementById('target_'+id).value;
		if(target.indexOf("self")){
		location.href = link;
		}else{
		window.open(link,'link');	
		}
	}
	
	
//	alert("test");
//	if(!loaded) return;
//	
//	if(document.getElementById('home_info_div')){
//		if(document.getElementById('vlieg_best')){
//			document.getElementById('vlieg_best').style.display='';
//		}	
//	var body	= document.body;
//	var div 	= document.getElementById('home_info_div');
//	body.removeChild(div);
//	Info_interval = setInterval('run_goto_item()',6000);
//	}else{
//			if(document.getElementById('vlieg_best')){
//				document.getElementById('vlieg_best').style.display='none';
//			}
//			clearInterval(Info_interval);
//			var spic 	= document.getElementById('spic_'+id).value;
//			var titel 	= document.getElementById('titel_'+id).value;
//			var tekst 	= document.getElementById('tekst_'+id).value;
//			var linkname= document.getElementById('linkname_'+id).value;
//			var link	= document.getElementById('link_'+id).value;
//			var target	= document.getElementById('target_'+id).value;
//			var ahref  	= "<span style='position:relative;bottom:5px;right:5px'><a href='"+link+"' class='st' target='"+target+"' class='bmt'><u class='bmt'>"+linkname+"</u></a></span>";
//			tekst 		= tekst + "<p>" + ahref;
//			var body	= document.body;
//
//			var div 	= document.createElement("div");
//				div.style.position 		= 'absolute';
//				div.style.Minheight 	= '185px';
//				div.style._height 		= '185px';
//				div.style.width 		= '600px';
//				div.style.top 			= '347px';
//				div.style.left 			= '50%';
//				div.style.marginLeft	= '-400px';
//				div.style.display		= 'none';
//				div.style.border		= '1px solid #E13227';
//				div.className			= 'white';
//				div.id					= 'home_info_div';
//				div.style.cursor		= 'pointer';
//				div.style.zIndex		= '105';
//				div.ondblclick=function(){
//					show_info('');
//				};
//			var div_min	= document.createElement("div");
//				div_min.style.position 		= 'absolute';
//				div_min.style.height 		= '15px';
//				div_min.style.width 		= '15px';
//				div_min.style.top 			= '5px';
//				div_min.style.right			= '1px';
//			var divmPic	= document.createElement("img");
//				divmPic.src			= '/images/home/div_min.gif';
//				divmPic.onmouseover=function(){
//					change_pic_jpg(this);
//				}
//				divmPic.onmouseout=function(){
//					change_pic_jpg(this);
//				}
//				divmPic.onclick=function(){
//					show_info('');
//				};
//			var domPic	= document.createElement("img");
//				domPic.src			= '/images/home/'+spic;
//				domPic.align			= 'left';
//
//			var div_m	= document.createElement("div");
//				div_m	.className		= 'item_header';
//			var div_t	= document.createElement("div");
//				div_t.style.verticalAlign 	= 'top';
//				div_t.style.paddingLeft		= '5px';
//			var div_text	= document.createElement("div");
//			div_text.style.textAlign		= 'left';
//			
//			var domTitel= document.createTextNode(titel);
//			var br		= document.createElement("br");
//			var domTekst= document.createTextNode(tekst);
//
//			div.appendChild( div_m );
//			div_m.appendChild(domTitel);
//			div.appendChild( div_min );
//			div_min.appendChild( divmPic );
//			div.appendChild( div_t );
//			if(spic != ''){
//			div_t.appendChild( domPic );
//			}
//			div_t.appendChild( div_text );
//			div_text.innerHTML = tekst;
//			body.appendChild(div);
//			document.getElementById('home_info_div').style.display='';
//	}
}
function show_meteo_info(info,id)
{
	if(info != ''){
	var el_arr 	= document.getElementById('left_'+id);
	var elem 	= document.getElementById('weatherInfo');
	document.getElementById('meteo_arrow').style.display 	= '';
	document.getElementById('meteo_arrow').style.top 		= (elem.offsetTop - 13);
	document.getElementById('meteo_arrow').style.left 		= (el_arr.offsetLeft + 35);
	document.getElementById('weatherInfo').innerHTML	 	= info;
	}else{
	document.getElementById('meteo_arrow').style.display 	= 'none';
	document.getElementById('weatherInfo').innerHTML	 	= info;
	}
}
function resizeCaller() {
var dyniframe=new Array()
	if(typeof(iframeids) != 'undefined'){
		for (i=0; i<iframeids.length; i++){
			if (document.getElementById(iframeids[i])){
			try{
			resizeIframe(iframeids[i]);
			}catch(excp){}
				//reveal iframe for lower end browsers? (see var above):
				if ((document.all || document.getElementById) && iframehide=="no"){
				var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i]);
				tempobj.style.display="block";
				}
			}
		}
	}
}
function resizeIframe(frameid){
var currentfr	=document.getElementById(frameid)
var bookfr	=document.getElementById('main_booking')
var mainfr	=document.getElementById('main_div')
	if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight){ //ns6 syntax
//		if(currentfr.contentDocument.body.offsetHeight+FFextraHeight < 700 && currentfr.contentDocument.body.offsetHeight+FFextraHeight > 600){
//		currentfr.style.height 	=  1550;
//		bookfr.style.height 	= 700;
//		mainfr.style.height 	= 750;
//		window_height    	= 700;
//		}else if(currentfr.contentDocument.body.offsetHeight+FFextraHeight < 100){
//		document.getElementById('main').style.height = 700;
//		bookfr.style.height 	= document.body.scrollHeight ;
//		mainfr.style.height 	= document.body.scrollHeight ;
//		window_height    	= document.body.scrollHeight ;
//		}else{
		currentfr.height 	= parseFloat(currentfr.contentDocument.body.scrollHeight+FFextraHeight) + 50;
		bookfr.style.height 	= currentfr.height;
		if(mainfr){
		mainfr.style.height 	= parseFloat(currentfr.height) + 50;
		}
//		window_height	 	= currentfr.contentDocument.body.offsetHeight+FFextraHeight;
//		}
	}else if (currentfr.Document && currentfr.Document.body.offsetHeight){ //ie5+ syntax
		if(currentfr.Document.body.scrollHeight < 700){
		currentfr.style.height 	= 700;
		bookfr.style.height 	= 700;
		if(mainfr){
		mainfr.style.height 	= 750;
		}
		window_height	 	= 700;
		}else{
		currentfr.style.height  = 620;	
		currentfr.style.height 	= currentfr.Document.body.scrollHeight;
		bookfr.style.height 	= currentfr.height;
		mainfr.style.height 	= parseFloat(currentfr.style.height) + 35;
		window_height	 	= currentfr.Document.body.scrollHeight;
		}
	}else{
		try{
			if(currentfr.contentDocument.body.offsetHeight+FFextraHeight < 700 && currentfr.contentDocument.body.offsetHeight+FFextraHeight > 600){
			currentfr.height 	= 700;
			bookfr.style.height 	= 700;
			if(mainfr){
			mainfr.style.height 	= 750;
			}
			window_height    	= 700;
			}else if(currentfr.contentDocument.body.offsetHeight+FFextraHeight < 100){
			document.getElementById('main').style.height = parseFloat(document.body.scrollHeight) - 150 ;
			bookfr.style.height 	= document.body.scrollHeight ;
			if(mainfr){
			mainfr.style.height 	= document.body.scrollHeight ;
			}
			window_height    	= parseFloat(document.body.scrollHeight) - 150 ;
			}else{
			currentfr.height 	= parseFloat(currentfr.contentDocument.body.offsetHeight+FFextraHeight) + 50;
			bookfr.style.height 	= currentfr.height;
			if(mainfr){
			mainfr.style.height 	= parseFloat(currentfr.height) + 50;
			}
			window_height	 	= currentfr.contentDocument.body.offsetHeight+FFextraHeight;
			}
		}catch(excp){
		}
	}
	if (currentfr.addEventListener)
		currentfr.addEventListener("load", readjustIframe, false)
	else if (currentfr.attachEvent){
		currentfr.detachEvent("onload", readjustIframe) // Bug fix line
		currentfr.attachEvent("onload", readjustIframe)
	}
	if(top.document){if(top.document.getElementById('error_div')){top.document.getElementById('error_div').style.height = parseFloat(currentfr.height) + 232;}}
}
function readjustIframe(loadevt) {
	var crossevt=(window.event)? event : loadevt
	var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
	if (iframeroot) resizeIframe(iframeroot.id);
}
function loadintoIframe(iframeid, url){
	if (document.getElementById)
	document.getElementById(iframeid).src=url
}
if(window.name == 'Hotelinfo')
{
	if(document.getElementById('last_td')) document.getElementById('last_td').style.height='200';
}
function openwindow()
{
	location.href='index.php?inethotelinfo=<?=$inethotelinfo?> X&boek=<?=$boek?>&gal=1<?=$vr_add2?>&jil=<?=$jil?>';
}
function change_back() {
}
function change_pic(picture,omschrijving,foto,dir,sync)
{
	if(document.getElementById('foto').style.backgroundImage){document.getElementById('foto').style.backgroundImage = 'url("' + picture + '")';}else{document.getElementById('foto').src = picture;}
	document.form_addTocart.dir.value= dir;
	document.form_addTocart.picture.value = foto;
	document.form_addTocart.sync.value = sync;
	document.getElementById('omschrijving').value = omschrijving;
}
function openpicture(dir,picture,omschr) {
	myFeatures = "titlebar=no,toolbar=no,resizeable=no,status=no,scrollbars=no";
	url = "/phpscripts/glob_foto.php?dir=";
	url += dir;
	url += "&foto=";
	url += picture;
	url += ".JPG";
	url += "&omschrijving=";
	url += omschr;
	window.open(url,'foto',myFeatures);
}
function add_hotel(code)
{
document.form_addTocart.add_item.value = '1';
document.form_addTocart.code_add.value = code;
document.form_addTocart.submit();
}
function popUpBrochure(URL)
{
		window.open(URL, 'Virtuele_Brochure','width=800,height=600,top=10,left=10,scrollbars=yes,statusbar=no');
}
function item_close(what)
{
	eval("document.getElementById('"+what+"').style.visibility='hidden';");
}
function LogoInfo(info,logo,what,width)
{
	if(!loaded) return;
	if(typeof(width) == "undefined"){var width = '500';}
	if(what == ''){what = 0;}
	if(info != ''){
		var obody	= top.document.body;
		var innerW 	= top.document.body.offsetWidth;
		if(innerW > 1024){
		var innerW 	= 1024;
		}
		if(top.document.getElementById('logo_info')){
		var div	= top.document.getElementById('logo_info');
		obody.removeChild(div);
		}
		var div 	= top.document.createElement("div");
			div.id	= 'logo_info';
			div.style.position = 'absolute';
			div.style.zIndex = '5';
			div.className = 'info_button';
		if(logo != '' && ((logo.indexOf(".gif") != '-1') || (logo.indexOf(".jpg") != '-1'))){
		var divPic	= top.document.createElement("img");
			divPic.src			= logo;
			divPic.align		= 'left';
		}else if(logo != ''){
		var divSpan = top.document.createElement("b");
			divSpan.className = 'bmt';
		var divBr = top.document.createElement("br");
		var divPic	= top.document.createTextNode(logo+" ");
		}

		arr_info = info.split("<br>");
		arr_infoL= arr_info.length;

		var divinfo = new Array();
		var divinfo1 = new Array();

		for(i=0;i<arr_infoL;i++){
			divinfo[i] 	= top.document.createTextNode(arr_info[i]);
			divinfo1[i] = top.document.createElement('br');
		}

		if(logo != '' && ((logo.indexOf(".gif") != '-1') || (logo.indexOf(".jpg") != '-1'))){
		div.appendChild( divPic );
		}else if(logo != ''){
		div.appendChild( divSpan );
		div.appendChild( divBr );
		divSpan.appendChild( divPic );
		}
		for(i=0;i<arr_infoL;i++){
		div.appendChild( divinfo[i] );
		div.appendChild( divinfo1[i] );
		}

		obody.appendChild(div);
		if(what == 'TC'){
		top.document.getElementById('logo_info').style.Zindex = "100";  // from top
		top.document.getElementById('logo_info').style.top = parseFloat(tempY) + 200;  // from top
		top.document.getElementById('logo_info').style.left = parseFloat(tempX) + 20; // from left
		top.document.getElementById('logo_info').style.width = width;
		}else if(what == 'TT'){
		top.document.getElementById('logo_info').style.top = parseFloat(tempY) - 180;  // from top
		top.document.getElementById('logo_info').style.left = 0;  // from top
		}else{
			if(parseFloat(tempY) - 20 > 0){
			top.document.getElementById('logo_info').style.top = parseFloat(tempY) - 20;  // from top
			}else{
			top.document.getElementById('logo_info').style.top = parseFloat(tempY) + 20;  // from top
			}
			if(innerW > (parseFloat(width)+parseFloat(tempX) + 20)){
			top.document.getElementById('logo_info').style.left = parseFloat(tempX) + 20; // from left
			}else{
				if((innerW - 150)  <= tempX){	top.document.getElementById('logo_info').style.left = parseFloat(tempX) - (parseFloat(width) + parseFloat(20)); // from left
				}else{
				top.document.getElementById('logo_info').style.left = parseFloat(tempX) + 100 - (parseFloat(width)/2); // from left
				top.document.getElementById('logo_info').style.top = parseFloat(tempY) + 20;  // from top
				}
			}
			top.document.getElementById('logo_info').style.width = width;
			top.document.getElementById('logo_info').style.display = '';
		}
	}
}
function LogoInfo_close()
{
	if(document.getElementById('logo_info')){document.getElementById('logo_info').style.visibility = 'hidden';}
}
function getMouseXY(e) {
  if (IE) { // grab the x-y pos.s if browser is IE
    tempX = event.clientX + document.body.scrollLeft
    tempY = event.clientY + document.body.scrollTop
  } else {  // grab the x-y pos.s if browser is NS
    tempX = e.pageX
    tempY = e.pageY
  }
  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}

  if(typeof(set_drag) != 'undefined' && set_drag != ''){
  	obj = set_drag.offsetParent;
	obj = obj.offsetParent.offsetParent;
	posX = obj.offsetLeft;
	posY = obj.offsetTop;

	sizeX = tempX - posX;
	sizeY = tempY - posY;

	if(sizeX > max_width){
		sizeX = max_width;
	}
	set_drag.style.width = sizeX;
	set_drag.style.height = sizeY;
	document.getElementById(set_drag.id+"_size").value = sizeX+"X"+sizeY;
  }
  
if(popup == '1'){
	document.getElementById('wedstrijd_popup').style.top = (tempY-10);
	document.getElementById('wedstrijd_popup').style.left = (tempX-10);
}
}
function change_but(el,what)
{
	var name = el.id;
	if(what == '2'){
		el.src = "/images/GD/"+name+".png";
	}else{
		el.src = "/images/GD/"+name+"_over.png";
	}
}
function weer_Show(code,where)
{
	if(typeof(where) != "undefined"){
		if(where == 'intro'){position = ",top=300,left=550";}else if(where == 'fiche'){position = ",top=321,left=597";}
	}else{
		position = ",top=10,left=10";
	}
	var URL = "/phpscripts/meteo/meteo.php?code="+code;
	window.open(URL, 'meteo','width=300,height=320'+position+',scrollbars=yes,statusbar=no');
}
function sendToParent(US,hotel){
width = screen.width;
	if(width <= 800){
	window.opener.top.vulin.document.forms[0].User.value = US;
	window.opener.top.vulin.document.forms[0].Hotelcode.value = hotel;
	window.opener.top.vulin.document.forms[0].luchthaven.value = '' ;
	window.opener.top.vulin.document.forms[0].submit();
	window.close();
	}else{
		if(parent.vulin){
		parent.vulin.document.form.User.value = US;
		parent.vulin.document.form.Hotelcode.value = hotel;
		parent.vulin.document.form.luchthaven.value = '' ;
		parent.vulin.Zoek();	
		}else if(top.vulin){
		top.vulin.document.form.User.value = US;
		top.vulin.document.form.Hotelcode.value = hotel;
		top.vulin.document.form.luchthaven.value = '' ;
		top.vulin.Zoek();	
		}
	}
}
function Goto_Tekst()
{
var inetinfo = document.getElementById('inetinfo').value;
location.href="index.php?inetinfo="+inetinfo;
}
function promo(hotelcode,day,month,year,airport,dur)
{
	try{
		if(parent.vulin && parent.location.href.indexOf("jetair") != "-1"){
			if(parent.vulin.document.form.Brochure.value != '1'){parent.vulin.location.href='/bepages/vliegvakantie_vulin_new.php';}
			parent.vulin.document.form.Hotelcode.value 		= hotelcode;
			parent.vulin.document.form.DepartDay.value 		= day;
			parent.vulin.document.form.DepartMonth.value 	= month;
			parent.vulin.document.form.DepartYear.value 	= year;
			parent.vulin.document.form.Duration.value 		= dur;
			parent.vulin.document.form.luchthaven.value		= airport;
			parent.vulin.document.form.Airport.value		= airport;
			parent.vulin.Zoek();
		}else{
			window.open("/bepages/nl/criteria.php?hcode="+hotelcode+"&dd="+day+"&mm="+month+"&yy="+year+"&dur="+dur+"&Airport="+airport,"booking");
		}
	}catch(excp){
		window.open("/bepages/nl/criteria.php?hcode="+hotelcode+"&dd="+day+"&mm="+month+"&yy="+year+"&dur="+dur+"&Airport="+airport,"booking");
	}
}
function get_steden(dest,resort,resort_code,user,season)
{
	show_iframe();
	parent.resultaat.document.location.href='/phpscripts/search_engine.php?User='+user+'&Season='+season+'&region='+resort+'&destination='+dest+'&deel=auto';
}
function incl_resize(divId)
{
	if(typeof("divId") != 'undefined'){
	height	 	= document.getElementById(divId).offsetHeight;
	if(height < 620){
		height = 620;
	}
	bottomH 	= height + 160;
	parent.document.getElementById('bottom').style.top 				= bottomH;
	document.getElementById("main_booking").style.height 			= bottomH;
	document.getElementById("main_table").style.height 	 		= bottomH;
	}else{
	height	 	= document.body.scrollHeight;
	if(height < 620){
		height = 620;
	}
	bottomH 	= height + 20;
	parent.document.getElementById('bottom').style.top 				= bottomH;
	document.getElementById("main_booking").style.height 			= bottomH;
	document.getElementById("main_table").style.height 	 		= bottomH;
	}
}
function show_iframe()
{
	if(parent.document.getElementById('home_info_div')){var body= parent.document.body;var div = parent.document.getElementById('home_info_div');body.removeChild(div);}
	if(parent.document.getElementById('emergency_popup')){setTimeout("display_id('emergency_popup','none')",100);}
	if(parent.document.getElementById('main_lijn')){if(parent.document.getElementById('main_lijn').style.display==""){setTimeout("display_id('main_lijn','none')",100);}}
	if(parent.document.getElementById('main')){setTimeout("display_id('main','none')",100);if(parent.document.getElementById('banner_rechts')){setTimeout("display_id('banner_rechts','')",100);}}
	if(parent.document.getElementById('main_booking')){setTimeout("display_id('main_booking','')",100);if(parent.document.getElementById('banner_rechts')){setTimeout("display_id('banner_rechts','none')",100);}}
}
function hide_iframe()
{
	if(parent.document.getElementById('emergency_popup')){setTimeout("display_id('emergency_popup','')",100);}
	if(parent.document.getElementById('main_lijn')){if(parent.document.getElementById('main_lijn').style.display=="none"){setTimeout("display_id('main_lijn','')",100);}}
	if(parent.document.getElementById('main')){setTimeout("display_id('main','')",100);if(parent.document.getElementById('banner_rechts')){setTimeout("display_id('banner_rechts','none')",100);}}
	if(parent.document.getElementById('main_booking')){setTimeout("display_id('main_booking','none')",100);if(parent.document.getElementById('banner_rechts')){setTimeout("display_id('banner_rechts','')",100);}}
}
function display_id(id,what)
{
	parent.document.getElementById(id).style.display	= what;
}
function Rclick(what,deel,extra)
{
	location.href='index.php?deel='+deel+'&what='+what+'&item='+extra;
}
String.prototype.replaceAll = function( oldvalue , newvalue )
{
	var tmp		 		 = this;
	var result		 = '';
	var index		 = tmp.indexOf( oldvalue );

	if( index == -1 ) {
	 		 return tmp;
	}

	while( index != -1 ) {
	 result += tmp.substr( 0 , index );
	 result += newvalue;
	 tmp = tmp.substr( index + oldvalue.length );
	 index = tmp.indexOf( oldvalue );
	}
return result + tmp;
};
function show_hotel(param)
{
	parent.resultaat.document.location.href='/phpscripts/unitext_display_auto/index.php?inethotelinfo='+param;
	show_iframe();
}
function framePage(link)
{
	show_iframe();
	parent.resultaat.document.location.href=link;
   	setTimeout("parent.resizeCaller()",100);
}
function autofitIframe(id){
//	id = parent.frames['wereldkaart'];
//	find the height of the internal page
//	eerst de height op 510 zetten anders zie je hem verspringen van scrollbar (moesten we het op nul zetten) als hij groter is
	document.getElementById(id).height = 530;
//	de height van de scherm berekenen => scriptje van stefaan
	if( self.innerHeight ) {
		h =  self.innerHeight;
	} else {
		if( document.documentElement.clientHeight != 0 ) {
			h = document.documentElement.clientHeight;
		} else {
			h = document.body.clientHeight;
		}
	}
//	de scrollheight van de iframe berekenen
	var the_height = document.getElementById(id).contentWindow.document.body.scrollHeight;
//	de body height aan de berekende height gelijk stellen
	document.getElementById(id).height=the_height+"px";
//	als de height van de iframe kleiner is dan de schermgrootte dan
	if(the_height<h){
		the_height = h;
	}
//	de height van de body instellen
	document.body.style.height = the_height+"px";
}
function raadplegen(taal)
{
	po = document.form.f003.value;
	po_1 = po.substr(0,2);
	refno=/[a-zA-Z]{2,}/;
	if (refno.test(po_1)){
	document.form.action='index.php';
	document.form.glob_b.value='2';
	document.form.submit();
	}else{
	leadname = document.form.leadname.value;
	name = leadname.replace("'",".");
 	 name = leadname.replace(" ","+");
	url = "/phpscripts/tussen_reservering.php?po=";
	url += document.form.f003.value;
	url += "&leadname=";
	url += name;
	url += "&Info=Y";
	url += "&lng="+taal;
	url += "&Language="+taal;
    	 window.open(url,'Mjetair');
	}
}
function Twijzigen_callback( xml_req )
{
	var response 	= xml_req.responseText;
	var arr_HTML   = response.split("<html");

}
function get_Bagage(lng)
{
	if(lng == '1'){
	window.open("http://www.worldtracer.aero/cgi-bin/fileframe.exe?tran=XXXtbXXXXXl1=neCB=Y","bagage");
	}else{
	window.open("http://www.worldtracer.aero/cgi-bin/fileframe.exe?tran=XXXtbXXXXXl1=frCB=Y","bagage");
	}
}
function trim(str)
{
   return str.replace(/^\s*|\s*$/g,"");
}
function str_replace(search, replace, subject) {
    return subject.split(search).join(replace);
}
function SetGlobalError(error,what,surplus)
{
	if(top.document.getElementById('deel')){
		var surplus = top;
		var fromTop = '50%';
	}else{
		var surplus = self;
		var fromTop = '400';
	}
	var obody		= surplus.document.body;
	if(surplus.document.getElementById('error_div')){
	var odiv		= surplus.document.getElementById('error_div');
	var odiv2		= surplus.document.getElementById('error_div2');
	}
	var height 		= surplus.document.body.scrollHeight;
	var div 		= surplus.document.createElement("div");
		div.id 		= 'error_div';
		div.style.position 	= 'absolute';
		if(window_height >  0){
		div.style.height 	= window_height;
		}else{
		div.style.height 	= '100%';
		}
		div.style.width 	= '100%';
		div.style.top 		= '0';
		div.style.left 		= '0';
		div.className 		= 'error_div';
		div.onclick=function(){
			SetGlobalError('','2');
		};
		var men_div 	= surplus.document.createElement("div");
		men_div.className = 'item_header';
		var err_div 	= surplus.document.createElement("div");
		err_div.id 	= 'error_div2';
		err_div.style.position = 'absolute';
		err_div.style.height = '150px';
		err_div.style.width = '400px';
		err_div.style.top = fromTop;
		err_div.style.left = '50%';
		err_div.style.marginLeft= '-200px';
		err_div.style.marginTop = '-100px';
		if(what == 1){
		err_div.className = 'error_Ediv_red';
		}else{
		err_div.className = 'error_Ediv_blue';
		}
		err_div.onclick=function(){
			SetGlobalError('','2');
		};
	var br 						= surplus.document.createElement("br");
	try{
	l = window.parent.document.getElementById('lng').value;
	}catch(excp){
	l = document.forms[0].lng.value;	
	}
	if(l==1){
		var men_text 	= surplus.document.createTextNode("Waarschuwing");
	}else{
		var men_text 	= surplus.document.createTextNode("Avertissement");
	}
	if(what == 1 || what == 3){
	men_div.appendChild(men_text);
	err_div.innerHTML = error;
	err_div.insertBefore(br,err_div.firstChild);
	err_div.insertBefore(men_div,err_div.firstChild);
	obody.appendChild(div);
	obody.appendChild(err_div);
	obody.focus();
	}else if(what == 2){
		if(odiv){
		obody.removeChild(odiv);
		obody.removeChild(odiv2);
		}
	}
}
function opvragen(what){
	var lng = document.getElementById('lng').value;
	location.href='index.php?deel=vlieg&info=info_page&name='+what+"&lng="+lng;
}
function showPromo(who,rest){
	for(i=2;i<rest;i++){
		if(document.getElementById("promoT_"+i)){
			document.getElementById("promoT_"+i).style.display='none';
			document.getElementById("promoF_"+i).src ='/images/home/page.gif';
		}
	}
	document.getElementById("promoF_"+who).src ='/images/home/on_page.gif';
	document.getElementById("promoT_"+who).style.display='';
}
function showLijnvlucht(link){
	//alert(link);
	show_iframe();
	setTimeout("display_id('main_booking','none')",100);
	setTimeout("display_id('main_lijn','')",100);
	if(parent.lijnvluchten){
		parent.lijnvluchten.location.href = link;
		parent.document.getElementById('lijnvluchten').style.height = '713';
	}else{
		lijnvluchten.location.href = link;
		document.getElementById('lijnvluchten').style.height = '713';
	}
}
function highlightCountry(land){
	if(document.kaart){
	document.kaart.SetVariable("landTonen", land);
	}
}
function highlightRegio(regio){
	if(document.kaart){
	document.kaart.SetVariable("regioTonen", regio);
	}
}
function showCountry(land,code){
	if(parent.resultaat.location.href=="about:blank"){
		parent.location.href = "bestemming_"+land+"_"+code+".htm";
	}else{
		d = parent.vulin.document.form.deel.value;
		parent.resultaat.location.href = "../best.php?code="+code+"&deel="+d;
	}
}
function showRegio(code_land,code_regio,regio_naam_nl,regio_naam_fr){
	if(location.href.indexOf('best.php') != '-1' || location.href.indexOf('auto_regio.php') != '-1'){
	set_dest_res(code_land,code_regio);
	}else{
	var deel 		= parent.vulin.document.form.deel.value;
	var url_dest		= top.document.getElementById('site_part').value.split("/");
	top.location.href	= "/"+url_dest[1]+'/resort_'+RS(regio_naam_nl)+'_'+RS(code_land)+"_"+RS(code_regio)+'.htm';	
	}
}

function searchSkiRegion(str_steden){
	parent.vulin.document.form.Hotelcode.value = str_steden.replace("|","'");
	parent.vulin.Zoek_hotel();
}

function RS(str) // replace slash
{
	str = str.replace("\/","-");
return str;
}
function reset_zebra( table , class1 , class2 , start , end )
{
    if( table && table.rows.length > 0 ) {
        start    = start || 0;
        if( ( start < 0 ) || ( start > table.rows.length - 1 ) ) start = 0;
        end        = end || table.rows.length - 1;
        if( ( end < 0 ) || ( end < start ) || ( end > table.rows.length - 1 ) ) end = table.rows.length - 1;

        var sw = true;
        for( var i = start ; i <= end ; i++ ) {
            if( sw = ! sw ) {
                table.rows[i].className = class1;
            } else {
                table.rows[i].className = class2;
            }
        }
    }
}
function sitestat(parameters){
	/*if(location.href.indexOf("jetaircenter")!=-1){
		var site = "jetaircenter";
	}else if(location.href.indexOf("jetair.be")!=-1){
		var site = "jetair";
	}else if(location.href.indexOf("splash")!=-1){
		var site = "splashtravel";
	}
	if(site=="jetair" || site=="jetaircenter"){
		ns_l = "http://be.sitestat.com/jetair/"+site+"/s?"+parameters;
		ns_l+='&amp;ns__t='+(new Date()).getTime();ns_pixelUrl=ns_l;
		ns_0=document.referrer;
		ns_0=(ns_0.lastIndexOf('/')==ns_0.length-1)?ns_0.substring(ns_0.lastIndexOf('/'),0):ns_0;
		if(ns_0.length>0)ns_l+='&amp;ns_referrer='+escape(ns_0);
			if(document.images){ns_1=new Image();ns_1.src=ns_l;
			}else
			document.write('<img src="'+ns_l+'" width="1" height="1" alt="">');
	}
	if(site=="splashtravel"){
		_uacct = "UA-1703099-1";	    
		urchinTracker();
	}*/
	if(location.href.indexOf("jetaircenter") != -1){
		 var site = "jetaircenter";
	}else{
		if(location.href.indexOf("jetair.be") != -1){
			var site = "jetair";
        }else{
            if(location.href.indexOf("splash") != -1){
				var site = "splashtravel";
            };
        };
     };
     if(site == "jetair" || site == "jetaircenter"){
		ns_l = "http://be.sitestat.com/jetair/" + site + "/s?" + parameters;
        // FromUrl v1.3 Copyright (c) 2001-2006 Nedstat B.V. All rights reserved.
var ns_type='' // leave empty for normal/ppc measurement, fill in for clickin, clickout or pdf
var r='' // yes=only parse url when there is a real document.referrer,
// no=only parse url when there is no real document.referrer, empty=always parse url
var t='?' // tag in url where parameters follow; default '?' could be replaced by "#"
var p=new Array();var w='';var l='';var d=document;var n=navigator;var ns_0=''
;if(top!=self){if('\u0041'=='A'){var u=n.userAgent;if(u.indexOf('Safari')==-1)
{var b=u.indexOf('Opera');if(b==-1||(u.charAt(b+6)+0)>5){b=u.indexOf('Mozilla'
);var xb=b!=-1?u.charAt(b+8)>4:1;if(u.indexOf('compatible')!=-1||xb){var c=
'try{ns_0=top.document.referrer}catch(e){}';eval(c);c=
'try{l=top.document.location.href}catch(e){}';eval(c);}}}}}else{ns_0=
d.referrer;l=d.location.href;}if(ns_0.lastIndexOf('/')==ns_0.length-1){ns_0=
ns_0.substring(ns_0.lastIndexOf('/'),0);}var f=ns_l.indexOf('?');if(f!=-1){
var q=ns_l.substring(f+1);ns_l=ns_l.substring(0,f);if(q){var m=q.indexOf('&');
w=q.substring(0,m==-1?q.length:m);if(w.indexOf('=')!=-1){w='';}if(w){q=
q.substring(m==-1?q.length:m+1);q+=(q?'&':'')+'ns_name='+w;}if(ns_0.length>0){
q+=(q?'&':'')+'ns_referrer='+escape(ns_0);}var s=0;var e=0;while(q.length){e=
q.indexOf('&');if(e==-1){e=q.length;}var o=q.substring(s,e);if(o.substring(0,4
)=='amp;'){o=o.substring(4);}if(o)p[p.length]=o;q=q.substring(e+1);}}}var a=
l.indexOf(t);a=a==-1?0:l.substring(a+1);var j;if(r=='yes')j=ns_0.length;else
if(r=='no')j=!ns_0.length;else if(r=='')j=1;if(a&&j){while(a.length){var e=
a.indexOf('&');if(e==-1){e=a.length;}var k=a.substring(0,a.substring(0,e)
.indexOf('='));var v=a.substring(a.substring(0,e).indexOf('=')+1,e);if(
k.substring(0,4)=='amp;'){k=k.substring(4);}while(v.substring(0,1)=='='){v=
v.substring(1);}if(k=='ns_name'){w=v;}else if(k=='ns_or'){var g='ns_referrer='
;for(var z=0;z<p.length;z++){if(p[z].substring(0,g.length)==g){p[z]=
'ns_referrer='+v;}}}else{if(k.substring(0,3)=='ns_'&&v&&k){var h=0;for(var x=0
;x<p.length;x++){if(p[x].substring(0,p[x].indexOf('='))==k){p[x]=k+"="+v;h=1}}
if(!h){p[p.length]=k+"="+v;}}}a=a.substring(e+1);}}if(!w){return;}var s='';
var y='';for(var i=0;i<p.length;i++)if(p[i].substring(0,8)!='ns_name='){if(p[i
].substring(0,12)!='ns_referrer='){s+='&'+p[i];}else{y='&'+p[i];}}s+=ns_type?
'&ns_type='+ns_type+'&ns_action=view':'';ns_pixelUrl=ns_l+'?'+w+s+"&ns__t="+(
new Date()).getTime();ns_l=ns_pixelUrl+y;if(d.images){ns_1=new Image();
ns_1.src=ns_l;}else{d.write('<img src='+ns_l+' width="1" height="1">');}
            }
    if(site=="splashtravel"){
        _uacct = "UA-1703099-1";             
	   	urchinTracker();
	}
}
function zoekGegarandeerdeBestemming(){
	value = document.form_zoekg.bestemming.value;
	if(document.form_zoekg.bestemming.selectedIndex!=0 && ((document.form_zoekg.bestemming.options.length-1)==document.form_zoekg.max_b.value)){
		var parameters = "bestemming="+value;
		var ajax = new Ajax( "/phpscripts/gegarandeerde/gegarandeerd_zoeken.php" , "POST" , parameters,vulDatums);
		ajax.go();
	}
	if(document.form_zoekg.vertrekdatum.selectedIndex==0 && document.form_zoekg.bestemming.selectedIndex==0){
		var parameters = "bestemming=all";
		var ajax = new Ajax( "/phpscripts/gegarandeerde/gegarandeerd_zoeken.php" , "POST" , parameters,vulDatums);
		ajax.go();
	}
}
function vulDatums(xml_req){
	var response = eval( "(" +xml_req.responseText + ")" );
	vertrekData = response.bestemming;
	arr_vertrekData = vertrekData.split(",");
//	eerst alle options verwijderen
	 for(i=document.form_zoekg.vertrekdatum.options.length-1;i>=1;i--)
	{
		document.form_zoekg.vertrekdatum.remove(i);
	}
//	dan nieuwe options toevoegen
	for(v=0;v<arr_vertrekData.length;v++){
		vertrekDate = arr_vertrekData[v];
		vertrekDate = arr_vertrekData[v].substring(8,10)+"-"+arr_vertrekData[v].substring(5,7)+"-"+arr_vertrekData[v].substring(0,4);
		var optn = document.createElement("option");
		optn.text = vertrekDate;
		optn.value = vertrekDate;
		document.form_zoekg.vertrekdatum.options.add(optn);
	}
	if(arr_vertrekData.length<30){
		document.form_zoekg.vertrekdatum.selectedIndex = 1;
	}
}
function zoekGegarandeerdeVertrekdatum(){
	value = document.form_zoekg.vertrekdatum.value;
	if(document.form_zoekg.vertrekdatum.selectedIndex!=0 && ((document.form_zoekg.vertrekdatum.options.length-1)==document.form_zoekg.max_d.value)){
		var parameters = "vertrekdatum="+value;
		var ajax = new Ajax( "/phpscripts/gegarandeerde/gegarandeerd_zoeken.php" , "POST" , parameters,vulBestemming);
		ajax.go();
	}
	if(document.form_zoekg.vertrekdatum.selectedIndex==0 && document.form_zoekg.bestemming.selectedIndex==0){
		var parameters = "vertrekdatum=all";
		var ajax = new Ajax( "/phpscripts/gegarandeerde/gegarandeerd_zoeken.php" , "POST" , parameters,vulBestemming);
		ajax.go();
	}
}
function vulBestemming(xml_req){
	var response = eval( "(" +xml_req.responseText + ")" );
	bestemmingen = response.vertrekdatum;
	arr_bestemmingen = bestemmingen.split(",");
	for(i=document.form_zoekg.bestemming.options.length-1;i>=1;i--){
		document.form_zoekg.bestemming.remove(i);
	}
	for(b=0;b<arr_bestemmingen.length;b++){
		bestemmingen = arr_bestemmingen[b];
		var optn = document.createElement("option");
		optn.text = bestemmingen;
		optn.value = bestemmingen;
		document.form_zoekg.bestemming.options.add(optn);
	}
	if(arr_bestemmingen.length<30){
		document.form_zoekg.bestemming.selectedIndex = 1;
	}
}
function zoekGeg(){
	document.form_zoekg.target = '_self';
	document.form_zoekg.action = '';
	document.form_zoekg.submit();
}
function POPUpHotel(URL)
{
	window.open(URL, 'Excursies','width=800,height=600,top=10,left=10,scrollbars=yes,statusbar=yes');
}
function hide_Wpopup()
{
	var wedstrijd_PC 	= getcookie('wedstrijd_PC');
	if(typeof(wedstrijd_PC) != 'undefined'){if(wedstrijd_PC != 'Y' && location.href.indexOf("www")){document.getElementById('wedstrijd_popup').style.display='none';createCookie('wedstrijd_PC','Y','');}}
}
function print_Waarde(waarde)
{
	popup = waarde;
}
function GTB(el)
{
	var value = el.value;
	location.href=value;
}
var oldNr = 0;
function openTree(nr)
{
	if(oldNr == nr){
		setTree(nr);
		oldNr = 0;
	}else{
		setTree(oldNr);
		setTree(nr);
		oldNr = nr;
	}
}
function setTree(nr){
	var mydivs=document.getElementsByTagName("div");
	if(document.getElementById('pic|'+nr+'|')){
		if(document.getElementById('pic|'+nr+'|').src.indexOf('plus') != '-1'){
			document.getElementById('pic|'+nr+'|').src = '/swimages/general/min.gif';	
		}else{
			document.getElementById('pic|'+nr+'|').src = '/swimages/general/plus.gif';	
		}
	}
	for(i=0;i<mydivs.length;i++){
		if(mydivs.item(i).id.indexOf("div|"+nr+"|") != '-1'){
			if(mydivs.item(i).style.display == 'none'){
			mydivs.item(i).style.display = '';
			}else{	
			mydivs.item(i).style.display = 'none';
			}
		}else if(nr == 'all' && mydivs.item(i).id.indexOf("div|") != '-1'){
			if(mydivs.item(i).style.display == 'none'){
			mydivs.item(i).style.display = '';
			}else{	
			mydivs.item(i).style.display = 'none';
			}
		}
	}
	if(nr == 'all'){
		window.print();			
	}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}

function hidePopUpWereld(){
	document.getElementById('th_popup').style.display = "none";
//	window.status = document.getElementById('th_popup').innerHTML.substr(250); 
}

//---------------------------------------------------------------------------------------
//functie om het png probleem in IE op te lossen
//---------------------------------------------------------------------------------------
function global_fix_png()
{
    var arVersion = navigator.appVersion.split("MSIE")
    var version = parseFloat(arVersion[1])
 
    if ((version >= 5.5) && (version < 7) && (document.body.filters)) {
        var src_regex	= /^.*\.png$/gi;
        var images = document.getElementsByTagName("img");
 
        for( var i = images.length - 1 ; i >= 0 ; i-- ) {
            var img = images[i];
 
            if( img.src.match( src_regex ) ) {
                if( ! img.complete ) {
                    img.onload = fix_png
                } else {
                    fix_png.apply( img );
                }
            }
        }
    }    
}

//---------------------------------------------------------------------------------------
//eigenlijke png fix functie
//vervangt de png images door een <span> met dezelfde dimenties als de originele foto
//en past de "AlphaImageloader" filter toe, om de correcte transparency te zetten op de
//png. Het kopieert ook een aantal attributen:id , className , onclick , onmouseover , 
//onmouseout , onmouseup , onmousedown , width, height
//---------------------------------------------------------------------------------------
function fix_png( )
{
    var img = this;
    var span = document.createElement( "span" );
    if( img.id)           span.id = img.id;
    if( img.className	) span.className	= img.className;
    if( img.onclick   	) span.onclick		= img.onclick;
    if( img.onmouseover	) span.onmouseover	= img.onmouseover;
    if( img.onmouseout	) span.onmouseout	= img.onmouseout;
    if( img.onmouseup	) span.onmouseup	= img.onmouseup;
    if( img.onmousedown	) span.onmousedown	= img.onmousedown;
    span.title 			= img.title ? img.title : img.alt;
    span.style.width	= img.width + "px";
    span.style.height	= img.height + "px";
    span.style.filter	= "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'" + img.src + "\', sizingMethod='scale'";
    img.id				= null;
    img.parentNode.insertBefore( span , img );
    img.parentNode.removeChild( img );
}
var vulinFrameHeight		= "450";
var LeftHeight				= "450";
function closeItems()
{
	var Search 				= document.getElementById('Search');
	var HSearch 			= document.getElementById('HSearch');
	
	if(Search.style.display == ''){
	var setD 	= 'none';
	}else{
	var setD 	= '';
	}
	Search.style.display 	= setD;
	HSearch.style.display 	= setD;
	if(Search.style.display != ''){
	parent.document.getElementById('vulin').style.height			= 260;
	parent.document.getElementById('left').style.height				= 260;
	}else{
	parent.document.getElementById('vulin').style.height			= vulinFrameHeight;
	parent.document.getElementById('left').style.height				= LeftHeight;
	}
	
}
function getNode(el,node)
{
	while(el.nodeName != 'INPUT'){
		el = el.nextSibling;
	}
	return el;
}
function getInfo(el,out,info)
{
	var body	= top.document.body;
	try{
	var node	= getNode(el.firstChild);
	var id 		= node.value;
	}catch(excp){}
	try{
		try{
		var arr_info= document.getElementById(id+"INFO").value.split("#");
		}catch(excp){
		var arr_info= "";
		}
		if(typeof(info) == 'undefined'){
			var info = "";
		}
		
		if(!top.document.getElementById('infoBox') && out == ''){
			if(arr_info[1] != '' || info != ''){
			var div		= new Array();
			div[0]		= top.document.createElement("div");
			div[0].style.position		= 'absolute';
			div[0].id					= 'infoBox';
			div[0].style.top			= parseFloat(tempY) + 177;
			div[0].style.left			= '50%';
			div[0].style.marginLeft		= -(200 - (parseFloat(tempX) / 2));
			div[0].style.width 			= '400';
			div[0].style.Minheight		= '50';
			div[0].style._height		= '50';
			div[0].style.background 	= 'white';
			div[0].className 			= 'border_color';
			div[0].style.padding		= '2';
			
			div[1]		= top.document.createElement("div");
			div[1].style.cssFloat 		= 'left';
			div[1].style.styleFloat		= 'left';
			
			div[2]		= top.document.createElement("div");
			div[2].style.textAlign		= 'left';
			div[2].style.padding		= '2';
			
			if(arr_info[0] != '' && info == ''){
			var img 	= top.document.createElement('img');
			img.src		= '/swimages/general/l'+arr_info[0]+'.gif';
			div[1].appendChild(img);
			}
			
			if(arr_info[1] != '' && info == ''){
			text 		= top.document.createTextNode(arr_info[1]);
			}else if(info != ''){
			text 		= top.document.createTextNode(info);
			}
			div[2].appendChild(text);
			div[0].appendChild(div[1]);
			div[0].appendChild(div[2]);
			body.appendChild(div[0]);
			}
		}else if(top.document.getElementById('infoBox')){
		body.removeChild(top.document.getElementById('infoBox'));
		}
	}catch(excp){}
}
function streekinfo_show(page)
{
	document.getElementById('streekinfo').src = page;
	document.getElementById('streekinfo_frame').style.display = "";
}
function alertIT(str)
{
	var IP = document.form.IP.value;
	if(IP == "138.2.64.15"){
		alert(str);
	}
}
function resizeWindow()
{
	focus();
	try{
		parent.streekinfo.resizeTo(788,200);
		body 	=	top.window.document.body;
		subbody =	window.document.body;
		if(subbody.scrollHeight < subbody.offsetHeight){
	   	parent.document.getElementById('streekinfo').style.height = subbody.offsetHeight;
		}else{
	   	parent.document.getElementById('streekinfo').style.height = subbody.scrollHeight;
		}
		try{
		top.resizeCaller();
		}catch(excp){}
	}catch(excp){}
}
function chechDate(date)
{
	var arr_date 	= date.split("-");
	var year		= arr_date[0];
	var month		= parseFloat(arr_date[1]) - 1;
	var day			= arr_date[2];
 	//Set the two dates
	today=new Date()
	var depart=new Date(year, month, day) //Month is 0-11 in JavaScript
	if (today.getMonth()==11 && today.getDate()>25) //if Christmas has passed already
	depart.setFullYear(depart.getFullYear()+1) //calculate next year's Christmas
	//Set 1 day in milliseconds
	var one_day=1000*60*60*24

//Calculate difference btw the two dates, and convert to days
return Math.ceil((depart.getTime()-today.getTime())/(one_day));
}
function setfontSize(size)
{
	createCookie("font-size",size,"365");
	location.href = location.href;
}
var order = new Array();
var Lsort = "";
function set_sort(el)
{
	var picID = el.innerHTML;
	if(picID != Lsort && Lsort != ''){
	document.getElementById(Lsort).src='/images/none.gif';
	order[Lsort] = "";	
	}
	if(order[picID] == "down"){
	document.getElementById(picID).src='/images/up.gif?time=1';
	order[picID] = "up";	
	}else{
	document.getElementById(picID).src='/images/down.gif?time=1';
	order[picID] = "down";	
	}
	Lsort = picID;
}
function show_result()
{
	var lng = document.getElementById('lng').value;
	if(document.form_sirius){
	document.form_sirius.method	= "POST";
	document.form_sirius.submit();
	}else{
	var body 		= window.document.body;
	var formS		= document.createElement('form');
	formS.method	= "POST";
	formS.name		= "form_sirius";
	formS.action	= "http://flweb.ypsilon.net/index.phtml";
	formS.target	= "resultaat";
	var agent									= document.createElement('input');
	agent.type									= 'hidden';
	agent.name									= 'agent';
	var lang									= document.createElement('input');
	lang.type									= 'hidden';
	lang.name									= 'lang';
	if(lng == 1){
	lang.value									= 'nl_BE'; 
	}else{
	lang.value									= 'fr_BE'; 
	}
	formS.appendChild(lang);
	body.appendChild(formS);
	formS.submit()
	}
	//document.getElementById('result').style.display = "";
	//document.getElementById('result').style.width = "800px";
	//document.getElementById('main').style.display = "none";
}
function show_TA()
{
	document.form_TA.submit();
}
function show_AUCTION()
{
 	window.open('https://encheres.nouvelles-frontieres.be/nf/','auction');
}
function show_BROCHURE()
{
	var lng = document.getElementById('lng').value;
	if(lng == '1'){
 	location.href='brochure.htm';
	}else{
 	location.href='brochure_fr.htm';
	}
}
function show_NEWSLETTER()
{
	var lng = document.getElementById('lng').value;
	if(lng == '1'){
 	location.href='newsletter.htm';
	}else{
 	location.href='newsletter_fr.htm';
	}
}
function show_pic(id)
{
	var foto_data 	= Arr_foto[id].split("#");
	try{
	var lng 		= top.document.getElementById('lng').value; 
	}catch(excp){
	var lng 		= "1"; 
	}

	var Acount		= 0;
	var Apointer	= 0;
	for(key in Arr_foto){
		if(key.length == 6){
		Acount++;
			if(key == id){
			Apointer = Acount;	
			}
		}
		
	}
	
	if(body == null){
	var doc = top.document;
//	body 	= top.document.createElement('body');
//	doc.appendChild(body);
	body = top.document.body;
	}
	
	scroll(0,0);
	var total	= Arr_foto - 1;
	var width	= foto_data[1];
	var height	= foto_data[2];
	var dirPic	= foto_data[0];
	var Mtop	= '-'+(parseFloat(height) / 2); 
	var Mleft	= '-'+(parseFloat(width) / 2);
	var IdBack	= foto_data[3];
	var IdNext	= foto_data[4];
	if(IdBack < 0 && IdBack != ''){
		IdBack = total;
	}
	if(IdNext > total&& IdNext != ''){
		IdNext = 0;
	}

	div[0] = top.document.createElement("div");
	div[0].id = 'picDiv0';
	div[0].style.position = 'absolute';
	div[0].style.top = '0';
	div[0].style.left = '0';
	div[0].style.width = '100%';
	if(body.offsetHeight > body.scrollHeight){
	div[0].style.height = '100%';
	}else{
	div[0].style.height = body.scrollHeight+"px";
	}
	div[0].style.background = '#111111';
	div[0].style.filter 	= 'alpha(opacity=80)';
	div[0].style.opacity 	= (60 / 100); 
	div[0].style.zIndex 	= 10; 
	div[0].onclick=function(){close_picture();};

	div[1] = top.document.createElement("div");
	div[1].id = 'picDiv1';
	div[1].style.position = 'absolute';
	div[1].style.top = '200px';
	div[1].style.left = '50%';
	div[1].style.marginLeft = Mleft+"px";
	div[1].style.height = height;
	div[1].style.width = width;
	div[1].className = 'divMenu';
	div[1].style.zIndex 	= 11; 
//	div[1].onclick=function(){close_picture();};

	div[2] = top.document.createElement("div");
	div[2].id = 'picDiv2';
	div[2].style.position = 'absolute';
	div[2].style.top = '-20px';
	div[2].style.left = '0px';
	div[2].style.width = '105px';
	div[2].style.height = '19px';
	div[2].style.paddingTop = '1px';
	div[2].style.paddingLeft = '5px';
	div[2].style.textAlign = 'left';
	div[2].className = 'MB';
	div[2].style.fontSize = '13px';
	div[2].style.cursor = 'pointer';
	div[2].style.zIndex 	= 12; 
	div[2].onclick=function(){show_pic(IdBack);};
	
	div[20] = top.document.createElement("div");
	div[20].id = 'picDivCount';
	div[20].style.position = 'absolute';
	div[20].style.top = '-20px';
	div[20].style.left = '60px';
	div[20].style.width = '30px';
	div[20].style.height = '19px';
	div[20].style.paddingTop = '1px';
	div[20].style.paddingLeft = '5px';
	div[20].style.textAlign = 'left';
	div[20].className = 'MB';
	div[20].style.fontSize = '13px';
	div[20].style.zIndex 	= 12; 
	

	div[3] = top.document.createElement("div");
	div[3].id = 'picDiv3';
	div[3].style.position = 'absolute';
	div[3].style.top = '-20px';
	div[3].style.left = '95px';
	div[3].style.width = '70px';
	div[3].style.height = '19px';
	div[3].style.paddingTop = '1px';
	div[3].style.textAlign = 'right';
	div[3].className = 'MB';
	div[3].style.fontSize = '13px';
	div[3].style.cursor = 'pointer';
	div[3].style.zIndex 	= 12; 
	div[3].onclick=function(){show_pic(IdNext);};
	
	div[4] = top.document.createElement("div");
	div[4].id = 'picDiv3';
	div[4].style.position = 'absolute';
	div[4].style.top = '-20px';
	div[4].style.right = '-1px';
	if(navigator.appName.indexOf("Netscape") == '-1'){
	var divW =	(parseFloat(width) + 2) + "px";
	}else{
	var divW =	(parseFloat(width) - 8) + "px";
	}
	div[4].style.width = divW;
	div[4].style.marginLeft = '-1px';
	div[4].style.height = '19px';
	div[4].style.paddingTop = '1px';
	div[4].style.paddingRight = '3px';
	div[4].className = 'divMenu';
	div[4].style.textAlign = 'right';
	div[4].style.borderTop = '1px solid #E13227';
	div[4].style.borderLeft = '1px solid #E13227';
	div[4].style.borderRight = '1px solid #E13227';
	div[4].style.fontSize = '13px';
	div[4].style.zIndex 	= 10; 
	
	div[5] = top.document.createElement("div");
	div[5].id = 'picDiv3';
	div[5].style.position = 'absolute';
	div[5].style.top = '-20px';
	div[5].style.right = '-1px';
	div[5].style.width = '20px';
	div[5].style.marginLeft = '-1px';
	div[5].style.height = '19px';
	div[5].style.paddingTop = '1px';
	div[5].style.paddingRight = '5px';
	div[5].style.textAlign = 'right';
	div[5].className = 'MB';
	div[5].style.fontSize = '13px';
	div[5].style.cursor = 'pointer';
	div[5].style.zIndex 	= 11; 
	div[5].onclick=function(){close_picture();};

	if(lng == '1'){
	var back 	= top.document.createTextNode(" vorige"); 
	var next 	= top.document.createTextNode("volgende "); 	
	}else{
	var back 	= top.document.createTextNode(" précédent"); 
	var next 	= top.document.createTextNode("suivant ");
	}
	var close 	= top.document.createTextNode("X"); 
	
	if(Apointer != 0){
	var Tpic 	= top.document.createTextNode(Apointer+"/"+Acount);
	}else{
	var Tpic 	= top.document.createTextNode('');
	}
	
	
	var pic 	= top.document.createElement("img");
	pic.src		= dirPic;
	pic.height	= height;
	pic.width	= width;

	if(top.document.getElementById('picDiv0') ){
	close_picture();
	}

	div[1].appendChild(pic);
	div[2].appendChild(back);
	div[20].appendChild(Tpic);
	div[3].appendChild(next);
	div[5].appendChild(close);
	body.appendChild(div[0]);
	body.appendChild(div[1]);
	if(IdBack != ''){
	div[1].appendChild(div[2]);
	}
	div[1].appendChild(div[20]);
	if(IdNext != ''){
	div[1].appendChild(div[3]);
	}
	div[1].appendChild(div[4]);
	div[1].appendChild(div[5]);
	
	try{
		top.vulin.hide_select(3);
	}catch(excp){}
}
function close_picture()
{
	for(i=0;i<2;i++){
		body.removeChild(top.document.getElementById('picDiv'+i));
	}
	try{
		top.vulin.hide_select();
	}catch(excp){}
}
function send_contact()
{
	if(document.form_contact.naam.value != '' && document.form_contact.voornaam.value != '' && document.form_contact.email.value != ''){
	document.form_contact.submit();
	}else{
	document.form_contact.naam.style.background 		= "#FF9900";	
	document.form_contact.voornaam.style.background 	= "#FF9900";
	document.form_contact.email.style.background 		= "#FF9900";	
	}
}

function formval()
{
	var theForm 	= document.res_form;
	var ok			= 0;
	if (theForm.naam.value == "" && theForm.naam.value.length < 3){
		theForm.naam.style.background='#FF9900';
		theForm.naam.focus();
	ok				= 1;
	}
	
	if (theForm.voornaam.value == "" && theForm.voornaam.value.length < 3){
		theForm.voornaam.style.background='#FF9900';
		theForm.voornaam.focus();
	ok				= 1;
	}

	if (theForm.telefoon.value == "" && theForm.telefoon.value.length < 9){
		theForm.telefoon.style.background='#FF9900';
		theForm.telefoon.focus();
	ok				= 1;
	}
	
	if (theForm.email.value == "" && theForm.email.value.length < 3){
		theForm.email.style.background='#FF9900';
		theForm.email.focus();
	ok				= 1;
	}
	
	if (theForm.vertrekdatum.value == "" && theForm.vertrekdatum.value.length < 1){
		theForm.vertrekdatum.style.background='#FF9900';
		theForm.vertrekdatum.focus();
	ok				= 1;
	}
	
	if (theForm.terugkeerdatum.value == "" && theForm.terugkeerdatum.value.length < 1){
		theForm.terugkeerdatum.style.background='#FF9900';
		theForm.terugkeerdatum.focus();
	ok				= 1;
	}

	if(ok == 0){
  	theForm.submit();
	}
}
function add_pax()
{
	var div 			= new Array();
	var input 			= new Array();
	var resdiv			= document.getElementById('reiziger');
	div['pre'] 			= document.createElement('div');
	div['pre'].id		= 'pre';
	div['naam'] 		= document.createElement('div');
	div['naam'].id		= 'naam';
	div['voornaam'] 	= document.createElement('div');
	div['voornaam'].id	= 'voornaam';
	div['datum'] 		= document.createElement('div');
	div['datum'].id		= 'datum';
	
	input['pre']			= document.createElement('select');
	input['pre'].className	= 'st_input';
	input['pre'].name		= 'res_pre[]';
	input['pre'].options[0]	= new Option("Mr.","MR",false,false);
	input['pre'].options[1]	= new Option("Mevr.","MEVR",false,false);
	input['pre'].options[2]	= new Option("Juffr.","JUFFR",false,false);
	input['pre'].options[3]	= new Option("Baby","BABY",false,false);
	
	input['naam']			=document.createElement('input');
	input['naam'].type		= 'text';
	input['naam'].className	= 'st_input';
	input['naam'].name		= 'res_naam[]';
	input['vnaam']			=document.createElement('input');
	input['vnaam'].type		= 'text';
	input['vnaam'].className= 'st_input';
	input['vnaam'].name		= 'res_voornaam[]';
	input['datum']			=document.createElement('input');
	input['datum'].type		= 'text';
	input['datum'].className= 'st_input';
	input['datum'].name		= 'res_datum[]';
	
	div['pre'].appendChild(input['pre']);
	div['naam'].appendChild(input['naam']);
	div['voornaam'].appendChild(input['vnaam']);
	div['datum'].appendChild(input['datum']);
	
	resdiv.appendChild(div['pre']);
	resdiv.appendChild(div['naam']);
	resdiv.appendChild(div['voornaam']);
	resdiv.appendChild(div['datum']);
}
function popup_kalender(URL)
{
 window.open(URL, 'Kalender','width=250,height=180,top=10,left=10,scrollbars=no,statusbar=no');
}
function display_err()
{
	var Wdiv       = new CreatePopupDiv();
	Wdiv.status   = '0';
	Wdiv.line      ='#E13227';
	Wdiv.darktext = '#FFFFFF';
	Wdiv.bgC      = '#E13227';
	Wdiv.bg       = '#333333';
	Wdiv.opacity  = '75';
	Wdiv.title    = 'Opgelet !';
	Wdiv.text     = error;
	Wdiv.onload = 'no';
    Wdiv.CreatDiv();
}
function set_sirius(from,to,Day,month_1,RetDay,month_2,pax,airline_restrict)
{
	var arr_M1									= month_1.split("-");
	var arr_M2									= month_2.split("-");
	var lng 									= document.getElementById('lng').value;
	try{
	document.form_sirius.from.value 			= from;
	document.form_sirius.to.value 				= to;
	document.form_sirius.Day.value 				= parseFloat(Day);
	document.form_sirius.RetDay.value 			= parseFloat(RetDay);
	document.form_sirius.month_1.value 			= parseFloat(arr_M1[0])+"-"+arr_M1[1];
	document.form_sirius.month_2.value 			= parseFloat(arr_M2[0])+"-"+arr_M2[1];
	document.form_sirius.pax.value	 			= pax;
	document.form_sirius.airline_restrict.value = airline_restrict;
	show_result();
	}catch(excp){
	var main 									= window.document.body;
	var arr_input								= new Array();
	var setForm 								= document.createElement('form');
	setForm.action								= "http://flweb.ypsilon.net/index.phtml";
	setForm.name								= "form_sirius";
	setForm.method								= "POST";
	setForm.target								= "resultaat";
	arr_input['from']							= document.createElement('input');
	arr_input['from'].type						= 'hidden';
	arr_input['from'].name						= 'from';
	arr_input['from'].value						= from;
	
	arr_input['to']								= document.createElement('input');
	arr_input['to'].type						= 'hidden';
	arr_input['to'].name						= 'to';	
	arr_input['to'].value						= to;	

	arr_input['Day']							= document.createElement('input');
	arr_input['Day'].type						= 'hidden';
	arr_input['Day'].name						= 'Day';
	arr_input['Day'].value						= parseFloat(Day);
	
	arr_input['RetDay']							= document.createElement('input');
	arr_input['RetDay'].type					= 'hidden';
	arr_input['RetDay'].name					= 'RetDay';
	arr_input['RetDay'].value					= parseFloat(RetDay);
	
	arr_input['month_1']						= document.createElement('input');
	arr_input['month_1'].type					= 'hidden';
	arr_input['month_1'].name					= 'month_1';
	arr_input['month_1'].value					= parseFloat(arr_M1[0])+"-"+arr_M1[1];
	
	arr_input['month_2']						= document.createElement('input');
	arr_input['month_2'].type					= 'hidden';
	arr_input['month_2'].name					= 'month_2';
	arr_input['month_2'].value					= parseFloat(arr_M2[0])+"-"+arr_M2[1];
	
	arr_input['pax']							= document.createElement('input');
	arr_input['pax'].type						= 'hidden';
	arr_input['pax'].name						= 'pax';
	arr_input['pax'].value						= pax;
	
	arr_input['agent']							= document.createElement('input');
	arr_input['agent'].type						= 'hidden';
	arr_input['agent'].name						= 'agent';
	arr_input['agent'].value					= 'nf_fr2';
	
	arr_input['lang']							= document.createElement('input');
	arr_input['lang'].type						= 'hidden';
	arr_input['lang'].name						= 'lang';
	if(lng == 1){
	arr_input['lang'].value						= 'nl_BE';
	}else{
	arr_input['lang'].value						= 'fr_BE';
	}
	
	arr_input['airline_restrict']				= document.createElement('input');
	arr_input['airline_restrict'].type			= 'text';
	arr_input['airline_restrict'].name			= 'airline_restrict';
	arr_input['airline_restrict'].value			= airline_restrict;
	
	setForm.appendChild(arr_input['agent']);
	setForm.appendChild(arr_input['lang']);
	setForm.appendChild(arr_input['from']);
	setForm.appendChild(arr_input['to']);
	setForm.appendChild(arr_input['Day']);
	setForm.appendChild(arr_input['RetDay']);
	setForm.appendChild(arr_input['month_1']);
	setForm.appendChild(arr_input['month_2']);
	setForm.appendChild(arr_input['pax']);
	setForm.appendChild(arr_input['airline_restrict']);	
	
	main.appendChild(setForm);
	document.getElementById('result').style.display = "";
	document.getElementById('main').style.display = "none";
	setForm.submit();
	}
}
document.onkeydown=function (event){event = event || window.event ; if(event.keyCode==27){	print_Waarde('0');}};
