// JavaScript Document

function menuOver(id){
	document.getElementById(id).style.color='#a022a5'
	}
function menuOut(id){
	document.getElementById(id).style.color='#483bf5'
	}
function nav(target){
	location.href='?P='+target
	}
function showImg(img){
  	//window.open('showImg.asp?f='+img,'img','statusbar=no,menubar=no,width=700,height=700')
	window.open('/'+img,'img','statusbar=no,menubar=no,scrollbars,width='+screen.width+',height='+screen.height)
  	}
function openContactform(){
  	window.open('contactform.asp','Contact','statusbar=no,menubar=no,width=700,height=700')
	}
function openMap(){
  	window.open('Map.asp','Routekaart','statusbar=no,menubar=no,width=700,height=366')
  	}
function showPopUp(){    
	window.open('popup.asp','','statusbar=no,menubar=no, scrollbars=yes,width=640,height=600')
	}
function ExplorerFix() { 
	for (a in document.links) document.links[a].onfocus = document.links[a].blur; 
}
function checkFormII(formObj,objStr,emailStr)
	{
		var msgTxt =""
		var msgTxt1 = "ROOD:Deze velden moeten worden ingevuld"
		var msgTxt2 = "BLAUW:Er moet een geldig e-mail adres worden ingevuld"		
		var msg1 =false;
		var msg2 =false;
		var x;
		var submitForm =true;
		var objArray=objStr.split(",");
		var emlArray=emailStr.split(",");
		for (x in objArray)
			{
				if (document.getElementById(objArray[x]).value.length <1)
					{
						submitForm=false
						document.getElementById(objArray[x]).style.border="1px solid #FF0000"
						document.getElementById(objArray[x]).style.background="#ffebeb"						
						msg1=true
					}
				else	
{
						document.getElementById(objArray[x]).style.border="none"
						document.getElementById(objArray[x]).style.background="#FFFFFF"						

}					
			}
		
		for (xx in emlArray)
			{
				
				
			if (document.getElementById(emlArray[xx]).value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi)){
						document.getElementById(emlArray[xx]).style.border="none"
						document.getElementById(emlArray[xx]).style.background="#FFFFFF"

}
			else
			{

						submitForm=false
						document.getElementById(emlArray[xx]).style.border="1px solid #0000FF"
						document.getElementById(emlArray[xx]).style.background="#ffebeb"
						msg2=true
					}
			}



		if (submitForm==true)
			{
				document.getElementById(formObj).submit();
			}
		else
			{
				if (msg1==true)
					{msgTxt=msgTxt1+" \r"}
					
				if (msg2==true)
								
					{msgTxt=msgTxt + msgTxt2}
					
					alert(msgTxt)
					}
	}
	


if(document.all) document.onmousedown = ExplorerFix;
