function externalLinks() {
if (!document.getElementsByTagName) return;
var anchors = document.getElementsByTagName("a");
for (var i=0; i<anchors.length; i++) {
var anchor = anchors[i];
if (anchor.getAttribute("href") &&
anchor.getAttribute("rel") == "external")
anchor.target = "_blank";
}
}
window.onload = externalLinks;

var yes = '<img src="images/pijl.gif" alt="" />&nbsp;';
var no = '';
var field_name="Naam",field_mail="E-mailadres",field_mess="Bericht";

function formFocus(field)
{
	if(field.value==field_name || field.value==field_mail || field.value==field_mess)
	{
		field.value="";
	}
}
function formBlur(field)
{
	if(field.value=="")
	{
		if(field.id=="mail")
		{
			field.value=field_mail;
		}
		else if(field.id=="message")
		{
			field.value=field_mess;
		}
		else
		{
			field.value=field_name;
		}
	}
}
function show(hidden,fill,img) {
	if (document.getElementById) {
		var show = document.getElementById(hidden).style;
		if (show.display == "block") {
			show.display = "none";
			document.getElementById('cat').innerHTML= fill + img;
			document.getElementById('cat').style.backgroundColor= '#66ddff';
			document.getElementById('cat').style.color= '#004499';
		} else {
			show.display= "block";
			document.getElementById('cat').style.backgroundColor= '#77ccff';
			document.getElementById('cat').style.color= '#000000';
		}
		return false;
	} else {
		return true;
	}
}
function resetF() {
	document.getElementById('form1').reset();
	document.getElementById('cat').innerHTML="<span>Categorie</span><img src='images/pijl.gif' alt='' />&nbsp;";
	document.getElementById('sub').style.display = 'none';
	document.getElementById('cat').style.backgroundColor= '#66ddff';
	document.getElementById('cat').style.color= '#004499';
}
