var message = "Het kopieren van informatie op deze website is verboden. Voor eventuele informatie kunt u terecht bij de webmaster. Copyright vvzigo.nl ©";

function clickIE4()
{
	if (event.button == 2)
	{
		alert(message);
		return false;
	}
}

function clickNS4(e)
{
	if (document.layers || document.getElementById && !document.all)
	{
		if (e.which == 2 || e.which == 3)
		{
			alert(message);
			return false;
		}
	}
}

if (document.layers)
{
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown = clickNS4;
}
else if (document.all && !document.getElementById)
{
	document.onmousedown = clickIE4;
}

document.oncontextmenu = new Function("alert(message);return false");

function IsValidEmail(e) 
{
	var ok = "1234567890qwertyuiop[]asdfghjklzxcvbnm.@-_QWERTYUIOPASDFGHJKLZXCVBNM";

	for (var i=0; i < e.length ;i++)
	{
		if( ok.indexOf(e.charAt(i))<0)
		{ 
			return false;
		}	
	} 

	if (document.images) 
	{
		re = /(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;
		re_two = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
		if (!e.match(re) && e.match(re_two)) 
		{
			return true;		
		}
		else
		{
			return false;
		}
	}
}

function OpenImage(imgSource) 
{
	var source = "/includes/image.asp?image=" + imgSource;
	var name = "imgPopup";
	var features = "width=1068,height=768,top=100,left=100";  //origineel was 250, 250, 100, 100

	window.open(source,name,features);
}

function OpenWindow(source,width,height)
{
		var name = "zigoPopup";
		var features = "scrollbars=yes,top=100,left=100,width=" + width + ",height=" + height;

		window.open(source,name,features);
}
