<!--
var agt = navigator.userAgent.toLowerCase();
var is_nav = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
var is_major = parseInt(navigator.appVersion);
var is_minor = parseFloat(navigator.appVersion);
var is_nav6up = (is_nav && (is_major >= 5));
var is_ie4up = (is_ie && (is_major >= 4));
var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
var is_ie4up = (is_ie && (is_major >= 4));

var current_open_submenu = null;
var current_open_link = null;

// Object type
function isObject(o) {
	return (typeof(o)=="object");
}


function isArray(o) {
	return (isObject(o) && (o.length) &&(!isString(o)));
}


function isFunction(o) {
	return (typeof(o)=="function");
}


function isString(o) {
	return (typeof(o)=="string");
}


function openxmlhttp(){

	var xmlhttp=false;
	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
	// JScript gives us Conditional compilation, we can cope with old IE versions.
	// and security blocked creation of the objects.
	 try {
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	 } catch (e) {
		try {
		 xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (E) {
		 xmlhttp = false;
		}
	 }
	@end @*/
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		xmlhttp = new XMLHttpRequest();
	}

	return xmlhttp;
}


function popup_url(url){
	body_width = 600;
	body_height = 400;

	newwin = window.open(url,"popperdiepop","width=" + body_width + ",height=" + body_height + ",toolbar=0,location=0,directories=0,resizable=1,scrollbars=1,status=0");			
	newwin.moveTo((screen.width/2)-(body_width/2),(screen.height/2)-(body_height/2));
	newwin.focus();
}


function nl2br_js(myString) {
	var regX = /\n/gi ;
	s = new String(myString);
	s = s.replace(regX, "<br/> \n");
	return s;
}

// 2 functies voor popup images
imagename = '';
var lrgewin=null;

function enlarge(imgnme) {
	if(lrgewin && !lrgewin.closed) { lrgewin.close(); }
	
    lrgewin = window.open("about:blank","","width=155,height=116,status=no,toolbar=no,scrollbars=no,menubar=no,location=no,resizable=no");
    imagename = imgnme;
    setTimeout('update()',500);
}

function update() {
    doc = lrgewin.document;
    doc.open('text/html');
    doc.write('<html><head><title>Triple Value<\/title><\/head><body marginheight=0 marginwidth=0 topmargin=0 rightmargin=0 leftmargin=0 bgcolor="#FFFFFF">');
	doc.write('<a href="javascript:window.close();"><img name="FullImage" border=0 src="'+imagename + '" onLoad="window.resizeTo(FullImage.width+10, FullImage.height+59)"><a/>');
    doc.write('<\/body><\/html>');
    doc.close();
}

// zoek ipnut field leeg maken
function clear_me(element){
	switch(element.value){
		case "trefwoord":
		case "keyword":
		case "query": 
			element.value = "";
		    break;
	}
}

// Checkbox value op 1 of 0 zetten
function swap_check_value(checkbox){
	if(checkbox.value==0){
		checkbox.value=1;
	} else {
		checkbox.value=0;
	}
}

onload = function(){
    document.getElementById('spamcheck').value = 'checked';
}
//-->