function openwin(url) 
{
	var hoogte = 480;
	var breedte = 640;
	var opties = 'left=0,top=0,scrollbars=no,menubar=no,height=' + hoogte  + ',width=' + breedte  + ',resizable=no,toolbar=no,location=no,status=no,titlebar=no'
	window.open(url,'Foto', opties);
	return false
}
function openwinc(url) 
{
	var hoogte = 768;
	var breedte = 1024;
	var opties = 'left=0,top=0,scrollbars=no,menubar=no,height=' + hoogte  + ',width=' + breedte  + ',resizable=yes,toolbar=no,location=no,status=no'
	window.open(url,'Foto', opties);
	return false
}

function contact_check()
{
	var obj_focus="";
	var val_txt ="" ;
	
	var obj = document.getElementById("firstname");	
	if (obj.value == "")
	{
		if (obj_focus==""){obj_focus = obj;}
		obj.style.border="#a0ce67 1px solid";
		val_txt += "Voorletter(s) is verplicht\n"
	}
	
	var obj = document.getElementById("lastname");	
	if (obj.value == "")
	{
		if (obj_focus==""){obj_focus = obj;}
		obj.style.border="#a0ce67 1px solid";
		val_txt += "Achternaam is verplicht\n"
	}
	
	var obj = document.getElementById("email");	
	if (obj.value == "")
	{
		if (obj_focus==""){obj_focus = obj;}
		obj.style.border="#a0ce67 1px solid";
		val_txt += "E-mail is verplicht\n"
	} else {
		if ((obj.value.indexOf(".") == -1) || (obj.value.indexOf("@") == -1))
		{
			if (obj_focus==""){obj_focus = obj;}
			obj.style.border="#a0ce67 1px solid";
			val_txt += "E-mail adres is niet juist\n"
		}
	}
	
	var obj = document.getElementById("telephone");	
	if (obj.value == "")
	{
		if (obj_focus==""){obj_focus = obj;}
		obj.style.border="#a0ce67 1px solid";
		val_txt += "Telefoonnummer is verplicht\n"
	}
	
	var obj = document.getElementById("question");	
	if (obj.value == "")
	{
		if (obj_focus==""){obj_focus = obj;}
		obj.style.border="#a0ce67 1px solid";
		val_txt += "Bericht is verplicht\n"
	}
	    
	if (val_txt != "")
	{
		alert(val_txt);
		obj_focus.focus();
		return false;	
	} else {
		return true;
	}			
}
