function popUp(URL) {
	day = new Date();
	id = day.getTime();
	b_width = (screen.width / 2)-380;
	b_height = (screen.height / 2)-275;
	if(screen.width == 800)
	{
		b_width = 0;
		b_height = 0;
	}
	if (parent.frames.length > 0){
		// firefox correctie => frames[] begint op 1 en niet 0 !
		if(navigator.appName.indexOf('Microsoft')==-1){
			ouder = "window";
		} else {
			ouder = "parent.frames[0]";
		}
	} else {
		ouder = "window"; 
	}
		eval("page" + id + " = " + ouder + ".open(URL, '" + id + "', 'channelmode=yes,resizable=yes,status=yes,titlebar=yes,toolbar=0,location=no,menubar=no');");
}

function popUp2(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=420,height=390,left = 272,top = 118.5');");
}

function popUp3(URL) {
	day = new Date();
	id = day.getTime();
	b_width = (screen.width / 2)-380;
	b_height = (screen.height / 2)-275;
	if(screen.width == 800)
	{
		b_width = 0;
		b_height = 0;
	}
	if (parent.frames.length > 0){
		ouder = "parent.frames[0]";
	} else {
		ouder = "window"; 
	}
		eval("page" + id + " = " + ouder + ".open(URL, '" + id + "', 'toolbar=0,location=0,statusbar=0,menubar=0,resizable=0,width=760,height=550,top=" + b_height + ",left=" + b_width + "');");
}

function popUp4(URL) {
	day = new Date();
	id = day.getTime();
	b_width = (screen.width / 2)-380;
	b_height = (screen.height / 2)-275;
	if(screen.width == 800)
	{
		b_width = 0;
		b_height = 0;
	}
	if (parent.frames.length > 0){
		ouder = "parent.frames[0]";
	} else {
		ouder = "window"; 
	}
		eval("page" + id + " = " + ouder + ".open(URL, '" + id + "', 'toolbar=0,location=0,statusbar=0,scrollbars=1,menubar=0,resizable=0,width=856,height=556,top=" + b_height + ",left=" + b_width + "');");
}

function openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter){
        if(window.screen){
                if(isCenter){
                        if(isCenter=="true"){
                                var myLeft       = (screen.width-myWidth)/2;
                                var myTop        = (screen.height-myHeight)/2;
                                features        += (features!='')?',':'';
                                features        += ',left='+myLeft+',top='+myTop;
                        }
                        if(isCenter=="hide"){
                                features        += (features!='')?',':'';
                                features        += ',left=10000,top=100';
                        }
                }
        }
        window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight).focus();
}

var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

if (!on_color) { var on_color = "#FFFFFF"; }
if (!off_color) { var off_color = "#FBDC81"; }
if (!blink_onoff) { var blink_onoff = 1; }
if (!blinkspeed) { var blinkspeed = 800; }

function blink(blinkarray) {
	if( blink_onoff == 1) {
		for (i in blinkarray) {
			document.getElementById(blinkarray[i]).style.color = on_color;
		}
	   blink_onoff = 0;
	}
	else {
	   for (i in blinkarray) {
			document.getElementById(blinkarray[i]).style.color = off_color;
	   }
	   blink_onoff = 1;
	}
}

function zetSter(xy)
{
	st = "&nbsp;";
	for (x=0;x<xy;x++)
	{
		 st	+= "*";
	}
	document.getElementById("ster").innerHTML = st;
}

function Recheck(url, land) {	
	if (land == 'be') {decheck = confirm('Weet u zeker dat u via de Belgische site verder wil gaan i.p.v. de Nederlandse?');}
	else if (land == 'nl') {decheck = confirm('Weet u zeker dat u via de Nederlandse site verder wil gaan i.p.v. de Belgische?');}
	if (decheck) {top.location.href = url;}
}

function isValidType( oInput, oType ) {
	switch( oType.toLowerCase() ) {
		case 'select':
			return oInput.selectedIndex;
		case 'number':
			if( !oInput.value ) { return false; }
			for( var mXi = 0; mXi < oInput.value.length; mXi++ ) {
				if( oInput.value.charAt( mXi ) != '' + parseInt( oInput.value.charAt( mXi ) ) + '' ) { return false; }
			} return true;
		case 'name':
			return ( oInput.value && !oInput.value.replace( /[a-z]{2,}(-[a-z]{2,}){0,2}/i, "" ) );
		case 'email':
			return ( oInput.value && !oInput.value.replace( /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\"([^\"\\\r]|(\\[\w\W]))*\"))@((\[([0-9]{1,3}\.){3}[0-9]{1,3}\])|(([a-z\-0-9áàäçéèêñóòôöüæøå]+\.)+[a-z]{2,}))$/i, "" ) );
	}
}

function golink(delink,ltarget){
	antwoord = confirm('You are leaving the Vacansoleil website\nand entering a website of a third party.\n\nDo you wish to continue?');
	if (antwoord) window.open(delink,ltarget).focus()
}
