function open_win()
{
window.open("http://www.azor.nl/test.php","_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=900, height=650")
}


function ViewImage(ifile,ix,iy,ititle) 
	{ 
	var win;
	var sWidth;
	var sHeight;
	var NS = (document.layers) ? 1 : 0;
	if (win) 
		{ 
		win.close();
		}
	//window.open("","imageviewer","width="+ix+",height="+iy+",menubar=no,toolbar=no, status=no");
	setTimeout("schrijf('"+ititle+"','"+ifile+"',"+ix+","+iy+")", 500);
	}

function schrijf(ititle,ifile,ix,iy)
	{
	var win = window.open("","popframeless","width="+ix+",height="+iy+",menubar=no,toolbar=no,status=no");
	win.document.open();
	win.document.write("<html><head><title>"+ititle+"</title>");
	win.document.write("</head><body bgcolor='#FFFCF0' onBlur='self.close()'>");
	win.document.write('<div align="center" style="position:absolute;width:'+ix+'px;height:'+iy+'px;left:0px;top:0px">');
	win.document.write("<img src="+ifile+"></div></body></html>");
	win.document.close();
	}
	
function controleer_contact()
	{
	var error = false;
	if (document.getElementById('naam').value.length == 0) 
		{
		document.form_contact.naam.className = "input_error";
		error = true;
		}else
			{
			document.form_contact.naam.className = "input_normal";
			}
	if (document.getElementById('adres').value.length == 0) 
		{
		document.form_contact.adres.className = "input_error";
		error = true;
		}else
			{
			document.form_contact.adres.className = "input_normal";
			}
	if (document.getElementById('hnum').value.length == 0) 
		{
		document.form_contact.hnum.className = "input_error";
		error = true;
		}else
			{
			document.form_contact.hnum.className = "input_normal";
			}
	if (document.getElementById('woonplaats').value.length == 0) 
		{
		document.form_contact.woonplaats.className = "input_error";
		error = true;
		}else
			{
			document.form_contact.woonplaats.className = "input_normal";
			}
	if (document.getElementById('postcode').value.length == 0) 
		{
		document.form_contact.postcode.className = "input_error";
		error = true;
		}else
			{
			document.form_contact.postcode.className = "input_normal";
			}
	if (document.getElementById('email').value.length == 0) 
		{
		document.form_contact.email.className = "input_error";
		error = true;
		}else
			{
			document.form_contact.email.className = "input_normal";
			}
	if (document.getElementById('bericht').value.length == 0) 
		{
		document.form_contact.bericht.className = "input_error";
		error = true;
		}else
			{
			document.form_contact.bericht.className = "input_normal";
			}
	if (error == true)
		{
		alert('Er zijn onvoldoende gegevens ingevuld!');
		return false;
		}else
			{
			return true;
			}
	}