function JavaGames()
{
  newWindow = window.open ('http://www.brambo.nl/start/javagames/default.asp?sc=20&pc=163','JavaPopup', 'toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=no,resizable=no,copyhistory=no, width=760 height=500,left='+eval((screen.availWidth/2)-300)+',top=5'); 
  newWindow.focus(); 
}

function newWindow(url,h,w) 
{
	var name = "window";
	var features = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=1,resizable=0,width="+h+",height="+w
	venster = window.open(url,name,features);
}

function go(id)
{
	window.open("http://www.netdirect.nl/servlet/___?action=href&cid=" + id + "&sid=895");
}

function checkFormSubmitNews(myForm)
{
	var result=true;
	if (myForm.naam.value=="")
	{
		result=false;
		alert("Geen geldige naam!");
		myForm.naam.focus();
	}
	else if (myForm.email.value=="")
	{
		result=false;
		alert("Geen email adres!");
		myForm.email.focus();
	}
	else if (!(isEmail(myForm.email.value)))
	{
		result=false;
		alert("Geen geldig email adres!");
		myForm.email.focus();
	}
	else if (myForm.titel.value=="")
	{
		alert("Geen geldige titel!");
		result=false;
		myForm.titel.focus();
	}
	else if (myForm.bericht.value.length < 8)
	{
		alert("Te weinig tekst voor een bericht!");
		result=false;
		myForm.bericht.focus();
	}
	return result;
}


	function checkFormReageer(myForm)
	{
		var result=true;
		if (myForm.naam.value=="")
		{
			result=false;
			alert("Geen geldige naam!");
			myForm.naam.focus();
		}
		else if (myForm.email.value=="")
		{
			result=false;
			alert("Geen email adres!");
			myForm.email.focus();
		}
		else if (!(isEmail(myForm.email.value)))
		{
			result=false;
			alert("Geen geldig email adres!");
			myForm.email.focus();
		}
		else if (myForm.bericht.value.length < 8)
		{
			alert("Te weinig tekst voor een bericht!");
			result=false;
			myForm.bericht.focus();
		}
		
		var strSingleLineText = myForm.bericht.value.replace( new RegExp( "\\n", "g" ), "<br>");	
		strSingleLineText = strSingleLineText.replace( new RegExp( "\\r", "g" ), "");	

		if (result)
			xajax_doReactForm(myForm.code.value, myForm.naam.value, myForm.email.value, strSingleLineText);
	}

function isEmail(str) 
{
	// worden reguliere expressies ondersteund?
	   var supported = 0;
	if (window.RegExp) {
	   var tempStr = "a";
	   var tempReg = new RegExp(tempStr);
	   if (tempReg.test(tempStr)) supported = 1;
	}
	if (!supported) 
	return (str.indexOf(".") > 4) && (str.indexOf("@") > 0);
	var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
	var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
	return (!r1.test(str) && r2.test(str));
}